/* Quick view (Interlab Core, quick-view). Block-theme palette where loaded, same values as fallbacks for Avada. */
.ilc-qv {
	--qv-action: var(--wp--preset--color--action, #00679e);
	--qv-ink: var(--wp--preset--color--ink, #1c2b3a);
	--qv-muted: var(--wp--preset--color--muted, #5b6672);
	--qv-line: var(--wp--preset--color--hairline, #e3e8ee);
	--qv-surface: var(--wp--preset--color--surface, #f4f7fa);
	--qv-tint: var(--wp--preset--color--tint, #e8f4fb);
	--qv-mono: var(--wp--preset--font-family--code, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
	width: min(880px, calc(100vw - 48px));
	max-width: none;
	max-height: calc(100vh - 64px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #fff;
	color: var(--qv-ink);
	box-shadow: 0 24px 64px rgba(13, 36, 76, .28);
	overflow: hidden;
}
.ilc-qv::backdrop { background: rgba(0, 47, 96, .45); }
html.ilc-qv-open { overflow: hidden; }
.ilc-qv-inner { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; padding: 28px; box-sizing: border-box; }
.ilc-qv-grab { display: none; }
.ilc-qv-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--qv-ink); font-size: 28px; line-height: 1; cursor: pointer; padding: 0; }
.ilc-qv-close:hover { background: var(--qv-surface); }
.ilc-qv-close:focus-visible,
.ilc-qv-thumb:focus-visible,
.ilc-qv-full:focus-visible { outline: 2px solid var(--qv-action); outline-offset: 2px; }
.ilc-qv-loading { margin: 40px 0; text-align: center; color: var(--qv-muted); }
.ilc-qv-failed { padding: 24px 8px; text-align: center; }
.ilc-qv-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.ilc-qv-main { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--qv-surface); overflow: hidden; }
.ilc-qv-main img { width: 100%; height: 100%; object-fit: contain; }
.ilc-qv-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.ilc-qv-thumb { aspect-ratio: 1; padding: 2px; border: 1px solid var(--qv-line); border-radius: 8px; background: #fff; cursor: pointer; overflow: hidden; }
.ilc-qv-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ilc-qv-thumb.is-on { border: 2px solid var(--qv-action); padding: 1px; }
.ilc-qv-info { min-width: 0; padding-right: 28px; }
.ilc-qv-codes { margin: 0 0 4px; font: 500 13px/1.4 var(--qv-mono); color: var(--qv-muted); }
.ilc-qv-name { margin: 0 0 6px !important; font-size: 21px !important; line-height: 1.3 !important; color: var(--qv-ink); }
.ilc-qv-full { display: inline-block; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--qv-action); text-decoration: none; }
.ilc-qv-full:hover { text-decoration: underline; }
.ilc-qv-buy .il-pk-acts { margin-top: 12px; }
/* Simple products: one buy line in the picker's look. */
.ilc-qv-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--qv-line); border-radius: 10px; background: var(--qv-surface); }
.ilc-qv-line .nm { flex: 1 1 180px; font: 500 13px/1.6 var(--qv-mono); color: var(--qv-muted); }
.ilc-qv-line .nm b { color: var(--qv-ink); font-weight: 600; margin-right: 6px; }
.ilc-qv-line .pr { font-size: 18px; font-weight: 600; color: var(--qv-ink); text-align: right; }
.ilc-qv-line .pr del { font-size: 12px; font-weight: 400; color: var(--qv-muted); }
.ilc-qv-line .pr small { display: block; font-size: 11px; font-weight: 400; color: var(--qv-muted); }
.ilc-qv-line .pr.gst { font-size: 14px; font-weight: 500; }
.ilc-qv .il-tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font: 500 12px/1 inherit; font-family: inherit; }
.ilc-qv .il-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ilc-qv .il-tag.special { background: #e3effa; color: #1d4f7a; } .ilc-qv .il-tag.ok { background: color-mix(in srgb,var(--wp--preset--color--stock-in,#17723a) 12%,#fff); color: var(--wp--preset--color--stock-in,#17723a); } .ilc-qv .il-tag.wait { background: #fff1d4; color: #8a5600; } .ilc-qv .il-tag.bad { background: color-mix(in srgb,var(--wp--preset--color--stock-out,#a3262a) 10%,#fff); color: var(--wp--preset--color--stock-out,#a3262a); }
.ilc-qv .il-eta { font-size: 12px; color: #8a5600; }
.ilc-qv-simple .il-qty { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--qv-line); border-radius: 6px; background: #fff; }
.ilc-qv-simple .il-qty button { width: 34px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; padding: 0; color: var(--qv-ink); }
.ilc-qv-simple .il-qty input { width: 44px; height: 100%; border: 0; text-align: center; font-size: 15px; padding: 0; background: transparent; -moz-appearance: textfield; }
.ilc-qv-simple .il-qty input::-webkit-inner-spin-button, .ilc-qv-simple .il-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ilc-qv .il-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 0 20px; border-radius: 6px; font-weight: 600; font-size: 15px; border: 1px solid var(--qv-action); background: #fff; color: var(--qv-action) !important; cursor: pointer; text-decoration: none !important; }
.ilc-qv .il-btn.pri { background: var(--qv-action); color: #fff !important; }
.ilc-qv .il-btn[disabled] { opacity: .5; cursor: default; }
.ilc-qv-added { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb,var(--wp--preset--color--stock-in,#17723a) 12%,#fff); color: var(--wp--preset--color--stock-in,#17723a); font-size: 14px; }
.ilc-qv-added p { margin: 0; }
.ilc-qv-added.is-bad { background: color-mix(in srgb,var(--wp--preset--color--stock-out,#a3262a) 10%,#fff); color: var(--wp--preset--color--stock-out,#a3262a); }
.ilc-qv-added-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px !important; }
.ilc-qv-added-acts .il-btn { min-height: 40px; }
/* The "Quick view" button a card can carry (the theme styles its hover look). */
.ilc-qv-button { cursor: pointer; }

/* Phone: a sheet from the bottom, full width. */
@media (max-width: 767px) {
	.ilc-qv { width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
	.ilc-qv-inner { padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); }
	/* The handle: the same 40 x 4 bar, drawn inside a full-width 24 px strip a thumb can drag (#292). */
	.ilc-qv-grab { display: block; position: relative; width: auto; height: 24px; margin: -10px 48px 0; touch-action: none; cursor: grab; }
	.ilc-qv-grab::before { content: ""; position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--qv-line); }
	.ilc-qv-close { top: 4px; right: 4px; }
	.ilc-qv-body { grid-template-columns: 1fr; gap: 14px; }
	.ilc-qv-media { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: start; padding-right: 40px; }
	.ilc-qv-main { width: 112px; }
	.ilc-qv-thumbs { grid-template-columns: repeat(4, 44px); margin-top: 0; align-content: start; }
	.ilc-qv-info { padding-right: 0; }
	.ilc-qv-name { font-size: 19px !important; }
	.ilc-qv-full { margin-bottom: 14px; }
	/* The picker hides its guest buttons on phone product pages (the page has a pinned bar); the window has no such bar. */
	.ilc-qv .il-pick.guest .il-pk-acts { display: flex !important; }
	.ilc-qv .il-pick.guest .il-pk-acts + .il-pk-note,
	.ilc-qv .il-pick.guest .pr.gst { display: block !important; }
	.ilc-qv-buy .il-pk-acts > * { flex: 1 1 auto; }
}

/* Add to quote in the size line (13 Nov): a guest's main action; beside Add to cart for trade customers. */
.ilc-qv-quote { margin: 12px 0 0; }
.il-pk-line .ilc-qv-quote { margin: 0; }
.il-pk-line.has-quote .ilc-add-to-quote { height: 44px; padding: 0 18px; white-space: nowrap; }
.il-pk-line .ilc-aq-view { margin: 0 0 0 10px; }

/* #546: the live quantity line under the stepper ("5 x 500 / bag = 2,500 pieces"). */
.ilc-qv-simple .il-qty-sum { display: block; flex-basis: 100%; font-size: 12px; color: #5b7082; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ilc-qv-simple .il-qty-sum[hidden] { display: none; }

/* Fly-out motion (Roddy, 14 Nov: every fly-out the same). Transform and opacity only; the backdrop fades in with the
   panel; one duration and curve everywhere (the same values as assets/swipe-panel.js and the theme's drawers).
   While open the page is locked without moving: the scrollbar's space is kept (scrollbar-gutter). */
.ilc-qv { --ilc-fly-dur: 250ms; --ilc-fly-ease: cubic-bezier(0, 0, .2, 1); will-change: transform; } /* its own layer before it moves */
/* Opened in two steps: shown held out of sight (.is-pre) so the page's style work happens before anything moves, then
   released on the next frame to slide in (quick-view.js). */
.ilc-qv.is-pre, .ilc-qv.is-pre::backdrop { visibility: hidden; }
html.ilc-keep-gutter { scrollbar-gutter: stable; } /* only when the page has a scrollbar (ILCSwipe.lockPage) */
@media (prefers-reduced-motion: no-preference) {
	.ilc-qv[open]:not(.is-pre) { animation: ilc-fly-pop var(--ilc-fly-dur) var(--ilc-fly-ease); }
	.ilc-qv[open]:not(.is-pre)::backdrop { animation: ilc-fly-fade var(--ilc-fly-dur) var(--ilc-fly-ease); }
	@media (max-width: 767px) {
		.ilc-qv[open]:not(.is-pre) { animation-name: ilc-fly-up; }
	}
}
@keyframes ilc-fly-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ilc-fly-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ilc-fly-up { from { transform: translateY(100%); } to { transform: none; } }
/* The tapped button while the window's content is fetched (it opens with the content, never empty). */
[data-ilc-quick-view][aria-busy="true"] { cursor: progress; opacity: .65; transition: opacity var(--ilc-fly-dur, 250ms) var(--ilc-fly-ease, ease-out); }
