/* Soft Souls shopping features. Uses theme tokens with fallbacks. */
.ssce-family { margin: 16px 0 20px; display: grid; gap: 14px; }
.ssce-family__label { margin: 0 0 8px; font-size: .875rem; color: var(--ss-ink-soft, #4A5B6B); }
.ssce-family__label strong { color: var(--ss-night, #0E2A44); }
.ssce-family__opts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ssce-family__opt { display: flex; flex-direction: column; min-width: 96px; padding: 10px 14px; border: 1.5px solid var(--ss-line, #E6E1D8); border-radius: 12px; background: #fff; color: var(--ss-night, #0E2A44); text-decoration: none; line-height: 1.25; }
.ssce-family__opt span { font-weight: 600; font-size: .9375rem; }
.ssce-family__opt small { font-size: .8125rem; color: var(--ss-ink-soft, #4A5B6B); }
.ssce-family__opt:hover { border-color: var(--ss-blue, #1C83C6); }
.ssce-family__opt.is-current { border-color: var(--ss-deep, #135F93); background: var(--ss-mist, #EAF3FA); box-shadow: inset 0 0 0 1px var(--ss-deep, #135F93); }
.ssce-family__opt.is-out { opacity: .6; }
.ssce-family__opt:focus-visible { outline: 3px solid var(--ss-orange, #F08823); outline-offset: 2px; }

.ssce-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; transform: translateY(110%); transition: transform .25s ease; background: #fff; border-top: 1px solid var(--ss-line, #E6E1D8); box-shadow: 0 -8px 24px rgba(14,42,68,.08); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.ssce-sticky.is-visible { transform: none; }
.ssce-sticky__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.ssce-sticky img { border-radius: 8px; object-fit: cover; flex: none; }
.ssce-sticky__text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .875rem; }
.ssce-sticky__text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ss-night, #0E2A44); }
.ssce-sticky__btn { flex: none; min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .9375rem; cursor: pointer; border: 1.5px solid var(--ss-deep, #135F93); }
.ssce-sticky__btn--cart { background: #fff; color: var(--ss-deep, #135F93); }
.ssce-sticky__btn--buy { background: var(--ss-deep, #135F93); color: #fff; }
@media (max-width: 600px) { .ssce-sticky img, .ssce-sticky__text { display: none; } .ssce-sticky__btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .ssce-sticky, .ssce-drawer__panel, .ssce-drawer__backdrop { transition: none !important; } }
body.ssce-sticky-on .ss-wa-float { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

.ssce-lock, .ssce-lock body { overflow: hidden; }
.ssce-drawer { position: fixed; inset: 0; z-index: 100; }
.ssce-drawer__backdrop { position: absolute; inset: 0; background: rgba(14,42,68,.4); opacity: 0; transition: opacity .25s; }
.ssce-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--ss-cotton, #FBF9F5); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; outline: none; }
.ssce-drawer.is-open .ssce-drawer__backdrop { opacity: 1; }
.ssce-drawer.is-open .ssce-drawer__panel { transform: none; }
.ssce-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--ss-line, #E6E1D8); }
.ssce-drawer__head h2 { margin: 0; font-size: 1.25rem; }
.ssce-drawer__close { width: 44px; height: 44px; border: 0; background: none; font-size: 1.75rem; cursor: pointer; color: var(--ss-night, #0E2A44); }
.ssce-drawer .widget_shopping_cart_content { flex: 1; overflow: auto; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); }
.ssce-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.ssce-drawer .woocommerce-mini-cart-item { position: relative; display: block; padding: 12px 28px 12px 0; border-bottom: 1px solid var(--ss-line, #E6E1D8); }
.ssce-drawer .woocommerce-mini-cart-item img { float: left; width: 64px; height: 64px; margin-right: 12px; border-radius: 8px; object-fit: cover; }
.ssce-drawer .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 12px; text-decoration: none; }
.ssce-drawer .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 16px 0; font-weight: 600; }
.ssce-drawer .woocommerce-mini-cart__buttons { display: grid; gap: 10px; }
.ssce-drawer .woocommerce-mini-cart__buttons .button { display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: 999px; }

.ssce-compare-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 0; background: none; border: 0; color: var(--ss-night, #0E2A44); font: inherit; font-size: .9375rem; cursor: pointer; }
.ssce-compare-btn__box { width: 18px; height: 18px; border: 1.5px solid var(--ss-deep, #135F93); border-radius: 4px; }
.ssce-compare-btn[aria-pressed="true"] .ssce-compare-btn__box { background: var(--ss-deep, #135F93) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.ssce-tray { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 44; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 999px; background: var(--ss-night, #0E2A44); color: #fff; font-size: .875rem; box-shadow: 0 8px 24px rgba(14,42,68,.2); }
.ssce-tray__go { color: #fff; font-weight: 600; }
.ssce-tray__go.is-disabled { pointer-events: none; opacity: .5; }
.ssce-tray__clear { background: none; border: 0; color: #cfe0ee; cursor: pointer; font: inherit; }
body.ssce-sticky-on .ssce-tray { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.ssce-compare-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 16px 64px; }
.ssce-compare-scroll { overflow-x: auto; border: 1px solid var(--ss-line, #E6E1D8); border-radius: 14px; background: #fff; }
.ssce-compare { width: 100%; min-width: 560px; border-collapse: collapse; }
.ssce-compare th, .ssce-compare td { padding: 14px 16px; border-bottom: 1px solid var(--ss-line, #E6E1D8); text-align: left; vertical-align: top; }
.ssce-compare thead th { vertical-align: bottom; }
.ssce-compare thead img { display: block; width: 120px; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.ssce-compare tbody th { width: 160px; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-ink-soft, #4A5B6B); font-weight: 500; }
.ssce-compare__remove { display: block; margin-top: 6px; background: none; border: 0; padding: 0; color: var(--ss-ink-soft, #4A5B6B); text-decoration: underline; cursor: pointer; font-size: .8125rem; }

.ssce-filters ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ssce-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ss-line, #E6E1D8); border-radius: 999px; background: #fff; color: var(--ss-night, #0E2A44); text-decoration: none; font-size: .875rem; }
.ssce-chip.is-on { border-color: var(--ss-deep, #135F93); background: var(--ss-mist, #EAF3FA); font-weight: 600; }
.ssce-chip--check::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border: 1.5px solid currentColor; border-radius: 3px; }
.ssce-chip--check.is-on::before { background: var(--ss-deep, #135F93); border-color: var(--ss-deep, #135F93); }

/* Facet dropdowns (fill, size, pack, colour) */
.ssce-facets { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin: 0 0 12px; }
.ssce-facet { position: relative; }
.ssce-facet summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 34px 0 14px; border: 1.5px solid var(--ss-line, #E6E1D8); border-radius: 999px; background: #fff; color: var(--ss-night, #0E2A44); font-size: .875rem; }
.ssce-facet summary::-webkit-details-marker { display: none; }
.ssce-facet summary::after { content: ""; position: absolute; right: 14px; top: 16px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.ssce-facet[open] summary::after { top: 19px; transform: rotate(225deg); }
.ssce-facet.is-on summary { border-color: var(--ss-deep, #135F93); background: var(--ss-mist, #EAF3FA); }
.ssce-facet ul { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 220px; max-height: 60vh; overflow: auto; margin: 0; padding: 8px; list-style: none; display: block; background: #fff; border: 1px solid var(--ss-line, #E6E1D8); border-radius: 14px; box-shadow: 0 14px 34px rgba(14, 42, 68, .12); }
.ssce-facet li a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px; border-radius: 8px; color: var(--ss-night, #0E2A44); text-decoration: none; font-size: .9375rem; }
.ssce-facet li a span { color: #6B7785; font-size: .8125rem; }
.ssce-facet li a:hover, .ssce-facet li a[aria-current="true"] { background: var(--ss-mist, #EAF3FA); font-weight: 600; }
.ssce-clear { align-self: center; font-size: .875rem; color: var(--ss-deep, #135F93); }
@media (max-width: 600px) { .ssce-facet { flex: 1 1 calc(50% - 8px); } .ssce-facet summary { width: 100%; } .ssce-facet ul { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; max-height: 70vh; } }
