.ac-page{--ac-green:#169B9A;--ac-icon:var(--ac-green);max-width:1100px;margin:auto;padding:28px 20px 48px;color:inherit;font:inherit}.ac-page *{box-sizing:border-box}.ac-page h1{font-size:clamp(1.6rem,3vw,2.4rem);margin:0 0 24px}.ac-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px 28px;align-items:start}.ac-swatch-cell,.ac-sheet-area{grid-column:1;min-width:0}.ac-swatch-cell{grid-row:1;align-self:center}.ac-sheet-area{grid-row:2}.ac-photo{position:relative;margin:0}.ac-photo>img{display:block;width:100%;height:auto}.ac-info{grid-column:2;grid-row:1;align-self:center;font-size:calc(16px + 2pt);line-height:1.6}.ac-info p{margin:0 0 10px}.ac-info ul{padding-left:20px;margin:0 0 18px}.ac-price{display:flex;gap:12px 16px;align-items:center;flex-wrap:wrap;margin:16px 0}.ac-page .ac-properties-title{font:inherit;font-weight:600;margin:18px 0 8px}.ac-page .ac-note{font-size:.8rem;line-height:1.5;margin:12px 0 0}.ac-page .ac-cta{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 23px;border:0;border-radius:999px;background:var(--ac-green);color:#fff;text-decoration:none;font-size:.82rem;font-weight:600;letter-spacing:.02em}.ac-actions{position:absolute;right:10px;bottom:10px;display:flex;gap:6px}.ac-actions button,.ac-actions a,.ac-dialog button,.ac-dialog-actions a{border:0;background:transparent;color:var(--ac-icon);display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;cursor:pointer;box-shadow:none}.ac-page svg{width:23px;height:23px}.ac-page :is(button,a):focus-visible{outline:3px solid currentColor;outline-offset:2px}.ac-tone-black{--ac-icon:#000}.ac-tone-white{--ac-icon:#fff}.ac-gallery,.ac-shop{margin-top:38px}.ac-gallery>h2,.ac-shop>h2{font-size:1.4rem;margin:0 0 20px}.ac-gallery>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ac-request{text-align:center;margin:36px 0 0}.ac-dialog{border:0;padding:0;background:#fff;max-width:calc(100vw - 24px);width:960px;max-height:calc(100dvh - 24px);overflow:auto}.ac-dialog::backdrop{background:#000b}.ac-dialog-frame{position:relative}.ac-dialog img{display:block;width:100%;height:auto;max-height:calc(100dvh - 24px);object-fit:contain}.ac-dialog button{position:absolute;right:10px;top:10px}.ac-shop{border:0}.ac-page .ac-photo{border:0}@media(max-width:700px){.ac-page{padding:20px 16px 36px}.ac-hero{grid-template-columns:1fr;gap:24px}.ac-hero>.ac-swatch-cell,.ac-hero>.ac-info,.ac-hero>.ac-sheet-area{grid-area:auto}.ac-gallery>div{gap:12px}}
/* The existing theme owns card styles. Its shop.php prints the native quantity
   pill CSS only on shop/product/taxonomy/front pages. Reuse its four archive
   declarations on opted-in colour pages, without altering discounts or prices. */
.ac-shop .artstone-quantity-promo{min-width:0;text-align:left}
.ac-shop .artstone-quantity-pill{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;border:2px solid #169B9A;border-radius:999px;background:#169B9A;color:#fff;font-size:12px;font-weight:500;line-height:15px;padding:10px 12px;text-align:center}
.ac-shop .artstone-quantity-note{display:block;max-width:260px;margin-top:6px;font-size:11px;line-height:1.4;font-weight:400;color:inherit}
.ac-shop .artstone-quantity-loop{display:block;width:fit-content;max-width:100%;margin:10px 0 0;text-align:left}

.ac-dialog-actions{position:absolute;right:10px;top:10px;display:flex;gap:6px}.ac-dialog .ac-dialog-actions button{position:static}.ac-dialog-actions a{color:var(--ac-icon)}

/* Overlay only: a clipped copy samples the swatch without resizing its base image. */
.ac-swatch.ac-lens-active > img{touch-action:none}
.ac-swatch .ac-lens[hidden]{display:none}
.ac-swatch .ac-lens{position:absolute;left:var(--ac-lens-x,50%);top:var(--ac-lens-y,50%);width:var(--ac-lens-d,104px);height:var(--ac-lens-d,104px);transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;pointer-events:none;box-shadow:0 0 0 2px #fff,0 0 0 3px #0006;z-index:1}
.ac-swatch .ac-lens > img{position:absolute;max-width:none;max-height:none;object-fit:cover;display:block}
.ac-swatch .ac-actions{z-index:2}

/* Opted-in, translated layout only. Do not change old pilot inline styling. */
.ac-page.ac-layout-v2{padding-top:0;padding-bottom:0}
.ac-layout-v2 .ac-swatch-cell img{margin-bottom:0}
.ac-layout-v2 .ac-info,.ac-layout-v2 .ac-info>p:not(.ac-note),.ac-layout-v2 .ac-info>ul,.ac-layout-v2 .ac-info>ul>li,.ac-layout-v2 .ac-info .ac-price,.ac-layout-v2 .ac-info .ac-properties-title{font-size:16px}
.ac-layout-v2 .ac-info>p:not(.ac-note),.ac-layout-v2 .ac-info>ul>li{line-height:1.45}
.ac-layout-v2 .ac-info .ac-price{margin-block:10px}
.ac-layout-v2 .ac-info .ac-properties-title{margin-top:10px}
.ac-layout-v2 .ac-format-label,.ac-layout-v2 .ac-price>span{font-weight:600}
.ac-layout-v2 .ac-shop .product-card-above-title+.woocommerce-loop-product__title{margin-top:4px}
.ac-layout-return{margin:0 auto;padding:14px 0 26px;text-align:center}
.ac-layout-return-bottom{padding:4px 0 24px}
.ac-layout-v2 .ac-layout-return a{display:inline-flex;align-items:center;justify-content:center;gap:.45em;width:153px;max-width:100%;padding:10px 16px;min-height:44px;border-radius:999px;text-decoration:none;white-space:normal;font-size:13.12px;font-weight:600;line-height:20.992px;letter-spacing:.2624px}
.ac-layout-v2 .ac-pan-hint{display:none}
.ac-layout-cta{max-width:none;margin-block:0}
.ac-layout-cta>.container{width:100%;max-width:none;padding-inline:0}
.ac-layout-cta .section-bg{width:100%;max-width:none;margin-inline:0}
.ac-layout-cta .section-padding{padding-inline:16px}
/* Match the viewport minus its scrollbar; do not overflow the document. */
@supports selector(.main-padding-top:has(.ac-layout-cta)) {
  .main-padding-top:has(.ac-layout-cta){container-type:inline-size}
  .main-padding-top>.container.mb-20:has(.ac-layout-cta){margin-bottom:0!important}
  .post-content:has(>.ac-layout-cta){padding-bottom:0;margin-bottom:0}
}
@supports (width:100cqw) and selector(.main-padding-top:has(.ac-layout-cta)) {
  .post-content>.ac-layout-cta{width:100cqw;margin-inline:calc(50% - 50cqw)}
}
@media (max-width:767px),(max-width:980px) and (pointer:coarse) {
  .ac-layout-v2 .ac-dialog[open]{width:calc(100vw - 24px);overflow:hidden}
  .ac-layout-v2 .ac-dialog-frame{display:flex;flex-direction:column;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pinch-zoom}
  .ac-layout-v2 .ac-dialog-frame>img{order:1;display:block;flex:none;align-self:flex-start;width:auto;height:clamp(180px,40dvh,320px);max-width:none;max-height:none;object-fit:contain;margin:0}
  .ac-layout-v2 .ac-dialog-frame>.ac-dialog-actions{order:0;position:sticky;left:0;right:auto;top:0;flex:none;align-self:flex-start;align-items:center;justify-content:flex-end;gap:4px;width:100%;padding:0 4px 0 12px;background:white;z-index:1}
  .ac-layout-v2 .ac-pan-hint{display:inline;margin-right:auto;font-size:.78rem;color:#343b45}
}
