/* ============================================================
   Soofos Gift Cards page — per-page styles
   Enqueued only on the /gift-cards/ page via soofos_enqueue_page_styles().
   All visual values reference CSS custom properties from tokens.css (theme
   root) and components.css. No hardcoded hex or spacing values.
   ============================================================ */

/* ---------- Page wrapper ---------- */
.sf-gc-page {
    font-family: var(--font);
    color: var(--body);
    background: var(--blue-tint);
    min-height: 80vh;
}

/* ---------- Hero panel ---------- */
.sf-gc-hero {
    padding: 40px 48px 44px;
    max-width: 1100px;
    margin: 0 auto;
}

.sf-gc-hero__layout {
    display: flex;
    gap: 40px;
    align-items: center;
}

.sf-gc-hero__copy {
    flex: 1;
    min-width: 0;
}

.sf-gc-hero__eyebrow {
    font-size: 11px;
    font-weight: 800;
    color: var(--deep-blue);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.sf-gc-hero__heading {
    font-size: 30px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.5px;
    margin: 0 0 8px;
    line-height: 1.2;
}

.sf-gc-hero__sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 20px;
}

/* ---------- Amount picker ---------- */
.sf-gc-amounts__label {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted-2);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.sf-gc-amounts__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.sf-gc-amount {
    display: inline-block;
    padding: 11px 20px;
    border: 2px solid var(--card-border);
    background: var(--white);
    border-radius: var(--r-btn);
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.sf-gc-amount:hover {
    border-color: var(--blue);
    background: var(--blue-fill);
    color: var(--ink);
    text-decoration: none;
}

.sf-gc-amount--featured {
    border-color: var(--blue);
    background: var(--blue-fill);
}

/* ---------- CTA row ---------- */
.sf-gc-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}

.sf-gc-cta-primary {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--r-btn);
    background: var(--red);
    color: var(--white);
    font: 900 14px var(--font);
    box-shadow: 0 4px 12px rgba(255, 72, 89, .32);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}

.sf-gc-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(255, 72, 89, .4);
    color: var(--white);
    text-decoration: none;
}

.sf-gc-cta-secondary {
    display: inline-block;
    padding: 13px 22px;
    border: 2px solid var(--card-border);
    border-radius: var(--r-btn);
    background: var(--white);
    font: 800 13px var(--font);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s;
}

.sf-gc-cta-secondary:hover {
    border-color: var(--blue);
    color: var(--ink);
    text-decoration: none;
}

/* ---------- Trust line ---------- */
.sf-gc-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--muted-2);
}

/* ---------- Card visual ---------- */
.sf-gc-card-visual {
    width: 280px;
    flex: none;
}

.sf-gc-card-visual__inner {
    background: var(--ink);
    border-radius: var(--r-card-lg);
    padding: 22px 24px 24px;
    color: var(--white);
    box-shadow: 0 14px 40px rgba(33, 52, 75, .25);
    transform: rotate(2deg);
}

.sf-gc-card-visual__header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sf-gc-card-visual__logo {
    height: 14px;
    width: auto;
}

.sf-gc-card-visual__tag {
    font-size: 10px;
    font-weight: 800;
    color: var(--faint);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sf-gc-card-visual__amount {
    font-size: 32px;
    font-weight: 900;
    margin: 18px 0 4px;
}

.sf-gc-card-visual__message {
    font-size: 11.5px;
    color: var(--faint);
    font-weight: 700;
    line-height: 1.4;
}

.sf-gc-card-visual__code {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted-2);
    margin-top: 18px;
    font-family: var(--mono);
    letter-spacing: .04em;
}

/* ---------- How it works ---------- */
.sf-gc-how {
    background: var(--white);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    padding: 36px 48px;
}

.sf-gc-how__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sf-gc-how__heading {
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 22px;
}

.sf-gc-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sf-gc-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sf-gc-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--blue-fill);
    color: var(--deep-blue);
    font-size: 12px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sf-gc-step__title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.sf-gc-step__desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

/* ---------- FAQ ---------- */
.sf-gc-faq {
    padding: 36px 48px 44px;
    max-width: 1100px;
    margin: 0 auto;
}

.sf-gc-faq__heading {
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 16px;
}

.sf-gc-faq details {
    border-bottom: 1px solid var(--card-border);
    padding: 14px 0;
}

.sf-gc-faq details:first-of-type {
    border-top: 1px solid var(--card-border);
}

.sf-gc-faq details summary {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.sf-gc-faq details summary::-webkit-details-marker { display: none; }

.sf-gc-faq details summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 400;
    color: var(--muted-2);
    flex-shrink: 0;
}

.sf-gc-faq details[open] summary::after {
    content: '−';
}

.sf-gc-faq details .sf-gc-faq__answer {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    margin-top: 10px;
    padding-right: 24px;
}

.sf-gc-faq details .sf-gc-faq__answer ol,
.sf-gc-faq details .sf-gc-faq__answer ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.sf-gc-faq details .sf-gc-faq__answer li {
    margin-bottom: 4px;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .sf-gc-hero {
        padding: 28px 20px 32px;
    }

    .sf-gc-hero__layout {
        flex-direction: column;
    }

    .sf-gc-card-visual {
        width: 100%;
        max-width: 300px;
    }

    .sf-gc-card-visual__inner {
        transform: none;
    }

    .sf-gc-how {
        padding: 28px 20px;
    }

    .sf-gc-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sf-gc-faq {
        padding: 28px 20px 36px;
    }
}

/* ============================================================
   TASK-026 — live picker + redeem forms (shortcode partials).
   All values from tokens.css custom properties; no hardcoded hex.
   ============================================================ */

.sf-gc-page .screen-reader-text {
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* Amount chips as radio labels (same look as the static chips) */
.sf-gc-amount--choice {
    position: relative;
    user-select: none;
}

.sf-gc-amount--choice:has(.sf-gc-amount__input:checked) {
    border-color: var(--blue);
    background: var(--blue-fill);
}

.sf-gc-amount--choice:has(.sf-gc-amount__input:focus-visible) {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Custom amount reveal — only when the "Other…" chip is selected */
.sf-gc-custom-amount {
    display: none;
    margin: 0 0 14px;
}

.sf-gc-picker:has(.sf-gc-amount--custom .sf-gc-amount__input:checked) .sf-gc-custom-amount {
    display: block;
}

/* Gift fields */
.sf-gc-gift-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    margin: 0 0 16px;
}

.sf-gc-field--wide {
    grid-column: 1 / -1;
}

.sf-gc-field__label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--muted-2);
    margin-bottom: 4px;
}

.sf-gc-field__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 2px solid var(--input-border);
    border-radius: var(--r-btn);
    background: var(--white);
    font: 600 13px var(--font);
    color: var(--ink);
}

.sf-gc-field__input:focus {
    outline: none;
    border-color: var(--blue);
}

.sf-gc-field__input--textarea {
    resize: vertical;
    min-height: 44px;
}

.sf-gc-field__input--amount {
    max-width: 180px;
}

/* Buy button (same visual as the static primary CTA link) */
.sf-gc-cta-primary--btn {
    border: 0;
    cursor: pointer;
    font-family: var(--font);
}

/* Redeem CTA band (the redeem form itself now lives on /redeem/) */
.sf-gc-redeem-cta {
    padding: 28px 48px;
    background: var(--white);
    border-top: 1px solid var(--card-border);
}

.sf-gc-redeem-cta__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sf-gc-redeem-cta__title {
    font-size: 16px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 4px;
}

.sf-gc-redeem-cta__sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    max-width: 620px;
}

.sf-gc-redeem-cta__btn {
    display: inline-block;
    flex: none;
    padding: 12px 22px;
    border: 2px solid var(--card-border);
    border-radius: var(--r-btn);
    background: var(--white);
    font: 800 13px var(--font);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, background .15s;
}

.sf-gc-redeem-cta__btn:hover {
    border-color: var(--blue);
    background: var(--blue-fill);
    color: var(--ink);
    text-decoration: none;
}

/* WooCommerce notices queued by the buy handler, rendered in the picker */
.sf-gc-picker .woocommerce-error,
.sf-gc-picker .woocommerce-message,
.sf-gc-picker .woocommerce-info {
    list-style: none;
    background: var(--red-fill);
    color: var(--red-ink);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--r-btn);
    padding: 10px 14px;
    margin: 0 0 14px;
}

.sf-gc-picker .woocommerce-message,
.sf-gc-picker .woocommerce-info {
    background: var(--blue-fill);
    color: var(--deep-blue);
}

@media (max-width: 800px) {
    .sf-gc-gift-fields {
        grid-template-columns: 1fr;
    }

    .sf-gc-redeem-cta {
        padding: 24px 20px;
    }

    .sf-gc-redeem-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
