/* Preserve Loopy Loops branding while retaining the original shop design. */
.brand img,.footer-brand img { object-fit:contain; flex-shrink:0; }
@media(max-width:480px) { .shop-header .brand { font-size:clamp(20px,6vw,27px); gap:8px; letter-spacing:-.5px; } }

/* The footer follows the main site's typography, centered links and spacing. */
.shop-footer { max-width:none; padding:28px 20px; text-align:center; background:transparent; border:0; border-radius:0; color:#424242; font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.shop-footer .footer-nav { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px 24px; margin:0; font-size:14px; }
.shop-footer .footer-nav a { display:inline; min-height:0; line-height:20px; padding:0; font-size:14px; font-weight:400; color:#424242; }
.shop-footer .footer-nav a:hover { text-decoration:underline; background:transparent; }
.shop-footer .footer-copyright,.shop-footer .footer-version { padding:0; font-size:12px; line-height:1.5; color:#616161; }
.shop-footer .footer-copyright { margin:12px 0 0; }
.shop-footer .footer-version { margin:8px 0 0; }

:root { --paper:#fff; }
body,body.portal,body.portal-login { background:#fff; }
/* Plain text actions underline on hover and keyboard focus. */
a:not(.button):not(.brand):not(.product-card-link):not(.feature-photo-link):not(.bag-button),
.product-learn,.text-button,.bag-edit,.promo-offer-button {
 text-decoration:none;
 text-underline-offset:3px;
}
a:not(.button):not(.brand):not(.product-card-link):not(.feature-photo-link):not(.bag-button):is(:hover,:focus-visible),
.product-learn:hover,
.product-card-link:focus-visible .product-learn,
.text-button:is(:hover,:focus-visible),.bag-edit:is(:hover,:focus-visible),.promo-offer-button:is(:hover,:focus-visible) {
 text-decoration:underline;
}

/* Neutral surfaces keep the orange fade reserved for promotional actions. */
:root,:root[data-button-theme] {
 --holiday-white:#fcfcfc;
 --field:#fafafa;
 --line:#ececec;
 --interaction-soft:#fafafa;
 --interaction-hover:#f5f5f5;
 --interaction-selected:#efefef;
}
#collection .product { background:#fcfcfc; border-color:#ececec; }
#bag-items.has-items,.checkout form,.tracking-card,.receipt,.order,
.color-panel,.design-panel,.personalization .initials-panel,.personalization .check-row,
.radio-row,.quantity-control,.shop-search button,.shop-promo-close,
.portal-login-card,.portal-detail,.portal-stat,.portal-order-card,.portal-quiet {
 background:#fafafa;
}
.purchase-panel,.purchase-panel .price-box,#coaster-color-order,.shop-search { border-color:#ececec; }

.checkout form input:not([type=checkbox]):not([type=radio]),.checkout form textarea,
.personalization input:not([type=checkbox]):not([type=radio]),.design-panel textarea,
.coaster-layout-fields select,.bag-quantity-row .quantity-control { background:#fff; }
.portal-filters input,.portal-filters select { background-color:#fafafa!important; }

/* Product choices share the total panel's neutral surface, border and corners. */
.purchase-panel,
.product-options .radio-row,
.product-options .check-row,
.product-options .color-panel,
.product-options .design-panel,
.product-options .initials-panel {
 background:var(--interaction-soft);
 border:1px solid var(--line);
 border-radius:17px;
}
.product-options .radio-row:has(input:checked),
.product-options .check-row:has(input:checked) { background:var(--interaction-soft); border-color:var(--line); }

/* Secondary interactions are monochrome; primary action gradients stay unchanged. */
:root,:root[data-button-theme] {
 --interaction-accent:#171717;
 --interaction-ink:#171717;
}
.shelf-arrow,.gallery-arrow {
 background:#fff;
 color:#171717;
 border:1px solid var(--line);
}
.shelf-arrow[aria-disabled="false"]:is(:hover,:focus-visible),
.gallery-arrow:is(:hover,:focus-visible),.shop-promo-close:is(:hover,:focus-visible) {
 background:var(--interaction-hover);
 color:#171717;
 border-color:var(--line);
}
:root :is(button,a,input,textarea,select):focus-visible {
 outline:2px solid #171717;
 outline-offset:2px;
}

/* Bag and owner panels follow the same outlined surface as the product total. */
#bag-items.has-items,.checkout form,.tracking-card,.receipt,.order,
.portal-login-card,.portal-detail,.portal-stat,.portal-order-card,.portal-progress-box,.portal-item {
 background:var(--interaction-soft);
 border:1px solid var(--line);
 border-radius:17px;
}
.quantity-control,.portal-quiet,.bag-remove {
 border:1px solid var(--line);
 border-radius:9px;
}
.portal-quiet,.bag-remove { background:var(--interaction-soft); color:var(--ink); }
.portal-quiet:hover,.bag-remove:hover,.portal-stat:hover,.portal-order-card:hover {
 background:var(--interaction-hover);
 color:var(--ink);
 border-color:var(--line);
}
.portal-order-card[aria-pressed=true] { background:var(--interaction-selected); border-color:var(--line); }
.portal-status,.portal-status.processing,.portal-status.delivered { background:var(--interaction-selected); color:var(--ink); }
/* Cover legacy forms too; grouped search/quantity controls keep one outer border. */
:root :is(input,textarea,select):not([type=checkbox],[type=radio],[type=hidden],[type=submit],[type=button],[type=range],[type=color],[type=file]):not(.quantity-control input,.shop-search input) {
 background-color:#fff!important;
 border:1px solid var(--line);
 border-radius:9px;
}

:root :is(input,textarea,select):not([type=checkbox],[type=radio],[type=hidden],[type=submit],[type=button],[type=range],[type=color],[type=file]):not(.quantity-control input,.shop-search input):is(:focus,:focus-visible) {
 background-color:#fff!important;
 border-color:#171717;
}
:root form.shop-search,:root .quantity-control {
 border:1px solid var(--line);
}

:root form.shop-search:focus-within,:root .quantity-control:focus-within {
 border-color:#171717;
}
.bag-summary-heading h2 .icon,.checkout form h2 .icon,.tracking-card-heading .icon { color:var(--ink); }


/* Center the original yarn mark with the wordmark. */
.brand img { transform:none; }

/* Use the photos' landscape shape so every slide and its controls align. */
.gallery-frame { aspect-ratio:3/2; background:#fff; }
.gallery-frame>img { object-fit:contain; }

/* Campaigns change only the banner; primary actions keep the orange fade. */
:root,:root[data-button-theme]{
 --holiday-fade:linear-gradient(105deg,#ffeaaa 0%,#ffd179 48%,#f3ad72 100%);
 --holiday-fade-hover:linear-gradient(105deg,#ffe397 0%,#ffca68 48%,#efa363 100%);
 --action-gradient:var(--holiday-fade);
 --action-gradient-hover:var(--holiday-fade-hover);
}
.promotion-banner[data-theme="christmas"]{background:linear-gradient(105deg,#dce9db 0%,#e5e8d9 22%,#f1d7d4 57%,#fffdf8 100%)}
:root .portal .portal-filters .portal-search-label input{border-radius:9px}
:root .portal .portal-filters select{border-radius:14px}
:root .portal .portal-change-step select{border:0;border-radius:10px;background:transparent!important}

/* Tracking progress uses the same orange/yellow accents as primary actions. */
.tracking-marker{background:#fff0cb;color:#171717}
.tracking-step.current .tracking-marker,.tracking-step.complete .tracking-marker{background:var(--action-gradient);color:#171717}
.tracking-marker>span{background:#171717}
.tracking-step:not(:last-child):before{background:#ffe5ae}
.tracking-step.complete:before{background:linear-gradient(90deg,#ffeaaa,#f3ad72)}

/* Keep the bundled choices together without the default fieldset/legend gaps. */
.free-coaster-options{min-width:0;margin-top:28px;padding:24px;background:var(--interaction-soft);border:1px solid var(--line);border-radius:17px}
.free-coaster-options>legend{float:left;width:100%;padding:0;margin:0 0 10px;font-size:21px;line-height:1.3;font-weight:600;letter-spacing:-.03em}
.free-coaster-options>.form-note{clear:both;margin:0;font-size:13px;line-height:1.65;max-width:58ch;color:var(--muted)}
.free-coaster-options>fieldset{min-width:0;margin:24px 0 0;padding:0;border:0}
.free-coaster-options>fieldset>legend{padding:0;margin:0 0 12px;font-size:17px;line-height:1.4;font-weight:600;letter-spacing:-.02em}
.free-coaster-options>.personalization{margin-top:26px;padding-top:0;border:0}
.free-coaster-options .color-panel{padding:16px;background:#fff}
.free-coaster-options .initials-panel,.free-coaster-options .check-row{background:#fff}
.free-coaster-options .color-panel .swatches{gap:12px}
.free-coaster-options .initials-prices{gap:10px}
.free-coaster-options .initials-prices span{flex-direction:column;gap:2px}
@media(max-width:560px){
 .free-coaster-options{padding:20px 18px}
 .free-coaster-options>legend{font-size:20px}
 .free-coaster-options>fieldset{margin-top:22px}
 .free-coaster-options>.personalization{margin-top:24px;padding-top:0}
 .free-coaster-options .color-panel{padding:14px}
}
