/* ---------- Product gallery ---------- */
.av-pg { position: relative; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--av-line, #E3EAF1); }
.av-pg-track { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.av-pg-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; overflow: hidden; }
.av-pg-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.av-pg-count { position: absolute; right: 14px; bottom: 14px; z-index: 3; padding: 4px 10px; border-radius: 999px; background: rgba(11, 31, 58, .72); color: #fff; font-size: 12px; font-weight: 600; }
/* Thumbnails: one swipeable row with 4 in view (Oct 29); arrows at the ends on any screen */
.av-pg-thumbrow { position: relative; margin-top: 12px; }
.av-pg-thumbs.av-gal-thumbs { display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; margin: 0; overflow-x: auto !important; overflow-y: hidden; padding: 3px; scroll-snap-type: x mandatory; scroll-padding: 3px; scrollbar-width: none; }
.av-pg-thumbs.av-gal-thumbs::-webkit-scrollbar { display: none; }
.av-pg-thumb { flex: 0 0 calc((100% - 30px) / 4) !important; width: auto !important; height: auto !important; min-width: 0 !important; aspect-ratio: 1 / 1; scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--av-line, #E3EAF1); outline: 2px solid transparent; outline-offset: 1px; opacity: .7; cursor: pointer; transition: opacity .2s, outline-color .2s; }
.av-pg-tnav { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 1px solid var(--av-line, #E3EAF1); border-radius: 50%; background: #fff; color: var(--av-navy, #0B1F3A); box-shadow: 0 2px 8px rgba(11, 31, 58, .14); cursor: pointer; transition: opacity .2s; }
.av-pg-tnav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.av-pg-tnav--prev { left: -8px; }
.av-pg-tnav--next { right: -8px; }
.av-pg-tnav[disabled] { opacity: 0; pointer-events: none; }
.av-pg-thumb:hover { opacity: 1; }
.av-pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Studio product photos have a #FDFDFD background: lift them to pure white so no faint box shows inside white cards */
.av-pg-slide img, .av-pg-thumb img, [data-interaction-id="54c39c1a"] img,
:is([data-id="14890b5f"], [data-id="1655c753"], [data-id="773b0199"]) img { filter: brightness(1.012); }

/* ---------- Notices ("added to cart" etc.): top of the product area, above the title ---------- */
.av-pd-notices { margin: 0 0 20px; }

/* ---------- Buy box ---------- */
.av-bb-notices .woocommerce-message, .av-bb-notices .woocommerce-error, .av-bb-notices .woocommerce-info, .av-bb-notices .wc-block-components-notice-banner { list-style: none; margin: 0 0 18px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--av-ice, #EAF5FD); color: var(--av-navy, #0B1F3A); font-size: 15px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.av-bb-notices .woocommerce-error, .av-bb-notices .wc-block-components-notice-banner.is-error { background: #FDECEC; color: #8A1C1C; }
.av-bb-notices a.button, .av-bb-notices a { order: 2; font-weight: 600; color: var(--av-blue, #0A72BB); text-decoration: none; }
.av-bb-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }
.av-bb-now { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--av-navy, #0B1F3A); }
.av-bb-was { font-size: 18px; color: var(--av-muted, #5B6B7B); text-decoration: line-through; }
.av-bb-save { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #E3F6EC; color: #0A6A36; }
.av-bb-note { margin: 0 0 22px; font-size: 14px; color: var(--av-muted, #5B6B7B); }
.av-bb-price + .av-bb-form { margin-top: 18px; } /* no plan note (e.g. Solace Wi-Fi): keep space under the price */
.av-bb-form { margin: 0; }
.av-bb-packs { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.av-bb-packs legend { padding: 0; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--av-navy, #0B1F3A); }
.av-bb-pack { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 12px; border-radius: 14px; border: 1.5px solid var(--av-line, #E3EAF1); background: var(--av-surface, #fff); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.av-bb-pack:hover { border-color: #9CCBEE; }
.av-bb-pack.is-checked { border-color: var(--av-blue, #0A72BB); box-shadow: 0 0 0 3px rgba(10, 114, 187, .15); }
.av-bb-pack.is-out { opacity: .5; cursor: not-allowed; }
.av-bb-pack input { position: absolute; opacity: 0; pointer-events: none; }
.av-bb-pack:has(input:focus-visible) { outline: 2px solid var(--av-blue, #0A72BB); outline-offset: 2px; }
.av-bb-pack-name { font-size: 15px; font-weight: 600; color: var(--av-navy, #0B1F3A); }
.av-bb-pack-per { font-size: 12px; color: var(--av-muted, #5B6B7B); }
.av-bb-pack-price { margin-top: 6px; font-size: 16px; font-weight: 700; color: var(--av-navy, #0B1F3A); }
.av-bb-pack-save { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: #0A6A36; color: #fff; font-size: 11px; font-weight: 600; }
.av-bb-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.av-bb-qty { display: flex; align-items: center; gap: 2px; padding: 0 4px; border: 1.5px solid var(--av-line, #E3EAF1); border-radius: 10px; background: var(--av-surface, #fff); }
.av-bb-qty input { width: 44px; height: 50px; border: 0; background: transparent; text-align: center; font: inherit; font-size: 16px; font-weight: 600; color: var(--av-navy, #0B1F3A); -moz-appearance: textfield; }
.av-bb-qty input::-webkit-outer-spin-button, .av-bb-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.av-bb-step { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 20px; line-height: 1; color: var(--av-navy, #0B1F3A); cursor: pointer; transition: background-color .2s, color .2s; }
.av-bb-step:hover { background: var(--av-ice, #EAF5FD); color: var(--av-blue, #0A72BB); }
.av-bb-btn { flex: 1 1 150px; height: 53px; padding: 0 22px; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.av-bb-buy { border: 0; background: var(--av-blue, #0A72BB); color: #fff; }
.av-bb-buy:hover { background: var(--av-blue-hover, #085E9B); }
.av-bb-add { border: 1.5px solid var(--av-navy, #0B1F3A); background: transparent; color: var(--av-navy, #0B1F3A); }
.av-bb-add:hover { background: var(--av-navy, #0B1F3A); color: var(--av-bg, #fff); }
.av-bb-out { align-self: center; font-weight: 600; color: #8A1C1C; }
.av-bb-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--av-line, #E3EAF1); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--av-muted, #5B6B7B); }
.av-bb-trust li { padding-left: 22px; background: url('/wp-content/uploads/2026/10/av-icon-check-blue.png') left center / 15px no-repeat; }
.av-bb-trust a { color: var(--av-blue, #0A72BB); font-weight: 600; text-decoration: none; }
@media (max-width: 520px) { .av-bb-packs { grid-template-columns: 1fr; } .av-bb-pack { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; } .av-bb-pack-price { margin: 0 0 0 auto; } .av-bb-btn { flex-basis: 100%; } .av-bb-qty { flex: 1 1 100%; justify-content: space-between; } }

/* ---------- Sticky "Buy now" bar (phones, after scrolling past the buy box; built by shop.js) ---------- */
.av-sbar { display: none; }
@media (max-width: 767px) {
	.av-sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--av-bg, #fff); border-top: 1px solid var(--av-line, #E3EAF1); box-shadow: 0 -10px 30px rgba(11, 31, 58, .1); transform: translateY(110%); transition: transform .25s ease; }
	.av-sbar.is-on { transform: translateY(0); }
	.av-sbar-info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
	.av-sbar-name { font-size: 13px; color: var(--av-muted, #5B6B7B); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.av-sbar-price { font-size: 20px; font-weight: 700; color: var(--av-navy, #0B1F3A); }
	.av-sbar-btn { flex: 0 0 auto; height: 48px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--av-blue, #0A72BB); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
	.av-sbar-btn:active { background: var(--av-blue-hover, #085E9B); }
	body.av-sbar-on { padding-bottom: 76px; }
}

/* ---------- "From" in front of pack prices: small label so the numbers line up with single prices ---------- */
.av-from { font-size: .72em; font-weight: 500; color: var(--av-muted, #5B6B7B); margin-right: 2px; }

/* ---------- Shop page "Choose your setup" cards (template 471: cards 61553f4f / 75d7b2cd / 6276b053, photo boxes 14890b5f / 1655c753 / 773b0199) ---------- */
:is([data-id="14890b5f"], [data-id="1655c753"], [data-id="773b0199"]) img { transition: transform .35s ease; }
:is([data-id="61553f4f"], [data-id="75d7b2cd"], [data-id="6276b053"]):hover img { transform: scale(1.04); }

/* ---------- Related product cards (product template, loop item beb715) ---------- */
[data-interaction-id="beb715"] { opacity: 1 !important; }
[data-interaction-id="54c39c1a"] { transition: border-color .25s ease, box-shadow .25s ease; }
[data-interaction-id="54c39c1a"] img { transition: transform .35s ease; }
[data-interaction-id="125b16af"] { transition: color .2s ease; }
[data-interaction-id="beb715"]:hover [data-interaction-id="54c39c1a"] { border-color: #9CC9EC !important; box-shadow: 0 14px 34px rgba(11, 31, 58, .08); }
[data-interaction-id="beb715"]:hover img { transform: scale(1.04); }
[data-interaction-id="beb715"]:hover [data-interaction-id="125b16af"] { color: var(--av-blue, #0A72BB) !important; }
/* Fill the row with however many cards there are (usually 2), wide photo boxes */
[data-id="4db92df4"] { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important; }
[data-id="4db92df4"] [data-interaction-id="54c39c1a"] { aspect-ratio: 16 / 10 !important; height: auto !important; }
[data-id="4db92df4"] [data-interaction-id="54c39c1a"] img { object-fit: contain !important; }

/* ---------- Product description (WooCommerce long description, inside #av-pd; section headings are h2) ---------- */
#av-pd :is(h2, h3) { margin: 40px 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: var(--av-navy, #0B1F3A); }
#av-pd :is(h2, h3):first-child { margin-top: 0; font-size: clamp(26px, 2.6vw, 32px); }
#av-pd p { font-size: 17px; line-height: 1.65; color: var(--av-muted, #5B6B7B); max-width: 720px; }
.av-feats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.av-feats li { padding-top: 16px; border-top: 1px solid var(--av-line, #E3EAF1); font-size: 15px; line-height: 1.55; color: var(--av-muted, #5B6B7B); }
.av-feats b { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 600; color: var(--av-navy, #0B1F3A); }
/* Specs: label column + value right next to it (easy to scan); label stacked over value on phones */
.av-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.av-specs div { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--av-line, #E3EAF1); }
.av-specs dt { font-size: 14px; color: var(--av-muted, #5B6B7B); }
.av-specs dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--av-navy, #0B1F3A); text-align: left; }
#av-pd .av-note { margin-top: 32px; padding: 18px 20px; border-radius: 14px; background: var(--av-ice, #EAF5FD); font-size: 15px; color: var(--av-navy, #0B1F3A); max-width: none; }
#av-pd .av-note b { font-weight: 600; }
@media (max-width: 900px) { .av-feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
	.av-feats, .av-specs { grid-template-columns: 1fr; }
	.av-specs div { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
	.av-specs dt { font-size: 13px; }
}

/* ---------- Dark theme: product photos sit on a soft light tile and blend into it (no white glare, no two-tone bands) ---------- */
html[data-theme="dark"] .av-pg, html[data-theme="dark"] .av-pg-thumb, html[data-theme="dark"] [data-interaction-id="54c39c1a"],
html[data-theme="dark"] :is([data-id="14890b5f"], [data-id="1655c753"], [data-id="773b0199"]) { background-color: #DCE4EC !important; border-color: transparent !important; }
html[data-theme="dark"] .av-pg-slide img, html[data-theme="dark"] .av-pg-thumb img, html[data-theme="dark"] [data-interaction-id="54c39c1a"] img,
html[data-theme="dark"] :is([data-id="14890b5f"], [data-id="1655c753"], [data-id="773b0199"]) img { filter: none; mix-blend-mode: multiply; }
html[data-theme="dark"] .av-bb-save, html[data-theme="dark"] .av-bb-notices .woocommerce-message { background: rgba(10, 122, 62, .25); color: #9BE3B9; }
html[data-theme="dark"] .av-from { color: #9FB2C2; }
html[data-theme="dark"] .av-sbar { background: #0E1C2F; border-top-color: rgba(255, 255, 255, .1); box-shadow: 0 -10px 30px rgba(0, 0, 0, .4); }
