/* Cart drawer, cart page, test checkout, sticker options (Phase 4). Uses the store tokens when inside .css-store. */

.css-c-lock { overflow: hidden; }

.css-c-drawer { position: fixed; inset: 0; z-index: 100000; font: 15px/1.5 "CSS Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #2a1d16; }
.css-c-drawer[hidden] { display: none; }
.css-c-scrim { position: absolute; inset: 0; background: rgba(42, 29, 22, 0.45); }

.css-c-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100%);
    background: #fffcf7;
    box-shadow: -12px 0 40px rgba(42, 29, 22, 0.18);
}

.css-c-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e2d6c5; }
.css-c-drawer-head h2 { margin: 0; font: 600 1.6rem/1.1 "CSS Playfair", Georgia, serif; }
.css-c-close { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #efe7da; font-size: 22px; cursor: pointer; }
.css-c-drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.css-c-drawer-foot { padding: 16px 20px; border-top: 1px solid #e2d6c5; }
.css-c-drawer-foot[hidden] { display: none; }

.css-c-lines { margin: 0; padding: 0; list-style: none; }

.css-c-line {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid #ebe2d4;
}

.css-c-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
    background: repeating-conic-gradient(#f1e9dd 0% 25%, #fffcf7 0% 50%) 50% / 12px 12px;
}

.css-c-title { margin: 0; font-weight: 600; }
.css-c-opts { margin: 2px 0 8px; color: #76604f; font-size: 0.85rem; }
.css-c-row { display: flex; align-items: center; gap: 12px; }
.css-c-qtywrap { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: #5a473b; }
.css-c-qty { width: 64px; height: 34px; padding: 0 8px; border: 1px solid #cbbba5; border-radius: 8px; font: inherit; }
.css-c-remove { padding: 4px 0; border: 0; background: none; color: #a3331f; font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }
.css-c-price { margin: 0; text-align: right; }
.css-c-price span { display: block; color: #76604f; font-size: 0.8rem; }

.css-c-subrow { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 1.05rem; }
.css-c-full { width: 100%; }
.css-c-note { min-height: 1.4em; margin: 10px 0 0; color: #5a473b; font-size: 0.9rem; }
.css-c-min { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: #f8efdc; color: #5c4317; font-size: 0.9rem; }
.css-c-min[hidden] { display: none; }

.css-c-empty { display: grid; gap: 10px; justify-items: center; padding: 32px 8px; text-align: center; }
.css-c-empty p { margin: 0; }
.css-c-empty--page, .css-c-done { padding: 48px 16px; border: 2px dashed #e2d6c5; border-radius: 6px; text-align: center; }
.css-c-empty-emoji { font-size: 2.5rem; margin: 0; }

.css-c-layout { display: grid; gap: 24px; padding-bottom: 56px; }
@media (min-width: 900px) { .css-c-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; } }

.css-c-summary { padding: 20px; border-radius: 6px; background: #fffcf7; box-shadow: 0 1px 2px rgba(42, 29, 22, 0.06), 0 6px 20px rgba(42, 29, 22, 0.07); }
.css-c-summary .css-s-h3 { margin-bottom: 14px; }

.css-c-mini { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.92rem; }
.css-c-mini li { display: flex; justify-content: space-between; gap: 10px; }

.css-c-checkout-form { display: grid; gap: 14px; align-content: start; max-width: 560px; }
.css-c-test-banner { padding: 12px 14px; border-radius: 6px; border: 1px solid #f3d29a; background: #fff7e8; color: #6b4300; font-size: 0.92rem; }
.css-c-field { display: grid; gap: 4px; font-weight: 600; font-size: 0.92rem; }
.css-c-field input { height: 46px; padding: 0 12px; border: 1px solid #cbbba5; border-radius: 10px; font: inherit; font-weight: 400; }
.css-c-field input:focus { border-color: #2d5a43; outline: 3px solid rgba(45, 90, 67, 0.2); }

/* Sticker page options */
.css-s-buy { display: grid; gap: 14px; margin: 8px 0 16px; padding: 18px; border: 1px solid #e2d6c5; border-radius: 6px; background: #fffcf7; }
.css-s-buy fieldset { margin: 0; padding: 0; border: 0; }
.css-s-buy legend { margin-bottom: 6px; font-weight: 600; font-size: 0.92rem; }
.css-s-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.css-s-opt input { position: absolute; opacity: 0; pointer-events: none; }
.css-s-opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #e2d6c5; border-radius: 999px; font-size: 0.9rem; cursor: pointer; }
.css-s-opt input:checked + span { border-color: #2d5a43; background: #e6eee6; color: #1f4231; font-weight: 600; }
.css-s-opt input:focus-visible + span { outline: 3px solid #2d5a43; outline-offset: 2px; }
.css-s-buy-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.css-s-buy-row label { display: grid; gap: 4px; font-size: 0.85rem; font-weight: 600; }
.css-s-buy-row input, .css-s-buy-row select { height: 44px; padding: 0 10px; border: 1px solid #cbbba5; border-radius: 10px; font: inherit; }
.css-s-buy-row input[type="number"] { width: 90px; }
.css-s-buy-total { margin: 0; font-size: 1.3rem; font-weight: 700; }
.css-s-buy-added { min-height: 1.2em; margin: 0; color: #2d5a43; font-size: 0.9rem; }
.css-s-report { margin-top: 12px; padding: 0; border: 0; background: none; color: #76604f; font: inherit; font-size: 0.85rem; text-decoration: underline; cursor: pointer; }

/* Account sections (My Account dashboard) */
.css-a-section { margin: 28px 0; }
.css-a-section h2 { margin: 0 0 12px; font: 600 1.6rem/1.15 "CSS Playfair", Georgia, serif; }
.css-a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.css-a-card { padding: 10px; border: 1px solid #e2d6c5; border-radius: 6px; background: #fffcf7; font-size: 0.88rem; }
.css-a-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; background: repeating-conic-gradient(#f1e9dd 0% 25%, #fffcf7 0% 50%) 50% / 12px 12px; }
.css-a-card p { margin: 6px 0 0; }
.css-a-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.css-a-status--pending { background: #fff4d6; color: #8a5a00; }
.css-a-status--approved { background: #e3f6ea; color: #2d5a43; }
.css-a-status--rejected { background: #fde8e8; color: #b42318; }
.css-a-orders { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.css-a-orders th, .css-a-orders td { padding: 8px; border-bottom: 1px solid #ebe2d4; text-align: left; }

/* WooCommerce pages inside the storefront */
.css-s-wc { padding-bottom: 56px; }
.css-s-wc .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.css-s-wc .woocommerce-MyAccount-navigation a { display: inline-block; padding: 8px 14px; border: 1px solid #e2d6c5; border-radius: 999px; text-decoration: none; }
.css-s-wc .woocommerce-MyAccount-navigation .is-active a { border-color: #2d5a43; background: #e6eee6; color: #1f4231; font-weight: 600; }
.css-s-wc input.input-text, .css-s-wc input[type="text"], .css-s-wc input[type="email"], .css-s-wc input[type="password"] { height: 44px; padding: 0 12px; border: 1px solid #cbbba5; border-radius: 10px; font: inherit; }
.css-s-wc button.button, .css-s-wc .button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 4px; background: #2d5a43; color: #fffcf7; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.css-s-wc .woocommerce-MyAccount-navigation ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.css-s-wc .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
@media (min-width: 769px) {
    .css-s-wc .woocommerce-MyAccount-navigation ul { flex-direction: column; overflow: visible; }
    .css-s-wc .woocommerce-MyAccount-navigation a { display: block; border-color: transparent; }
}

/* Brand polish (2026-11-16 redesign) */
.css-s-buy { gap: 18px; padding: 24px; box-shadow: 0 1px 2px rgba(42, 29, 22, 0.04); }
.css-s-buy legend, .css-s-buy-row label { color: #76604f; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.css-s-buy-row label { gap: 6px; }
.css-s-buy-row input, .css-s-buy-row select, .css-c-qty, .css-c-field input { border-radius: 4px; background: #fffcf7; color: #2a1d16; letter-spacing: 0; text-transform: none; font-weight: 400; }
.css-s-buy-row input:focus, .css-s-buy-row select:focus, .css-c-qty:focus { border-color: #2d5a43; outline: 3px solid rgba(45, 90, 67, 0.18); }
.css-s-opt span { min-height: 42px; padding: 0 16px; border-color: #cbbba5; color: #5a473b; transition: border-color 0.2s ease, background-color 0.2s ease; }
.css-s-opt span:hover { border-color: #2d5a43; }
.css-s-opt input:checked + span { background: #2d5a43; border-color: #2d5a43; color: #fffcf7; }
.css-s-buy-total { font-family: "CSS Playfair", Georgia, serif; font-size: 1.8rem; font-weight: 600; line-height: 1; }
.css-c-drawer-head { padding: 20px 24px; }
.css-c-drawer-body, .css-c-drawer-foot { padding-left: 24px; padding-right: 24px; }
.css-c-close { border-radius: 50%; color: #2a1d16; }
.css-c-close:hover { background: #e2d6c5; }
.css-c-title { font-family: "CSS Playfair", Georgia, serif; font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.css-c-thumb, .css-a-card img { background: linear-gradient(180deg, #f3ece1, #e9dfd0); }
.css-c-subrow { font-family: "CSS Playfair", Georgia, serif; font-size: 1.4rem; font-weight: 600; }
.css-c-summary { padding: 28px; box-shadow: inset 0 0 0 1px #e2d6c5; }
.css-c-empty--page, .css-c-done { border: 1px solid #e2d6c5; background: #fffcf7; }
.css-c-test-banner { border-color: #e0c99e; background: #f8efdc; color: #5c4317; }
.css-s-wc .woocommerce-MyAccount-navigation .is-active a { background: #2d5a43; border-color: #2d5a43; color: #fffcf7; }
.css-s-wc a { color: #2d5a43; }
.css-s-wc .button, .css-s-wc button.button { color: #fffcf7 !important; }
.css-s-wc .button:hover, .css-s-wc button.button:hover { background: #1f4231; }
.css-a-status--approved { background: #e6eee6; color: #1f4231; }
.css-s-buy-row label[hidden] { display: none; }
.css-s-wc h2, .css-s-wc h3, .css-s-wc legend { font-family: "CSS Playfair", Georgia, serif; font-size: 1.7rem; font-weight: 600; line-height: 1.15; color: #2a1d16; }
.css-s-wc form.login, .css-s-wc form.register, .css-s-wc form.lost_reset_password, .css-s-wc .woocommerce-EditAccountForm { padding: 24px; border: 1px solid #e2d6c5; border-radius: 6px; background: #fffcf7; }
.css-s-wc label { color: #5a473b; font-size: 0.85rem; font-weight: 600; }
.css-s-wc input.input-text:focus, .css-s-wc input[type="text"]:focus, .css-s-wc input[type="email"]:focus, .css-s-wc input[type="password"]:focus { border-color: #2d5a43; outline: 3px solid rgba(45, 90, 67, 0.18); }
.css-s-wc .woocommerce-message, .css-s-wc .woocommerce-info { border-top-color: #2d5a43; background: #fffcf7; }
.css-s-wc .woocommerce-error { border-top-color: #a3331f; background: #fffcf7; }
.css-c-done { margin-bottom: 72px; }

/* The drawer lives on <body>, outside .css-store (and its --s-* tokens), so its buttons are styled here. */
.css-c-drawer .css-s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 4px; font: 600 0.78rem/1 "CSS Inter", system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.css-c-drawer .css-s-btn--primary { background: #2d5a43; color: #fffcf7 !important; }
.css-c-drawer .css-s-btn--primary:hover { background: #1f4231; }
.css-c-drawer .css-s-btn--ghost { border-color: #2a1d16; background: transparent; color: #2a1d16 !important; }
.css-c-drawer .css-s-btn--ghost:hover { background: #2a1d16; color: #fffcf7 !important; }
.css-c-drawer :focus-visible { outline: 2px solid #2d5a43; outline-offset: 3px; }
.css-c-drawer .css-c-empty .css-s-btn { width: 100%; }
.css-c-drawer *, .css-c-drawer *::before, .css-c-drawer *::after { box-sizing: border-box; }
.css-s-wc .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; }
@media (min-width: 769px) {
    .css-s-wc .woocommerce-MyAccount-navigation ul { gap: 2px; }
    .css-s-wc .woocommerce-MyAccount-navigation a { padding: 10px 16px; border-radius: 4px; }
    .css-s-wc .woocommerce-MyAccount-navigation a:hover { background: #efe7da; }
}
.css-a-card p { line-height: 1.35; }

/* Pre-launch (owner, 2026-12-03): checkout is closed; the cart summary and checkout page say the store is coming soon. */
.css-c-soon-note { margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: #eef3ee; color: #2f4b33; font-family: "CSS Playfair", Georgia, serif; font-style: italic; font-size: 1.05rem; line-height: 1.35; text-align: center; }
.css-c-soon { max-width: 560px; margin: 24px auto 56px; padding: 40px 28px; border-radius: 16px; background: #fffcf7; box-shadow: inset 0 0 0 1px #e2d6c5; text-align: center; }
.css-c-soon .css-s-h3 { margin: 0 0 10px; }
.css-c-soon .css-s-actions { margin-top: 22px; }
