/* The Santa shop: shop.html, cart.html, and the cart bar (santa-cart.js)
   that nice-list.html and santa-message.html show too. In the site's own
   look, with the same reds as the two products' pages. */

.ss-main { width: 100%; max-width: 980px; box-sizing: border-box; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.ss-hero { margin: 0.5rem 0 1.5rem; max-width: 720px; }
.ss-hero h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.ss-hero p { color: var(--text-muted); font-size: 1.05rem; margin: 0; text-wrap: pretty; }
@media (max-width: 520px) { .ss-hero h1 { font-size: 1.7rem; } }

/* The products: three across, one under another on a phone or tablet. */
.ss-products { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 560px; }
@media (min-width: 900px) { .ss-products { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }
.ss-product {
    display: flex; flex-direction: column; gap: 0.75rem; padding: 1.15rem; background: #fff;
    border: 1px solid var(--border); border-radius: 14px;
}
.ss-product-head { display: flex; align-items: center; gap: 0.7rem; }
.ss-product-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.6rem; height: 2.6rem;
    border-radius: 50%; background: #9E1B22; color: #FFF6E0;
}
.ss-product-icon.is-parchment { background: #E4CB91; color: #5B3A1D; }
.ss-product-icon svg { width: 1.4rem; height: 1.4rem; }
.ss-product h2 { flex: 1; font-size: 1.15rem; margin: 0; }
.ss-product-price { font: 700 1.1rem 'Inter', sans-serif; color: #9E1B22; }
.ss-product p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.ss-product audio { width: 100%; height: 2.5rem; }
.ss-product .ss-btn { margin-top: auto; align-self: flex-start; }

/* A link to the All 3 deal, under the shop's intro. */
.ss-hero-deal {
    display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; margin-top: 0.9rem; padding: 0.55rem 1rem; border-radius: 16px;
    background: #FBE9E6; color: #7F151B; font: 500 0.92rem 'Inter', sans-serif; text-decoration: none;
}
.ss-hero-deal strong { color: #9E1B22; }

/* A sample player on a product card, or "Sample coming soon". */
.ss-sample { display: grid; gap: 0.35rem; }
.ss-sample-label { font: 600 0.85rem 'Inter', sans-serif; color: var(--text-dark); }
.ss-sample-missing { font-size: 0.88rem; color: var(--text-muted); padding: 0.6rem 0.8rem; border-radius: 10px; background: #F6F4EF; }
.ss-sample-missing[hidden] { display: none; }

/* All 3 for one child, under the products. */
.ss-deal { margin: 1.25rem 0 0; max-width: 560px; padding: 1.2rem 1.25rem; border-radius: 16px; background: #FBE9E6; }
@media (min-width: 900px) { .ss-deal { max-width: none; } }
.ss-deal-main { display: grid; gap: 0.5rem; }
@media (min-width: 900px) {
    .ss-deal-main { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.5rem; }
    .ss-deal-btn { grid-row: 1 / span 2; grid-column: 2; }
}
.ss-deal-title { margin: 0; font: 800 1.3rem 'Outfit', sans-serif; color: #9E1B22; }
.ss-deal-text { margin: 0; color: var(--text-dark); line-height: 1.5; }
.ss-deal-btn { justify-self: start; margin-top: 0.3rem; }
.ss-deal-more { margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(158, 27, 34, 0.15); font-size: 0.9rem; line-height: 1.55; color: var(--text-dark); }
.ss-deal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0.5rem 0 0; }
.ss-deal-links a { color: var(--secondary); font: 600 0.9rem 'Inter', sans-serif; }

.ss-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 3rem; padding: 0.7rem 1.3rem;
    border: 0; border-radius: 999px; background: #9E1B22; color: #fff; cursor: pointer; box-sizing: border-box;
    font: 700 1rem 'Inter', sans-serif; text-decoration: none;
}
.ss-btn:hover { background: #7F151B; }
.ss-btn:disabled { opacity: 0.7; cursor: progress; }
.ss-btn-secondary { background: #fff; color: var(--secondary); border: 1.5px solid var(--secondary); min-height: 2.6rem; font-size: 0.92rem; }
.ss-btn-secondary:hover { background: #F1F7F7; }
.ss-link-btn {
    border: 0; background: none; padding: 0; color: var(--secondary); font: 600 0.9rem 'Inter', sans-serif;
    text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

.ss-faq { margin-top: 2.25rem; max-width: 720px; }
.ss-faq h2 { font-size: 1.35rem; margin: 0 0 0.6rem; }
.ss-faq details { border-bottom: 1px solid var(--border); }
.ss-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3rem; padding: 0.6rem 0;
    cursor: pointer; list-style: none; font: 600 1rem 'Inter', sans-serif; color: var(--text-dark);
}
.ss-faq summary::-webkit-details-marker { display: none; }
.ss-faq summary::after { content: '+'; flex: none; font-size: 1.3rem; font-weight: 400; color: var(--secondary); }
.ss-faq details[open] summary::after { content: '\2212'; }
.ss-faq details p { margin: 0 0 0.9rem; line-height: 1.6; color: var(--text-dark); }
.ss-faq-more { margin: 1rem 0 0; line-height: 1.6; }

/* The cart. */
.ss-cart { max-width: 720px; }
.ss-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.25rem; margin: 0 0 1.25rem; }
.ss-card h2 { font-size: 1.15rem; margin: 0 0 0.9rem; }
.ss-items { list-style: none; margin: 0; padding: 0; }
.ss-item { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.8rem 0; border-top: 1px solid var(--border); }
.ss-item:first-child { border-top: 0; padding-top: 0.2rem; }
.ss-item-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; height: 2.5rem;
    border-radius: 10px; background: #9E1B22; color: #FFF6E0;
}
.ss-item-icon.is-cert { background: #E4CB91; color: #5B3A1D; }
.ss-item-icon svg { width: 1.3rem; height: 1.3rem; }
.ss-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.ss-item-title { font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.ss-item-details { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.ss-item-price { flex: none; font-weight: 700; color: var(--text-dark); }
.ss-item-actions { display: flex; gap: 1.1rem; align-items: center; margin-top: 0.25rem; }
.ss-item-actions a, .ss-item-actions .ss-link-btn {
    display: inline-flex; align-items: center; min-height: 2rem; padding: 0; font: 600 0.88rem/1 'Inter', sans-serif; color: var(--secondary);
    text-decoration: underline; text-underline-offset: 2px;
}
.ss-item-error { margin: 0.2rem 0 0; font-size: 0.88rem; color: #B3261E; font-weight: 500; }

/* A card per child: their name and deal, their price, their things, and one add-on. */
.ss-children { display: grid; gap: 0.9rem; }
.ss-child { margin: 0; padding: 1rem 1.05rem; }
.ss-child-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin: 0 0 0.7rem; }
.ss-child-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; min-width: 0; }
.ss-card .ss-child-who h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.ss-child-deal { padding: 0.15rem 0.55rem; border-radius: 999px; background: #E7F3EC; color: #1E6B45; font: 600 0.78rem 'Inter', sans-serif; }
.ss-child-price { flex: none; display: flex; gap: 0.4rem; align-items: baseline; }
.ss-child-price s { color: var(--text-muted); font-size: 0.9rem; }
.ss-child-price strong { font-size: 1.1rem; color: var(--text-dark); }
.ss-addon {
    display: flex; align-items: center; gap: 0.75rem; margin-top: 0.8rem; padding: 0.75rem 0.85rem; border-radius: 12px;
    border: 1.5px dashed #E7C9C5; background: #FFFBFA;
}
.ss-addon-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.ss-addon-text strong { font-size: 0.92rem; color: var(--text-dark); line-height: 1.35; }
.ss-addon-text span { font-size: 0.82rem; color: var(--text-muted); }
.ss-addon-btn {
    flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; min-width: 4.2rem;
    padding: 0.45rem 1rem; border-radius: 999px; border: 0; background: #9E1B22; color: #fff; cursor: pointer;
    font: 700 0.92rem 'Inter', sans-serif; text-decoration: none;
}
.ss-addon-btn:hover { background: #7F151B; }

/* + Add another child. */
.ss-add-child {
    display: flex; align-items: center; gap: 0.8rem; margin: 0.9rem 0 1.1rem; padding: 0.85rem 1rem; border-radius: 14px;
    border: 1.5px solid var(--secondary); background: #fff; color: var(--secondary); text-decoration: none;
}
.ss-add-child[hidden] { display: none; }
.ss-add-child-plus {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--secondary); color: #fff; font: 700 1.2rem/1 'Inter', sans-serif;
}
.ss-add-child strong { display: block; font: 700 0.98rem 'Inter', sans-serif; }
.ss-add-child small { display: block; color: var(--text-muted); font-size: 0.84rem; }

/* What it all comes to. */
.ss-summary { padding: 1rem 1.1rem; }
.ss-sum-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--text-dark); }
.ss-sum-row[hidden] { display: none; }
.ss-sum-saving { color: #1E6B45; font-weight: 700; }
.ss-was { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; margin-right: 0.3rem; }
.ss-was[hidden] { display: none; }
.ss-vat { margin: 0.7rem 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--text-muted); }

/* On a phone: the total and Checkout along the bottom of the cart. */
.ss-paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08); }
.ss-paybar[hidden] { display: none; }
.ss-paybar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
}
.ss-paybar-total small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.ss-paybar-total strong { font: 800 1.3rem 'Outfit', sans-serif; color: var(--text-dark); }
.ss-paybar .ss-btn { flex: 1; max-width: 14rem; }
body.has-paybar { padding-bottom: 5rem; }
@media (min-width: 721px) { .ss-paybar { display: none !important; } body.has-paybar { padding-bottom: 0; } }

.ss-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.55rem; padding-top: 0.55rem; border-top: 2px solid var(--border); font-weight: 700; font-size: 1.15rem; }
.ss-summary .ss-sum-row + .ss-total, .ss-summary .ss-total:first-child { margin-top: 0.55rem; }
.ss-more { margin: 0.75rem 0 0; font-size: 0.92rem; }
.ss-more a, .ss-faq a { color: var(--secondary); font-weight: 600; }

.ss-field { margin: 0 0 1rem; }
.ss-field label { display: block; font: 600 0.92rem 'Inter', sans-serif; color: var(--text-dark); margin: 0 0 0.35rem; }
.ss-field input {
    width: 100%; box-sizing: border-box; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 8px;
    font: 400 1rem 'Inter', sans-serif; background: #fff; color: var(--text-dark); min-height: 2.75rem;
}
.ss-field input:focus { outline: 2px solid var(--secondary); outline-offset: 1px; border-color: var(--secondary); }
.ss-field [aria-invalid="true"] { border-color: #B3261E; }
.ss-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.75rem; }
@media (max-width: 520px) { .ss-row { grid-template-columns: 1fr; } }
.ss-help { margin: -0.6rem 0 1rem; font-size: 0.82rem; color: var(--text-muted); }
.ss-error { margin: 0.3rem 0 0; font-size: 0.85rem; color: #B3261E; font-weight: 500; }
.ss-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; line-height: 1.45; color: var(--text-dark); cursor: pointer; }
.ss-check input { margin: 0.2rem 0 0; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--secondary); }
.ss-pay { width: 100%; margin-top: 1rem; }
.ss-fine { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.ss-message { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.95rem; background: #EEF6F6; color: var(--text-dark); }
.ss-message.is-error { background: #FBE9E6; color: #8C1D18; }
.ss-empty { text-align: center; padding: 1.5rem 0; }
.ss-empty p { margin: 0 0 1rem; color: var(--text-muted); }

/* After paying: each item, and where to open it or that it's coming by email. */
.ss-done-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.ss-done-item:first-child { border-top: 0; padding-top: 0; }
.ss-done-state { font-size: 0.88rem; color: var(--text-muted); }

/* The bar along the bottom (santa-cart.js). */
.sc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #1F2A2A; color: #fff; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18); }
.sc-bar[hidden] { display: none; }
.sc-bar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 980px; margin: 0 auto;
    padding: 0.65rem 1.25rem calc(0.65rem + env(safe-area-inset-bottom, 0px)); box-sizing: border-box;
}
.sc-bar-text { font: 600 0.95rem 'Inter', sans-serif; }
.sc-bar-btn {
    display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0.5rem 1.1rem; border-radius: 999px;
    background: #FFC857; color: #1F2A2A; font: 700 0.95rem 'Inter', sans-serif; text-decoration: none; white-space: nowrap;
}
.sc-bar-btn:hover { background: #FFD77F; }
body.has-cart-bar { padding-bottom: 4.5rem; }

/* "Added to your cart", on the product pages. */
.sc-added { margin: 1rem 0 0; padding: 1rem 1.1rem; border-radius: 12px; background: #EEF6F6; }
.sc-added[hidden] { display: none; }
.sc-added p { margin: 0 0 0.75rem; font-weight: 600; color: var(--text-dark); }
.sc-added-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* "Also for Saoirse": the shop's other things for that child (SantaCart.suggest()). */
.sc-more { margin: 1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid rgba(15, 110, 110, 0.18); }
.sc-more[hidden] { display: none; }
.sc-added .sc-more-title { margin: 0 0 0.55rem; font-size: 0.95rem; }
.sc-more-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sc-more-link {
    display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.6rem; padding: 0.45rem 0.95rem; box-sizing: border-box;
    border-radius: 999px; background: #fff; border: 1.5px solid #E7C9C5; color: #9E1B22; text-decoration: none;
    font: 600 0.92rem 'Inter', sans-serif;
}
.sc-more-link span { color: var(--text-muted); font-weight: 500; }
.sc-more-link:hover { border-color: #9E1B22; }

/* Under "Added to your cart": another child's price, and the certificate's preview. */
.sc-added .sc-added-hint { margin: 0.7rem 0 0; font-weight: 500; font-size: 0.86rem; color: var(--text-muted); }
.sc-added .sc-added-preview { margin: 0.5rem 0 0; font-weight: 600; font-size: 0.92rem; }
.sc-added-preview a { color: var(--secondary); }
.sc-added-preview[hidden] { display: none; }
