/* ==========================================================================
   Shop, product, cart, checkout, account — builds on app.css tokens
   ========================================================================== */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper); box-shadow: var(--lift); font-weight: 600; font-size: var(--fs-md); }
.woocommerce-message { box-shadow: inset 4px 0 0 var(--ok), var(--lift); }
.woocommerce-info { box-shadow: inset 4px 0 0 var(--sky), var(--lift); }
.woocommerce-error { box-shadow: inset 4px 0 0 var(--err), var(--lift); flex-direction: column; align-items: flex-start; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; padding: 8px 16px; font-size: var(--fs-ui); order: 2; }
.woocommerce-notices-wrapper > * { animation: sm-rise var(--dur-3) var(--ease-out) both; } /* keyframes: app.css */
.sm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0 8px; font-size: var(--fs-ui); color: var(--ink-3); }
.sm-crumbs a:hover { color: var(--ink); }
.sm-crumbs a, .reset_variations { display: inline-block; padding: 11px 0; margin: -11px 0; } /* 44px hit area, same layout */
@media (max-width: 767px) { .sm-crumbs { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sm-crumbs > span[aria-hidden] { margin: 0 6px; } } /* one line on phones; the product name ellipsizes */

/* ---------- shop archive ---------- */
.sm-shop { padding-top: 24px; padding-bottom: 48px; }
.sm-shop__head { padding: 16px 0 8px; }
.sm-shop__head .sm-lead a { color: var(--laser-deep); text-decoration: underline; text-underline-offset: 3px; }
.sm-shop__digital { display: flex; align-items: center; gap: 14px; margin: 12px 0 4px; padding: 16px; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; }
.sm-shop__digital-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 13px; color: var(--laser); }
.sm-shop__digital-copy { display: grid; gap: 3px; min-width: 0; }
.sm-shop__digital-copy strong { font-size: 1.03rem; line-height: 1.15; }
.sm-shop__digital-copy small { color: #d7e1ee; font-size: .82rem; line-height: 1.35; }
.sm-shop__digital-go { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-left: auto; color: var(--laser); font-size: .86rem; font-weight: 700; }
.sm-shop__digital:hover, .sm-shop__digital:focus-visible { background: #172e53; color: #fff; }
@media (max-width: 480px) { .sm-shop__digital { gap: 11px; padding: 14px; } .sm-shop__digital-go { font-size: 0; } }
.sm-shop__cats { display: flex; gap: 8px; overflow-x: auto; margin: 16px -16px 8px; padding: 4px 16px 8px; scrollbar-width: none; }
.sm-shop__cats::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .sm-shop__cats { flex-wrap: wrap; margin: 16px 0 8px; padding: 4px 0 8px; } }
.sm-shop__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.woocommerce-result-count { margin: 0; font-size: var(--fs-ui); color: var(--ink-3); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select { min-height: 44px; width: auto; padding: 8px 32px 8px 12px; font-size: 16px; font-weight: 600; border-radius: var(--pill); appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c1f3d' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center; }
.sm-empty { padding: 32px 24px; text-align: center; margin: 24px auto; max-width: 520px; }
.sm-empty .sm-404__search { margin: 16px auto; text-align: left; }
.sm-empty__act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }

/* product grid + card */
.sm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.term-digital-downloads .sm-grid:has(> .sm-pc:only-child) { grid-template-columns: minmax(0, 360px); justify-content: center; }
@media (min-width: 768px) { .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .sm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sm-pc { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; }
.sm-pc__media { position: relative; display: block; aspect-ratio: 1; background: var(--frost-2); overflow: hidden; }
.sm-pc__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-2) var(--ease-out), scale var(--dur-3) var(--ease-out); }
.sm-pc__media .sm-pc__alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .sm-pc:hover .sm-pc__alt { opacity: 1; }
  .sm-pc:hover .sm-pc__media img:first-child { scale: 1.03; }
}
.sm-pc__flags { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.sm-pc__flags .sm-badge { box-shadow: inset 0 0 0 1px var(--edge); } /* one quiet white badge on any photo */
.sm-pc__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 12px; }
@media (min-width: 768px) { .sm-pc__body { padding: 14px 16px 16px; } }
.sm-pc__t { margin: 0; font-size: var(--fs-ui); font-weight: 650; line-height: 1.3; font-variation-settings: 'wdth' 100; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) { .sm-pc__t { font-size: var(--fs-md); } }
.sm-pc__t a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.sm-pc__t a:focus-visible { outline: none; } /* the ring goes round the whole card the link covers */
.sm-pc:has(.sm-pc__t a:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 3px; }
.sm-pc__media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(12,31,61,.07); pointer-events: none; } /* photo edge on white cards */
.sm-pc__sw { display: flex; gap: 4px; }
.sm-pc__sw i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(12,31,61,.15); }
.sm-pc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.sm-pc__price { font-weight: 800; font-size: 16px; font-variation-settings: 'wdth' 90; font-variant-numeric: tabular-nums; }
.sm-pc__price del { color: var(--ink-3); font-weight: 500; font-size: var(--fs-sm); margin-right: 4px; }
.sm-pc__price ins { text-decoration: none; }
.sm-pc__add, .sm-pc__go { position: relative; z-index: 2; }
.sm-pc__add.button { min-height: 44px; min-width: 44px; padding: 6px 12px; font-size: var(--fs-sm); background: var(--ink); color: #fff !important; box-shadow: none; } /* quick-add: navy, the page's orange is its one main action */
@media (hover: hover) and (pointer: fine) { .sm-pc:hover .sm-pc__add.button, .sm-pc__add.button:hover { background: #172f58; } }
.sm-pc__add span { display: none; }
@media (min-width: 480px) { .sm-pc__add span { display: inline; } }
.sm-pc__go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--frost); }
@media (hover: hover) and (pointer: fine) { .sm-pc:hover .sm-pc__go { background: var(--ink); color: #fff; } }
.woocommerce-pagination ul { list-style: none; display: flex; justify-content: center; gap: 6px; padding: 0; margin: 32px 0 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; border-radius: var(--pill); background: var(--paper); font-weight: 700; box-shadow: var(--lift); }
.woocommerce-pagination .current { background: var(--ink); color: #fff; }

/* ---------- single product ---------- */
.sm-pdwrap { padding-bottom: 32px; }
.single-product div.product { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); position: relative; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.single-product div.product > .onsale { display: none; }
.woocommerce-product-gallery { position: relative; margin: 0 -16px; }
@media (min-width: 768px) { .woocommerce-product-gallery { margin: 0; } }
.woocommerce-product-gallery__wrapper { margin: 0; }
/* Before Woo's slider JS runs: show only the first photo (its square box is reserved), never a blank, stacked gallery. */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce-product-gallery:not(:has(.flex-active-slide)) .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
.woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)) { min-height: calc(100vw + 74px); }
@media (min-width: 768px) { .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)) { min-height: 0; } }
.woocommerce-product-gallery .flex-viewport { border-radius: 0; background: var(--paper); aspect-ratio: 1; overflow: hidden; } /* no tall frame while flexslider sizes the slides */
@media (min-width: 768px) { .woocommerce-product-gallery .flex-viewport { border-radius: var(--r-lg); box-shadow: var(--lift); } }
@media (min-width: 768px) { .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__wrapper { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--lift); background: var(--paper); } } /* one photo: no slider, same frame */
.woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product_cat-digital-downloads .woocommerce-product-gallery__image img,
li.product_cat-digital-downloads img { object-position: center top; }
.single-product .product_cat-digital-downloads .woocommerce-product-gallery__image { display: block; padding: 12px; background: var(--paper); }
.single-product .product_cat-digital-downloads .woocommerce-product-gallery__image img { display: block; height: auto; max-height: 380px; aspect-ratio: auto; object-fit: contain; object-position: center; }
li.product_cat-digital-downloads:not(.sm-pc--micro) .sm-pc__media img { padding: 10px; background: var(--paper); object-fit: contain; }
.sm-pc--micro .sm-pc__media { background: var(--ink); }
.sm-pc--micro .sm-pc__media img { position: absolute; left: 9px; right: 9px; bottom: 8px; width: calc(100% - 18px); height: 34%; border-radius: 5px; object-fit: cover; object-position: center top; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.sm-pc__digital-cover { position: absolute; inset: 0 0 38%; display: flex; flex-direction: column; justify-content: space-between; padding: 11px 13px 5px; color: #fff; background: linear-gradient(145deg, var(--ink), #1b355d); }
.sm-pc__digital-kicker { color: var(--laser); font-size: .52rem; font-weight: 800; letter-spacing: .08em; }
.sm-pc__digital-cover strong { max-width: 16ch; font-size: clamp(.9rem, 2.7vw, 1.4rem); line-height: 1.03; letter-spacing: -.025em; }
.sm-pc__digital-cover small { color: #cfd9e8; font-size: .62rem; }
.sm-pc--micro .sm-pc__flags { display: none; }
.sm-pd__preview-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 12px; padding: 4px; border: 1px solid var(--edge); border-radius: var(--pill); background: var(--paper); }
.sm-pd__preview-tab { min-height: 44px; padding: 9px 18px; border: 0; border-radius: var(--pill); background: transparent; color: var(--ink-2); font: 700 var(--fs-ui)/1.2 var(--f); cursor: pointer; white-space: nowrap; }
.sm-pd__preview-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.sm-pd__preview-tab:focus-visible { outline: 3px solid var(--laser); outline-offset: 2px; }
.sm-pd__preview-panel[hidden], .sm-pd__media > .woocommerce-product-gallery[hidden] { display: none !important; }
.sm-pd__preview-panel { min-width: 0; }
.sm-pd__preview-body { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.sm-pd__preview-body > .sm-studio__3d, .sm-pd__preview-body > .sm-studio__proof { width: 100%; height: 100%; min-height: 0; aspect-ratio: 1; margin: 0; border-radius: var(--r-lg); }
.sm-pd__preview-body > .sm-studio__size:not(:empty) { position: absolute; left: 50%; bottom: 14px; z-index: 1; width: max-content; max-width: calc(100% - 24px); margin: 0; padding: 6px 12px; transform: translateX(-50%); border-radius: var(--pill); background: rgba(255,255,255,.92); }
@media (max-width: 767px) { .sm-pd__preview-tabs { margin-inline: 0; } .sm-pd__preview-body { border-radius: 0; } }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 50%; }
.flex-control-thumbs { list-style: none; display: flex; gap: 8px; margin: 10px 0 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 768px) { .flex-control-thumbs { padding: 0; } }
.flex-control-thumbs li { flex: 0 0 64px; }
.flex-control-thumbs img { border-radius: var(--r-sm); opacity: .55; cursor: pointer; aspect-ratio: 1; object-fit: cover; transition: opacity var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
.flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--ink); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .flex-control-thumbs img:hover { opacity: 1; } }
.summary.entry-summary { display: flex; flex-direction: column; gap: 4px; }
.sm-pd__cat { font-size: var(--fs-ui); font-weight: 600; color: var(--ink-3); }
.sm-pd__cat a:hover { color: var(--ink); }
.product_title { font-size: clamp(1.7rem, 6vw, 2.6rem); margin: 4px 0 8px; }
.summary .price { font-size: 1.6rem; font-weight: 800; font-variation-settings: 'wdth' 90; margin: 0 0 12px; color: var(--ink); }
.summary .price del { font-size: 1.1rem; color: var(--ink-3); font-weight: 500; }
.summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description { color: var(--ink-2); font-size: 16px; }
.woocommerce-product-rating { display: flex; align-items: center; gap: 8px; font-size: var(--fs-ui); margin-bottom: 8px; }
.star-rating { position: relative; width: 5.4em; height: 1.1em; font-size: var(--fs-md); overflow: hidden; line-height: 1; letter-spacing: .1em; }
.star-rating::before { content: "★★★★★"; color: var(--frost-2); position: absolute; inset: 0; }
.star-rating span { position: absolute; inset: 0 auto 0 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: "★★★★★"; color: #f5a623; position: absolute; top: 0; left: 0; }
.stock { font-weight: 700; font-size: var(--fs-ui); margin: 0 0 8px; }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock { color: var(--err); }

/* variation selectors → chips (JS converts selects into buttons, select remains for Woo) */
table.variations { width: 100%; border: 0; margin: 8px 0 12px; border-collapse: collapse; }
table.variations tr { display: block; margin-bottom: 14px; }
table.variations th, table.variations td { display: block; padding: 0; text-align: left; border: 0; }
table.variations th label { font-size: var(--fs-md); font-weight: 700; }
table.variations .sm-sel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
table.variations .sm-sel .sm-chip { min-height: 44px; }
table.variations .sm-sel .sm-chip[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
table.variations .sm-sel .sm-chip .sm-dot { width: 16px; height: 16px; box-shadow: inset 0 0 0 1px rgba(12,31,61,.2); }
table.variations select.sm-hidden-select { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.reset_variations { display: inline-block; margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-3); text-decoration: underline; }
.woocommerce-variation-price { margin: 4px 0 12px; }
.woocommerce-variation-price .price { font-size: 1.3rem; }
.woocommerce-variation-availability p { margin: 0 0 8px; }

form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 12px 0 16px; }
form.cart.variations_form { display: block; }
.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; }
form.cart .single_add_to_cart_button { flex: 1 1 180px; min-height: 54px; font-size: 17px; padding-inline: 16px; white-space: nowrap; } /* "Add to cart · ₱150" on one line at 375px */
.quantity { display: inline-flex; align-items: center; background: var(--paper); border-radius: var(--pill); box-shadow: inset 0 0 0 1.5px var(--edge); height: 54px; }
.quantity .qty { width: 48px; min-height: 0; height: 100%; padding: 0; border: 0; box-shadow: none !important; background: transparent; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sm-qty__b { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; font-weight: 600; border-radius: var(--pill); }
@media (hover: hover) and (pointer: fine) { .sm-qty__b:hover { background: var(--frost); } }
.quantity.hidden { display: none; }

.sm-facts { list-style: none; margin: 8px 0 12px; padding: 14px 0; display: grid; gap: 10px; border-radius: 0; background: none; box-shadow: none; border-block: 1px solid var(--edge); font-size: var(--fs-md); }
.sm-facts li { display: flex; align-items: center; gap: 10px; }
.sm-facts .sm-i { color: var(--ink-3); }
.sm-pd__alt { font-size: var(--fs-ui); color: var(--ink-3); }
.sm-pd__alt a { text-decoration: underline; text-underline-offset: 3px; }

.sm-pd__info { grid-column: 1 / -1; display: grid; margin-top: 16px; } /* no gap: Details and Specs join into one card (app.css .sm-acc + .sm-acc) */
@media (min-width: 900px) { .sm-pd__info { grid-column: 2; margin-top: -8px; } }
.sm-acc__b .shop_attributes { width: 100%; border-collapse: collapse; }
.sm-acc__b .shop_attributes th { text-align: left; width: 40%; font-weight: 600; color: var(--ink); }
.sm-acc__b .shop_attributes th, .sm-acc__b .shop_attributes td { padding: 8px 0; border-bottom: 1px solid var(--edge); }
.sm-acc__b .shop_attributes p { margin: 0; }
#reviews .commentlist { list-style: none; padding: 0; }
#reviews .comment_container { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--edge); }
#reviews img.avatar { border-radius: 50%; width: 40px; height: 40px; }
#review_form .comment-reply-title { font-weight: 700; display: block; margin: 12px 0; }
#review_form .stars a { font-size: 0; display: inline-grid; place-items: center; width: 40px; height: 44px; }
#review_form .stars a::before { content: "★"; font-size: 26px; color: var(--frost-2); }
#review_form .stars.selected a::before { color: #f5a623; }
@media (hover: hover) and (pointer: fine) { #review_form .stars:hover a::before { color: #f5a623; } }
#review_form .stars.selected a.active ~ a::before { color: var(--frost-2); }
@media (hover: hover) and (pointer: fine) { #review_form .stars a:hover ~ a::before { color: var(--frost-2); } }

.related, .upsells { grid-column: 1 / -1; margin-top: 40px; }
.related > h2, .upsells > h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
.related .sm-grid, .upsells .sm-grid { grid-auto-flow: column; grid-auto-columns: 46%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 16px; scrollbar-width: none; }
.related .sm-grid > *, .upsells .sm-grid > * { scroll-snap-align: start; }
@media (min-width: 768px) { .related .sm-grid, .upsells .sm-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: visible; margin: 0; padding: 0; } }

/* sticky buy bar (mobile) */
.sm-buybar { position: fixed; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); bottom: calc(8px + var(--safe-b)); z-index: 55; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--lift-3); transform: translateY(calc(100% + 24px)); transition: transform var(--dur-2) var(--ease-drawer), visibility 0s linear var(--dur-2); }
.sm-buybar.is-on { transform: none; transition: transform var(--dur-3) var(--ease-drawer), visibility 0s; }
.sm-buybar[hidden] { display: flex !important; visibility: hidden; }
.sm-buybar.is-on[hidden] { visibility: visible; }
.sm-buybar__p { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sm-buybar__t { font-size: var(--fs-sm); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-buybar__price { font-weight: 800; font-variation-settings: 'wdth' 90; }
.sm-buybar__price del { display: none; }
.sm-buybar__price ins { text-decoration: none; }
.sm-buybar .sm-btn { min-height: 46px; padding: 10px 18px; }

/* ---------- cart ---------- */
.woocommerce-cart .sm-prose, .woocommerce-checkout .sm-prose, .woocommerce-account .sm-prose { max-width: none; color: var(--ink); font-size: 16px; }
.sm-ship { margin: 0 0 20px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); }
.sm-ship p { margin: 0 0 8px; font-size: var(--fs-md); }
.sm-ship__bar { height: 8px; border-radius: var(--pill); background: var(--frost-2); overflow: hidden; }
.sm-ship__bar span { display: block; height: 100%; width: var(--p); background: var(--ink); border-radius: var(--pill); }
.woocommerce-cart-form { margin-bottom: 24px; }
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--edge); vertical-align: middle; }
table.shop_table thead th { font-size: var(--fs-sm); color: var(--ink-3); font-weight: 700; }
table.shop_table tr:last-child td { border-bottom: 0; }
table.cart img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--r-sm); }
table.cart .product-name a { font-weight: 700; text-decoration: none; color: var(--ink); }
table.cart .product-remove a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; color: var(--ink-3) !important; transition: background-color var(--dur-1) ease, color var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { table.cart .product-remove a:hover { background: #fde8e8; color: var(--err) !important; } }
table.cart td.actions { background: var(--frost); }
table.cart td.actions .coupon { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
table.cart td.actions .coupon .input-text { flex: 1 1 160px; width: auto; }
table.cart td.actions .coupon .button { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--edge-2); }
@media (hover: hover) and (pointer: fine) { table.cart td.actions .coupon .button:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); } }
.sm-coupon > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; font-size: var(--fs-md); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sm-coupon[open] > summary { margin-bottom: 8px; }
.sm-cobar { position: fixed; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); bottom: calc(var(--tab-h) + 16px + var(--safe-b)); z-index: 55; display: flex; align-items: center; gap: 12px; padding: 8px;
  background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--lift-3); }
.sm-cobar .sm-btn { flex: 1; min-height: 50px; }
.sm-cobar[hidden] { display: none; }
/* one bottom bar at a time (like product and souvenir pages): the checkout bar takes the tab bar's place */
body:has(.sm-cobar:not([hidden])) .sm-tabbar { display: none; }
.sm-cobar { bottom: calc(8px + var(--safe-b)); }
@media (min-width: 960px) { .sm-cobar { display: none; } }
@media (max-width: 959px) { .woocommerce-cart:has(.sm-cobar:not([hidden])) .sm-main { padding-bottom: calc(var(--safe-b) + 96px); } } /* room for the checkout bar only: the tab bar is hidden */
table.cart td.actions > .button { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--edge-2); } /* outline: "Proceed to checkout" is the only filled button */
table.cart .quantity { height: 44px; }
@media (max-width: 767px) {
  table.cart thead { display: none; }
  table.cart, table.cart tbody { display: block; }
  table.cart tr.cart_item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img name name" "qty qty sub"; gap: 6px 12px; padding: 14px 44px 14px 14px; border-bottom: 1px solid var(--edge); position: relative; }
  table.cart tr.cart_item td { display: block; padding: 0; border: 0; min-width: 0; }
  table.cart td::before { display: none; }
  table.cart .product-thumbnail { grid-area: img; }
  table.cart .product-name { grid-area: name; }
  table.cart .product-price { display: none !important; }
  table.cart .product-quantity { grid-area: qty; }
  table.cart .product-quantity .quantity { height: 40px; }
  table.cart .product-quantity .sm-qty__b { width: 40px; }
  table.cart .product-quantity .qty { width: 36px; }
  table.cart .product-subtotal { grid-area: sub; align-self: center; justify-self: end; font-weight: 800; }
  table.cart .product-remove { position: absolute; top: 4px; right: 2px; }
  table.cart tr:has(td.actions) { display: block; background: var(--frost); }
  table.cart td.actions { display: block; padding: 14px; background: none; }
}
.cart-collaterals { display: grid; gap: 24px; }
@media (min-width: 900px) { .cart-collaterals { grid-template-columns: 1fr 420px; } .cart-collaterals .cart_totals { grid-column: 2; } }
.cart_totals h2 { font-size: 1.3rem; }
.cart_totals table.shop_table th { width: 40%; font-weight: 600; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 56px; font-size: 17px; margin-top: 12px; }
.woocommerce-shipping-methods { list-style: none; padding: 0; margin: 0; }
.woocommerce-shipping-methods li { margin: 4px 0; }
.cart-empty { font-size: 1.1rem; }
.return-to-shop .button { margin-top: 8px; }
dl.variation { margin: 6px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-3); }
dl.variation dt { display: inline; font-weight: 700; color: var(--ink-2); }
dl.variation dd { display: inline; margin: 0 0 0 2px; }
dl.variation dd::after { content: "\A"; white-space: pre; }
dl.variation p { display: inline; margin: 0; }
.sm-edit-item { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
.sm-cart-check { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--butter); font-weight: 600; font-size: var(--fs-md); }
.sm-mini-plate { display: grid; place-items: center; width: 72px; height: 72px; padding: 4px; border-radius: var(--r-sm); background: var(--frost-2); }
.sm-mini-plate span { max-width: 100%; overflow-wrap: anywhere; text-align: center; padding: 5px 6px; border-radius: 7px; font: 400 12px/1.1 'Lilita One', var(--f); box-shadow: 0 4px 8px -4px rgba(12,31,61,.5); }

/* ---------- checkout (woocommerce/checkout templates, inc/checkout.php). Phone: one column in reading order, a sticky total strip.
   960+: the cards left (Payment under the address), the summary sticky on the right. ---------- */
body.woocommerce-checkout:not(.woocommerce-order-received) .sm-page__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; }
body.woocommerce-checkout:not(.woocommerce-order-received) .sm-page__head::after { content: "Secure payment by PayMongo"; padding-left: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356657d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l8 3v6c0 5-3.5 9-8 11-4.5-2-8-6-8-11V5z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E") no-repeat 0 50% / 16px; font-size: var(--fs-ui); font-weight: 600; line-height: 1.4; color: var(--ink-3); }
.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-message { display: none; } /* "Coupon applied" etc.: the summary shows it */
form.checkout > * + * { margin-top: 16px; } /* block flow on phones: the strip sticks through the whole form (a grid cell would pin it) */
.sm-costrip { position: sticky; top: var(--top-h); z-index: 5; margin-inline: -16px; padding-inline: 16px; background: var(--paper); box-shadow: 0 1px 0 var(--edge); }
.sm-costrip p { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin: 0; font-size: var(--fs-md); font-weight: 700; }
.woocommerce-checkout .woocommerce .sm-costrip a { display: inline-flex; align-items: center; min-height: 44px; color: var(--laser-deep); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (min-width: 768px) { .sm-costrip { margin-inline: -32px; padding-inline: 32px; } }
@media (max-width: 959px) { html:has(.sm-costrip:not([hidden])) { scroll-padding-top: calc(var(--top-h) + 60px); } } /* focused fields clear the header and the total strip */
.sm-coc, #order_review { padding: 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.sm-coc__h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 20px; font-weight: 800; line-height: 1.2; font-variation-settings: 'wdth' 112; }
.sm-coc__h > span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 700; font-variation-settings: 'wdth' 100; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-billing-fields { display: grid; gap: 16px; }
/* card 2 = the address (form-billing.php) + Woo's gift toggle and notes (.col-2), drawn as one card */
.sm-coc--addr { padding-bottom: 2px; border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(12,31,61,.06); }
#customer_details .col-2 { padding: 0 20px 20px; border-radius: 0 0 var(--r-lg) var(--r-lg); background: var(--paper); box-shadow: 0 8px 24px -12px rgba(12,31,61,.18); }
#customer_details .col-2 h3 { font-size: 1rem; margin: 0 0 12px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper, .woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row { margin: 0 0 14px; grid-column: 1 / -1; }
.form-row-first { grid-column: 1; } .form-row-last { grid-column: 2; }
@media (max-width: 480px) { .form-row-first, .form-row-last { grid-column: 1 / -1; } }
/* checkout rows: first/last name 2-up, town 4 : postcode 2, at every width */
form.checkout :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
form.checkout .form-row { grid-column: 1 / -1; }
form.checkout .form-row-first { grid-column: 1 / span 3; } form.checkout .form-row-last { grid-column: 4 / span 3; }
form.checkout [id$="_city_field"] { grid-column: 1 / span 4; } form.checkout [id$="_postcode_field"] { grid-column: 5 / span 2; }
#billing_country_field, #shipping_country_field { display: none !important; } /* PH only; Woo posts it hidden (address-i18n.js .show()s rows, hence !important) */
.sm-co__acct { display: none; } /* optional "Create an account?" (owner: switch it off in WooCommerce > Accounts) */
.form-row label { display: block; margin-bottom: 6px; }
.form-row .required { color: var(--laser-deep); text-decoration: none; }
.form-row.woocommerce-invalid :is(input.input-text, textarea), .form-row.woocommerce-invalid .select2-selection { box-shadow: inset 0 0 0 2px var(--err) !important; }
.sm-co__hint { display: block; margin-top: 6px; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-3); }
form.checkout .checkout-inline-error-message { margin: 6px 0 0; font-size: var(--fs-ui); font-weight: 600; line-height: 1.4; color: var(--err); }
#order_comments { min-height: 96px; }
form.checkout wc-order-attribution-inputs { display: none; } /* hidden inputs only; an empty inline box here adds a stray line */
.select2-container .select2-selection--single { height: 50px !important; border: 0 !important; border-radius: var(--r-sm) !important; box-shadow: inset 0 0 0 1.5px var(--edge); background: var(--paper) !important; }
.select2-container .select2-selection__rendered { line-height: 50px !important; padding-left: 14px !important; color: var(--ink) !important; }
.select2-container .select2-selection__arrow { height: 48px !important; right: 8px !important; }
.select2-dropdown { border: 0 !important; border-radius: var(--r-sm) !important; box-shadow: var(--lift-3) !important; overflow: hidden; }
.select2-results__option--highlighted { background: var(--ink) !important; }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-ui); color: var(--ink-3); margin: 12px 0; }
.woocommerce-privacy-policy-text p { font-size: var(--fs-sm); }
.woocommerce-form-coupon-toggle .woocommerce-info, .woocommerce-form-login-toggle .woocommerce-info { box-shadow: var(--lift); }
.woocommerce-form-coupon, .woocommerce-form-login { background: var(--paper); padding: 16px; border-radius: var(--r); margin-bottom: 20px; box-shadow: var(--lift); }
/* summary card: receipt items (order.css) + delivery options + totals + discount code */
#order_review { display: flex; flex-direction: column; min-width: 0; }
.sm-cosum { display: flex; flex-direction: column; min-height: 0; }
.sm-co__thumb { overflow: hidden; }
.sm-co__thumb > * { width: 100%; height: 100%; }
.sm-co__thumb > img { display: block; object-fit: cover; }
.sm-co__thumb .sm-mini-plate { padding: 3px; border-radius: 0; } .sm-co__thumb .sm-mini-plate span { font-size: 11px; }
.sm-cosum .sm-ship { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--edge); border-radius: 0; background: none; box-shadow: none; }
.sm-cosum .sm-ship p { font-size: var(--fs-ui); }
.sm-co__ship { padding: 14px 0 16px; }
.sm-co__h3 { margin: 0 0 8px; font-size: var(--fs-md); font-weight: 800; }
.sm-co__shipt, .sm-co__shipt :is(tbody, tr, td) { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; }
.sm-co__shipt th { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-co__shipt #shipping_method { display: grid; gap: 8px; }
.sm-co__shipt #shipping_method li { position: relative; display: grid; gap: 2px; align-content: center; min-height: 56px; margin: 0; padding: 10px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--edge); }
.sm-co__shipt #shipping_method li:has(input:checked), .sm-co__shipt #shipping_method li:has(input[type=hidden]) { box-shadow: inset 0 0 0 2px var(--ink); }
.sm-co__shipt #shipping_method li:has(input:focus-visible) { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.sm-co__shipt #shipping_method input[type=radio] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0 !important; opacity: 0; cursor: pointer; }
.sm-co__shipt #shipping_method label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; font-size: var(--fs-md); font-weight: 700; }
.sm-co__rp { flex: none; }
.sm-co__rh { font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-3); }
.sm-cosum .sm-ot-tot .woocommerce-remove-coupon { margin-left: 6px; font-size: var(--fs-sm); font-weight: 600; }
.sm-co__coupon { margin-top: 12px; border-top: 1px solid var(--edge); }
.sm-co__coupon > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; list-style: none; font-size: var(--fs-md); font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.sm-co__coupon > summary::-webkit-details-marker { display: none; }
.sm-co__cpn { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-co__cpn input { flex: 1 1 140px; width: auto; }
.sm-co__cpn .sm-btn { flex: none; }
.sm-co__cpn .coupon-error-notice { flex-basis: 100%; margin: 0; font-size: var(--fs-ui); font-weight: 600; color: var(--err); }
/* payment card */
#payment { padding: 0; background: none; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
#payment ul.payment_methods li { padding: 14px 16px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px var(--edge); }
#payment ul.payment_methods li:has(input:checked), #payment ul.payment_methods li:only-child { box-shadow: inset 0 0 0 2px var(--ink); }
#payment ul.payment_methods li label { font-weight: 800; font-size: 16px; cursor: pointer; }
#payment ul.payment_methods li img { display: inline; height: 22px; width: auto; margin-left: 6px; vertical-align: middle; }
#payment .payment_box { margin-top: 8px; font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-3); }
#payment .payment_box p { margin: 0; } #payment .payment_box p + p { margin-top: 8px; }
.sm-co__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sm-paychip--l { background: var(--frost); color: var(--ink); }
.woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; }
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox { align-items: center; min-height: 44px; }
#place_order { width: 100%; min-height: 58px; font-size: 18px; }
.sm-co__trust { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-3); }
.sm-co__trust svg { flex: none; margin-top: 2px; }
.woocommerce-NoticeGroup-checkout .woocommerce-error { margin: 0; }
@media (min-width: 960px) {
  form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto auto 1fr; column-gap: 32px; align-items: start; }
  form.checkout > * { grid-column: 1; margin-top: 0; }
  form.checkout > .woocommerce-NoticeGroup { grid-row: 1; margin-bottom: 16px; }
  form.checkout > #customer_details { grid-row: 2; }
  form.checkout > .sm-co__pay { grid-row: 3; margin-top: 24px; }
  form.checkout > #order_review { grid-column: 2; grid-row: 1 / span 3; }
  .sm-costrip { display: none; }
}
/* Sticky summary with an inner item scroll only on tall screens: on a 768px laptop the list would shrink to a sliver and
   hide the personalization the shopper is confirming, so there the card grows and scrolls with the page. */
@media (min-width: 960px) and (min-height: 900px) {
  form.checkout > #order_review { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); }
  #order_review .sm-cosum { flex: 1 1 auto; }
  #order_review .sm-ot-items__list { flex: 0 1 auto; min-height: 200px; overflow: auto; overscroll-behavior: contain; }
}

/* ---------- order received (woocommerce/checkout/thankyou.php): Team A's .sm-otp grid + the receipt-only pieces ---------- */
body.woocommerce-order-received .sm-page__head { display: none; } /* the hero's H1 is the page's */
body.woocommerce-order-received .sm-page { padding-top: 16px; }
.sm-otp--ty > * { grid-column: 1 / -1; }
@media (min-width: 960px) { .sm-otp--ty > .sm-otp__main { grid-column: 1; } .sm-otp--ty > .sm-otp__side { grid-column: 2; } }
.sm-otp__end { display: grid; gap: 16px; min-width: 0; }
@media (min-width: 960px) { .sm-otp__end { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: center; } }
.sm-otp__end .sm-ty__next { margin: 0; }
.sm-otp--ty .sm-ty__soc { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 12px 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); font-size: var(--fs-ui); font-weight: 700; color: var(--ink-3); }
.sm-otp--ty .sm-foot__soc { margin-left: 0; }
.sm-otp--ty .sm-foot__soc .sm-ic { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sm-otp--ty .sm-foot__soc .sm-ic:hover { background: var(--frost); } }
/* Download links (thankyou.php + myaccount/view-order.php, Woo's order-downloads.php): outline buttons, one orange per view; rows stack on phones */
:is(.sm-otp--ty, .sm-otp--acct) .sm-ot-dl table { width: 100%; margin: 12px 0 0; border-collapse: collapse; }
:is(.sm-otp--ty, .sm-otp--acct) .sm-ot-dl .button { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--edge-2); }
@media (max-width: 767px) {
  :is(.sm-otp--ty, .sm-otp--acct) .sm-ot-dl thead { display: none; }
  :is(.sm-otp--ty, .sm-otp--acct) .sm-ot-dl :is(tr, td) { display: block; padding: 4px 0; border: 0; }
  :is(.sm-otp--ty, .sm-otp--acct) .sm-ot-dl td[data-title]:not(.download-file)::before { content: attr(data-title) ": "; font-weight: 700; color: var(--ink-3); }
}
.sm-ty-next__ol { display: grid; gap: 12px; margin-top: 12px !important; }
.sm-ty-next__ol li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
.sm-ty-next__ol b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 var(--fs-xs)/1 var(--f); }
@media (min-width: 960px) { .sm-otp--ty .sm-ty-next__ol { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.sm-otp .sm-tp { margin: 0; }
.sm-otp .sm-tp > * + * { margin-top: 12px; }
.sm-otp .sm-tp__amt { display: none; } /* the hero has the amount and its Copy chip */
.sm-otp .sm-tp__later a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
/* email check, order not found, payment failed: one centred sheet */
.sm-co-sheet { display: grid; gap: 14px; max-width: 520px; margin: 8px auto 0; padding: 24px; }
.sm-co-sheet :is(h1, h2, p) { margin: 0; }
.sm-co-sheet .form-row { margin: 0; }
.sm-co-sheet__err { padding: 12px 14px; border-radius: var(--r-sm); background: #fdecec; box-shadow: inset 4px 0 0 var(--err); color: var(--err); font-weight: 600; }
.sm-co-sheet__small { font-size: var(--fs-ui); color: var(--ink-3); text-align: center; }
body:has(:is(.woocommerce-verify-email, .sm-co-wall)) .sm-tabbar { display: none; } /* one orange object: the gate's or log-in button, not the tab bar's Estimate */
.sm-co-wall { margin: 8px 0 16px; } /* log-in wall H1 (checkout/order-received.php) */
.sm-co-sheet a:not(.sm-btn) { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- account ---------- */
.woocommerce-account .woocommerce { display: grid; gap: 20px; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 220px 1fr; align-items: start; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 -16px; padding: 4px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 900px) {
  .woocommerce-MyAccount-navigation { position: sticky; top: calc(var(--top-h) + 16px); } /* the nav is the grid item: sticky on its list had no room to move */
  .woocommerce-MyAccount-navigation ul { flex-direction: column; margin: 0; padding: 0; }
  .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--edge); }
  .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a { background: transparent; box-shadow: none; color: var(--ink-3); }
}
.woocommerce-MyAccount-navigation a { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 600; white-space: nowrap; transition: box-shadow var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .woocommerce-MyAccount-navigation li:not(.is-active) a:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); } }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child { font-size: 17px; }
.woocommerce-MyAccount-content a:not(.button, .sm-btn, .sm-acct a, .sm-ot a) { color: var(--laser-deep); } /* home + order cards set their own (navy panels) */
.woocommerce-orders-table .button, .woocommerce-table--order-downloads .button { min-height: 38px; padding: 6px 14px; font-size: var(--fs-ui); margin: 2px; }
.u-columns.col2-set, #customer_login { display: grid; gap: 20px; }
@media (min-width: 768px) { #customer_login { grid-template-columns: 1fr 1fr; } }
#customer_login > div { background: var(--paper); padding: 24px; border-radius: var(--r-lg); box-shadow: var(--lift); }
#customer_login h2 { font-size: 1.5rem; }
.woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.woocommerce-LostPassword { font-size: var(--fs-ui); }
.woocommerce-password-strength { font-size: var(--fs-sm); margin-top: 6px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--frost); }
.woocommerce-Addresses { display: grid; gap: 16px; }
@media (min-width: 768px) { .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.woocommerce-Address { background: var(--paper); padding: 20px; border-radius: var(--r); box-shadow: var(--lift); }
fieldset { border: 0; padding: 0; margin: 16px 0; }
legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }

/* ---------- Personalize Studio ---------- */
.sm-studio { width: 100%; margin: 4px 0 8px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.sm-studio__head .sm-h3 { margin: 0 0 4px; }
.sm-studio__head p { font-size: var(--fs-ui); margin: 0 0 12px; }
.sm-studio__3d { position: relative; height: 240px; margin: 0 -4px 4px; border-radius: var(--r-sm); background: radial-gradient(80% 90% at 50% 30%, #fff, var(--frost-2)); overflow: hidden; cursor: grab; }
.sm-studio__3d:active { cursor: grabbing; }
.sm-studio__3d canvas { width: 100% !important; height: 100% !important; }
.sm-studio__3d:not(.is-ready)::before { content: attr(data-name); position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-3deg); max-width: 88%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  padding: 12px 22px 12px 36px; border-radius: 14px; background: var(--kc-plate, var(--ink)); color: var(--kc-text, var(--laser)); font: 400 34px/1 'Lilita One', var(--f); box-shadow: 0 16px 28px -14px rgba(12,31,61,.6); }
.sm-studio__3d:not(.is-ready)::after { content: "Loading the 3D preview…"; position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: var(--ink-3); font-size: var(--fs-sm); }
.sm-studio__3d.is-fallback::after { content: "3D preview isn't available on this device. Your keychain is printed exactly as typed."; padding: 0 16px; }
.sm-studio__size:empty { display: none; }
.sm-studio__size { margin: 0 auto 12px; width: min(70%, 280px); font-size: var(--fs-sm); color: var(--ink-3); text-align: center; }
.sm-studio__proof { display: grid; place-items: center; min-height: 150px; margin-bottom: 14px; padding: 20px; border-radius: var(--r-sm); text-align: center; font-size: clamp(1.6rem, 7vw, 2.4rem); line-height: 1.1; word-break: break-word; font-family: 'Archivo Black', sans-serif; }
.sm-proof--engrave { background: repeating-linear-gradient(92deg, rgba(120,72,30,.10) 0 2px, transparent 2px 9px), linear-gradient(160deg, #e9c99c, #d7a86e 60%, #c99459); color: rgba(70,36,10,.82); text-shadow: 0 1px 0 rgba(255,236,200,.5), 0 -1px 1px rgba(40,18,4,.45); }
.sm-proof--vinyl { background: linear-gradient(160deg, #fbe4ec, #f5c9d8); }
.sm-proof--vinyl span { background: linear-gradient(120deg, #b98a1e, #f6d77b 40%, #b98a1e 70%, #f1d27a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 rgba(120,80,10,.35)); }
.sm-proof--uv { background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(220,232,240,.7)), repeating-linear-gradient(45deg, #e8eef3 0 10px, #f5f8fa 10px 20px); box-shadow: inset 0 0 0 2px rgba(255,255,255,.9), inset 0 0 30px rgba(120,160,200,.25); color: var(--ink); }
.sm-studio__fields { display: grid; gap: 14px; }
.sm-field { display: grid; gap: 6px; }
.sm-field small { font-size: var(--fs-sm); }
.sm-count { justify-self: end; margin-top: -2px; font-variant-numeric: tabular-nums; }
.sm-field input[type=file] { padding: 12px; min-height: 0; background: var(--frost); box-shadow: inset 0 0 0 1.5px var(--edge); border-radius: var(--r-sm); font-size: var(--fs-ui); width: 100%; }
.sm-field input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 0; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.sm-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-field__lb { font-weight: 600; font-size: var(--fs-ui); }
.sm-field__lb [data-colorname] { font-weight: 500; color: var(--ink-2); }
.sm-field__lb [data-colorname]:not(:empty)::before { content: ": "; }
.sm-sw { padding: 4px; margin: -4px; } /* 44px hit area around the 36px swatch */
.sm-sw { position: relative; cursor: pointer; }
.sm-sw input { position: absolute; opacity: 0; }
.sm-sw span { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(12,31,61,.18), inset 0 -4px 8px rgba(0,0,0,.12); transition: scale var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
.sm-sw input:checked + span { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); scale: 1.05; }
.sm-sw input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 5px; }
.sm-studio .sm-sw { display: grid; justify-items: center; gap: 5px; min-width: 44px; } /* every colour named on screen, not only on hover (phones have no hover) */
.sm-sw__n { font-style: normal; font-size: var(--fs-xs); line-height: 1; color: var(--ink-2); }
.sm-sw input:checked ~ .sm-sw__n { color: var(--ink); font-weight: 700; }
.sm-fonts { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-fontchip { cursor: pointer; font-size: 17px; }
.sm-fontchip input { position: absolute; opacity: 0; }
.sm-fontchip:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }
.sm-fontchip:has(input:focus-visible) { outline: 2.5px solid var(--focus); outline-offset: 2px; }

/* ---------- bits Woo's own stylesheet used to cover ---------- */
.woocommerce .blockUI.blockOverlay { position: relative; }
.blockUI.blockOverlay { background: rgba(238,241,244,.6) !important; border-radius: inherit; }
.woocommerce-store-notice, p.demo_store { position: fixed; top: 0; left: 0; right: 0; z-index: 99; margin: 0; padding: 10px 16px; background: var(--ink); color: #fff; text-align: center; font-size: var(--fs-ui); }
.woocommerce-store-notice a { color: var(--laser-2); margin-left: 8px; }
.password-input { position: relative; display: block; }
.show-password-input { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 44px; height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--ink); }
.show-password-input::after { content: 'Show'; font: 600 var(--fs-sm)/1 var(--f); opacity: .7; }
.show-password-input.display-password::after { content: 'Hide'; }
.password-input input { padding-right: 64px; }
.woocommerce-product-gallery .flex-direction-nav { display: none; }
.woocommerce-product-gallery__image--placeholder img { opacity: .5; }
.clear { clear: both; }
.hidden { display: none !important; }
.woocommerce-variation-description p { margin: 0 0 8px; font-size: var(--fs-md); color: var(--ink-2); }
.wc-item-meta { list-style: none; padding: 0; margin: 6px 0 0; font-size: var(--fs-sm); color: var(--ink-3); }
.wc-item-meta li { display: flex; gap: 6px; } .wc-item-meta p { margin: 0; } .wc-item-meta strong { color: var(--ink-2); }
.woocommerce-table--order-details, .woocommerce-customer-details address { background: var(--paper); border-radius: var(--r); box-shadow: var(--lift); padding: 16px; font-style: normal; }
.woocommerce-column__title, .woocommerce-order-details__title { font-size: 1.3rem; margin-top: 24px; }
.woocommerce-customer-details .woocommerce-columns { display: grid; gap: 16px; }
@media (min-width: 768px) { .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr 1fr; } }
.onsale { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 3px 10px; border-radius: var(--pill); background: var(--butter); font-size: var(--fs-xs); font-weight: 800; }
.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.woocommerce-form__label-for-checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
input[type=radio] { accent-color: var(--ink); }
.woocommerce-shipping-methods input[type=radio], #payment input[type=radio] { width: 20px; height: 20px; vertical-align: -4px; margin: 0 8px 0 0; }
.woocommerce-shipping-methods li { display: flex; align-items: flex-start; gap: 0; padding: 6px 0; } .woocommerce-shipping-methods li input { margin-top: 2px !important; flex: none; }
.woocommerce-SavedPaymentMethods { list-style: none; padding: 0; }

/* cart totals keep a plain two-column table on phones */
.cart_totals table.shop_table th, .cart_totals table.shop_table td { vertical-align: top; }
.cart_totals table.shop_table td::before { display: none; }
@media (max-width: 767px) { .cart_totals table.shop_table th { width: 38%; } }
.woocommerce-cart .woocommerce a:not(.button), .woocommerce-checkout:not(.woocommerce-order-received) .woocommerce a:not(.button) { text-decoration: none; color: var(--laser-deep); } /* not the receipt: its links are order.css's */
.woocommerce-cart .checkout-button, .woocommerce-checkout .button { text-decoration: none !important; }
button[name=update_cart] { background: var(--ink) !important; color: #fff !important; }
button[name=update_cart]:disabled { background: var(--frost-2) !important; color: var(--ink-3) !important; box-shadow: none; }
.woocommerce-cart .sm-page__head, .woocommerce-checkout .sm-page__head { padding-bottom: 0; }

/* ---------- free download form ---------- */
.sm-free-dl { margin: 8px 0 16px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.sm-free-dl__label { display: block; margin-bottom: 6px; }
.sm-free-dl__row { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-free-dl__row input[type=email] { flex: 1 1 200px; }
.sm-free-dl__row .button, .sm-free-dl__row button { flex: 1 1 140px; }
.sm-free-dl__optin { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 4px; font-weight: 500; }
.sm-free-dl__optin input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.sm-free-dl__note { font-size: var(--fs-sm); margin: 8px 0 0; }
.sm-free-dl__msg { margin: 0 0 8px; font-weight: 700; color: var(--ok); }
.sm-free-dl__msg.is-error { color: var(--err); }
.sm-proof--sticker { background: repeating-linear-gradient(45deg, #e9edf2 0 12px, #f4f6f9 12px 24px); }
.sm-proof--sticker span { display: inline-block; padding: 14px 22px; border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 0 0 5px #fff, 0 10px 24px -8px rgba(12,31,61,.35); transform: rotate(-3deg); }
#customer_details input[type=checkbox], .woocommerce-form__input-checkbox { width: 20px; height: 20px; accent-color: var(--ink); vertical-align: -4px; margin-right: 8px; }
#ship-to-different-address label, .create-account label { display: flex; align-items: center; gap: 4px; font-size: var(--fs-md); font-weight: 600; cursor: pointer; }
#ship-to-different-address { font-size: 1rem; margin: 8px 0; }
#payment ul.payment_methods li:only-child input[type=radio] { display: none; }
.sm-pd__work { grid-column: 1 / -1; margin-top: 40px; }
.sm-pd__work .sm-work { columns: 2; }
@media (min-width: 768px) { .sm-pd__work .sm-work { columns: 4; } }
.sm-pd__chat a { text-decoration: underline; text-underline-offset: 3px; }
.sm-soldout { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 16px; padding: 14px 16px; border-radius: var(--r); background: var(--butter); font-weight: 600; }

/* ---------- My Account: mobile-first ---------- */
.woocommerce-account .woocommerce > * { min-width: 0; } /* grid children must not stretch the page */
.woocommerce-account .sm-flow { overflow-x: clip; }
@media (max-width: 899px) {
  .woocommerce-account.woocommerce-dashboard .woocommerce-MyAccount-navigation { display: none; } /* tiles replace it on the home */
  .woocommerce-MyAccount-navigation ul { margin: 0 -16px; padding: 4px 16px 8px; }
  .woocommerce-MyAccount-navigation li:last-child { display: none; } /* log out lives at the bottom of the account home */
}
/* account home (woocommerce/myaccount/dashboard.php): a navy block (greeting | latest order), then the tiles.
   Its own container: two columns once the content column is 640px wide, whether or not the nav sits beside it. */
.sm-acct { container: acct / inline-size; display: grid; gap: 16px; }
.sm-acct__top { position: relative; overflow: hidden; display: grid; gap: 16px; padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: #fff; } /* no layer-line stripe: that signature is the home page's */
.sm-acct__top :focus-visible { outline-color: #fff; }
.sm-acct__top p { margin: 0; }
.sm-acct__hi { margin: 0; font-size: clamp(1.9rem, 8vw, 2.35rem); line-height: 1; font-weight: 850; font-variation-settings: 'wdth' 125; letter-spacing: -.03em; color: #fff; }
.sm-acct__top .sm-acct__hello p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: #c3cfe0; }
.sm-acct__last { position: relative; display: grid; gap: 12px; padding: 16px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background-color var(--dur-1) ease; }
@media (hover: hover) and (pointer: fine) { .sm-acct__last:has(.sm-acct__go):hover { background: rgba(255,255,255,.12); } }
.sm-acct__st, .sm-acct__no { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.sm-acct__st .sm-spec { font-size: var(--fs-ui); color: #b3c2d8; }
.sm-acct__pill { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px 4px 10px; border-radius: var(--pill); background: rgba(255,255,255,.12); font: 700 var(--fs-sm)/1.2 var(--f); color: #fff; }
.sm-acct__pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--laser); }
.sm-acct__pill[data-tone="done"]::before { background: #fff; }
.sm-acct__pill[data-tone="off"]::before { background: #b3c2d8; }
.sm-acct__no { align-items: baseline; }
.woocommerce-MyAccount-content .sm-acct__go { font-size: 24px; font-weight: 700; line-height: 1.1; color: #fff; text-decoration: none; }
.sm-acct__go::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* the whole panel opens the order */
.sm-acct__no b { font-size: 18px; font-weight: 700; }
.sm-acct__rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.sm-acct__rail i { height: 6px; border-radius: var(--pill); background: rgba(255,255,255,.16); }
.sm-acct__rail .is-done { background: #fff; }
.sm-acct__rail .is-now { background: var(--laser); }
.sm-acct__top .sm-acct__cap { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: -4px; font-size: var(--fs-sm); line-height: 1.3; color: #b3c2d8; }
.sm-acct__cap b { color: var(--laser); }
.sm-acct__more { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui); font-weight: 700; color: #fff; }
.sm-acct__last .sm-btn { position: relative; z-index: 1; justify-self: start; } /* Pay sits above the panel link */
.sm-acct__last.is-empty { gap: 8px; }
.sm-acct__last.is-empty p { font-size: var(--fs-md); line-height: 1.5; color: #c3cfe0; }
.sm-acct__last.is-empty strong { font-size: 18px; color: #fff; }
.woocommerce-MyAccount-content .sm-acct__last.is-empty a:not(.sm-btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sm-acct__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sm-acct__tile:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 5 tiles on a phone: no hole */
.woocommerce-MyAccount-content a.sm-acct__tile { display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 16px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); color: var(--ink); text-decoration: none; transition: box-shadow var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .woocommerce-MyAccount-content a.sm-acct__tile:hover { box-shadow: var(--lift), inset 0 0 0 1.5px var(--ink); } }
.sm-acct__tile .sm-i { color: var(--laser-deep); margin-bottom: 6px; }
.sm-acct__tile strong { font-size: 16px; }
.sm-acct__tile span { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.35; }
.sm-acct__out { margin: 0; text-align: center; }
.sm-rr { margin-top: 16px; }
.sm-rr .sm-ot-card { padding: 22px; }
.sm-rr form { display: grid; gap: 10px; margin-top: 16px; }
.sm-rr label { font-weight: 700; color: var(--ink); }
.sm-rr select, .sm-rr textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #c9d1dc; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.sm-rr textarea { min-height: 100px; resize: vertical; }
.sm-rr .sm-btn { justify-self: start; }
.woocommerce-MyAccount-content .sm-acct__out a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .sm-acct__out { display: none; } } /* the nav's Log out covers desktop: one way out per screen */
@container acct (min-width: 640px) {
  .sm-acct__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: 32px; padding: 32px; }
  .sm-acct__hi { font-size: clamp(2.4rem, 5cqi, 3rem); }
  .sm-acct__last { padding: 20px; }
  .sm-acct__tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; } /* 4 or 5 tiles: one row */
  .sm-acct__tile:last-child:nth-child(odd) { grid-column: auto; }
}

/* orders list: the stage as a badge; View is an outline button (Pay stays the orange one) */
.sm-ostat { --c: var(--frost-2); gap: 6px; white-space: nowrap; }
.sm-ostat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--laser); }
.sm-ostat[data-tone="done"]::before { background: var(--ink); }
.sm-ostat[data-tone="off"]::before { background: var(--ink-3); }
.woocommerce-orders-table .button:not(.pay) { background: transparent; box-shadow: inset 0 0 0 1.5px var(--edge-2); }
@media (hover: hover) and (pointer: fine) { .woocommerce-orders-table .button:not(.pay):hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); } }
.woocommerce-orders-table__cell-order-number a { font-weight: 700; }
table.woocommerce-orders-table tr:last-child th { border-bottom: 0; }
.woocommerce-info .button[href*="wc_send_verification"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--edge-2); } /* WooCommerce's link-past-orders prompt: secondary */
/* phones: each order is a card: number + stage on top, date and total below, View on the right */
@media (max-width: 767px) {
  .woocommerce-orders-table thead { display: none; }
  table.woocommerce-orders-table, .woocommerce-orders-table tbody { display: block; width: 100%; background: none; box-shadow: none; overflow: visible; }
  .woocommerce-orders-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin-bottom: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); }
  table.woocommerce-orders-table :is(th, td) { display: block; padding: 0; border: 0; text-align: left; font-size: var(--fs-md); color: var(--ink-2); }
  table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number { font-size: 17px; }
  .woocommerce-orders-table .woocommerce-orders-table__cell-order-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions { grid-column: 2; grid-row: 2 / span 2; justify-self: end; }
  .woocommerce-orders-table .button { min-height: 44px; margin: 0; }
}

/* addresses + the two account forms: cards, like checkout's */
.woocommerce-Address-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; margin-bottom: 6px; }
.woocommerce-Address-title h2 { margin: 0; font-size: 1.2rem; font-variation-settings: 'wdth' 112; }
.woocommerce-MyAccount-content .woocommerce-Address-title .edit { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-Address address { font-style: normal; line-height: 1.55; color: var(--ink-2); }
.woocommerce-MyAccount-content > form:has(.woocommerce-address-fields), .woocommerce-EditAccountForm { padding: 20px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.woocommerce-MyAccount-content > form:has(.woocommerce-address-fields) > h2 { margin: 0 0 16px; font-size: 1.3rem; }
.woocommerce-EditAccountForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.woocommerce-EditAccountForm > * { grid-column: 1 / -1; }
.woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }
.woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }
@media (max-width: 480px) { .woocommerce-EditAccountForm > :is(.form-row-first, .form-row-last) { grid-column: 1 / -1; } }
.woocommerce-EditAccountForm .clear { display: none; }
.woocommerce-EditAccountForm fieldset { margin: 8px 0 14px; padding-top: 18px; border-top: 1px solid var(--edge); }
.woocommerce-EditAccountForm legend { float: left; width: 100%; margin-bottom: 12px; } /* floated: inside the fieldset's top rule, not sitting on it */
.woocommerce-EditAccountForm legend + * { clear: left; }
#account_display_name_description { display: block; margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-3); }
#account_display_name_description em { font-style: normal; }
.woocommerce-MyAccount-content form > p:last-child { margin-bottom: 0; }
@media (min-width: 600px) { .woocommerce-MyAccount-content > form:has(.woocommerce-address-fields), .woocommerce-EditAccountForm { padding: 28px 32px; } }

/* lost / reset password (logged out): one sheet, not a field stretched across the page */
.woocommerce-ResetPassword { max-width: 560px; padding: 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.woocommerce-ResetPassword > p:first-child { margin-top: 0; }
.woocommerce-ResetPassword > p:last-of-type { margin-bottom: 0; }
.woocommerce-account .woocommerce:has(> .woocommerce-message) > p { max-width: 560px; } /* reset email sent */

/* view order (woocommerce/myaccount/view-order.php): the tracking page's .sm-otp; one column until the content column is wide */
@media (min-width: 960px) and (max-width: 1199px) { .woocommerce-MyAccount-content .sm-otp--acct { grid-template-columns: minmax(0, 1fr); } }
.sm-otp--acct .order-again { margin: 0; }
.sm-otp--acct .order-again .button { width: 100%; background: var(--ink); color: #fff !important; box-shadow: none; }
.sm-ot-notes ol { display: grid; gap: 12px; margin-top: 12px; }
.sm-ot-notes li { padding: 12px 14px; border-radius: var(--r-sm); background: var(--frost); }
.sm-ot-notes li .sm-spec { font-size: var(--fs-sm); color: var(--ink-3); }
.sm-ot-notes li div p { margin: 4px 0 0; font-size: var(--fs-md); line-height: 1.5; }

/* ==========================================================================
   Visuals 2026-09-27: shop header fan, photo chips, mid-grid editorial cards, fidget strip
   ========================================================================== */
.sm-shop__fan { max-width: 420px; margin: 4px auto 0; }
@media (max-width: 959px) { .sm-shop__fan { height: 230px; overflow: hidden; padding: 12px 0 0; align-items: start; margin: 8px -16px 0; max-width: none; } .sm-shop__fan > * { width: 44%; } .sm-shop__fan > :not(:nth-child(3)) .sm-fan__lbl { display: none; } }
@media (min-width: 960px) {
  .sm-shop__head--fan { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding: 24px 0 8px; }
  .sm-shop__head--fan .sm-shop__intro { grid-column: 1 / span 6; }
  .sm-shop__head--fan .sm-shop__fan { grid-column: 7 / -1; max-width: none; width: 100%; margin: 0; padding: 48px 0 28px; }
  .sm-shop__fan > * { width: min(44%, 262px); }
  .sm-shop__fan > :nth-child(1) { transform: rotate(-6deg) translate(-64%, 5%); }
  .sm-shop__fan > :nth-child(2) { transform: rotate(6deg) translate(64%, 5%); }
}
.sm-shop__cats .sm-chipph { padding-left: 6px; }
.sm-shop__cats .sm-chip[aria-current] .sm-chipph__img { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }

/* editorial cards inside the product grid */
.sm-shop__promo { grid-column: 1 / -1; display: grid; border-radius: var(--r); overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--lift); }
.sm-shop__promo .sm-ph { border-radius: 0; }
.sm-shop__promo-b { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 16px 18px 20px; }
.sm-shop__promo-b .sm-h3 { margin: 0; color: #fff; font-size: 1.25rem; line-height: 1.15; }
.sm-shop__promo-b .sm-btn { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); } /* card-level action: white outline, orange stays on the page's main action */
@media (hover: hover) and (pointer: fine) { .sm-shop__promo-b .sm-btn:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; } }
.sm-shop__promo--lab { background: var(--lab); }
@media (min-width: 768px) {
  .sm-shop__promo { grid-column: span 2; grid-template-columns: 1.25fr 1fr; }
  .sm-shop__promo .sm-ph { aspect-ratio: auto; height: 100%; min-height: 220px; }
  .sm-shop__promo-b { padding: 20px; }
}

/* fidget toys: family strip + layer-line inset */
.sm-famstrip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 8px -16px 8px; padding: 4px 16px 12px; scrollbar-width: none; }
.sm-famstrip::-webkit-scrollbar { display: none; }
.sm-famstrip > * { scroll-snap-align: start; }
.sm-famstrip__main { aspect-ratio: 4 / 5; --pos: 62% 50%; }
.sm-famstrip__inset { position: relative; margin: 0; align-self: start; }
.sm-famstrip__inset figcaption { position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 6px 10px; border-radius: var(--r-xs); background: var(--paper); font-weight: 750; font-size: var(--fs-ui); }
@media (max-width: 959px) { .sm-famstrip__inset .sm-ph { aspect-ratio: 4 / 5; } }
@media (min-width: 960px) {
  .sm-famstrip { grid-auto-flow: row; grid-template-columns: 3.6fr 1fr; overflow: visible; margin: 16px 0 40px; padding: 0; gap: 0; align-items: end; }
  .sm-famstrip__main { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
  .sm-famstrip__inset { margin: 0 0 -32px -40px; z-index: 2; }
  .sm-famstrip__inset .sm-ph { border-radius: var(--r); box-shadow: 0 0 0 6px var(--paper), var(--lift-3); }
}
/* PDP bulk nudge: a ruled line under the buy box (the configurator is the summary's one raised card) */
.sm-pd__chat { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 12px 0; border-top: 1px solid var(--edge); background: none; box-shadow: none; font-size: var(--fs-md); font-weight: 550; }
.sm-pd__chat a { color: var(--laser-deep); font-weight: 700; }

/* ==========================================================================
   Design night 2026-09-28: end block spacing, PDP craft card, collapsibles, one bottom bar
   ========================================================================== */
/* 48px from the last section to the end block (.sm-next brings its own margin) */
/* ~ not +: single-product.php prints its delegated name-link <script> between .sm-pdwrap and .sm-next */
.sm-shop:has(+ .sm-next), .sm-pdwrap:has(~ .sm-next) { padding-bottom: 0; }
/* category "About these" under the grid */
.sm-cat-about { margin-top: 48px; }
.sm-cat-about h2 { margin: 0 0 8px; font-size: 1.25rem; }
.sm-cat-about p { margin: 0; }
.sm-facts a { color: var(--laser-deep); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* "See how it's made": a live machine loop chip + the craft page. Phone: after the buy box. Desktop: under the gallery. */
.sm-pd__craft { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); color: var(--ink); font-size: var(--fs-md); line-height: 1.35; transition: box-shadow var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sm-pd__craft:hover { box-shadow: inset 0 0 0 1.5px var(--ink), var(--lift); } }
.sm-pd__craft > .sm-i { flex: none; margin-left: auto; color: var(--laser-deep); }
.sm-pd__craftm { flex: none; width: 96px; border-radius: var(--r-sm); overflow: hidden; background: var(--frost-2); }
.sm-pd__craftl { display: block; color: var(--laser-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  /* the tall summary spans rows 1-2 and its extra height lands in the 1fr row, so the card sits right under the gallery */
  .single-product div.product { grid-template-rows: auto 1fr; }
  .single-product div.product > .summary { grid-column: 2; grid-row: 1 / span 2; }
  .single-product div.product > .sm-pd__craft { grid-column: 1; grid-row: 2; align-self: start; }
}
/* Tall screens (the 677px photo + thumbs fit under the header): the photo stays in view while the buy box scrolls. It sticks
   inside .sm-pd__media (inc/shop.php), which spans the summary's rows, so it stops where the buy box ends and never slides
   over the craft card (next row) or the orders below. */
@media (min-width: 900px) and (min-height: 780px) {
  .single-product div.product > .sm-pd__media { grid-row: 1 / span 2; align-self: stretch; }
  .sm-pd__media > .woocommerce-product-gallery { position: sticky; top: calc(var(--top-h) + 24px); }
  .single-product div.product > .sm-pd__craft { grid-row: 3; }
}

/* Details / Specs: the site accordion (.sm-acc, app.css). Inside the Details text the spec strip is a framed table,
   self-contained here (border off, every cell 16px in) so it holds whatever app.css does to the base readout. */
.sm-pd__info .sm-specstrip { margin: 14px 0; border: 0; box-shadow: inset 0 0 0 1px var(--edge); grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 2x2 at every width: four readouts across the narrow buy column split "45 / mm" */
.sm-pd__info .sm-specstrip > div { padding-left: 16px; }

/* D11: only one bottom bar. The sticky buy bar takes the tab bar's place while it shows. */
body:has(.sm-buybar.is-on) .sm-tabbar { transform: translateY(calc(100% + 24px)); }
/* press feedback for the shop's own tap targets (app.css covers buttons, chips, cards and swatches) */
:is(table.cart .product-remove a, .woocommerce-MyAccount-navigation a, .flex-control-thumbs img):active { scale: .97; }
.woocommerce-MyAccount-content a.sm-acct__tile:active { scale: .98; }
