/* Gift card page (templates/gift-card/page.php) */
.pb-gift-page {
    --g-ink: #23231f;
    --g-heading: #2a2a2a;
    --g-text: #4c4c4c;
    --g-muted: #6b6a62;
    --g-sage: #5e6a46;
    --g-sage-dark: #3f4830;
    --g-sand: #f6f3ed;
    --g-line: #e8e1d5;
    --g-field: rgba(0, 0, 0, .10);
    --g-serif: 'Libre Caslon Text', Georgia, serif;
    --g-sans: 'Hanken Grotesk', Arial, Helvetica, sans-serif;
    max-width: 1700px;
    /* WoodMart's layout wrapper adds 40px on top; the poster page pulls its
       breadcrumbs up the same way, so both sit ~15px under the header.
       Its .container already gives the 15px side gutter. */
    margin: -40px auto 0;
    padding: 3px 0 72px;
    box-sizing: border-box;
    font-family: var(--g-sans);
    color: var(--g-text);
}
.pb-gift-page *,
.pb-gift-page *::before,
.pb-gift-page *::after {
    box-sizing: border-box;
}
.pb-gift-page a {
    color: var(--g-sage);
}
.pb-gift-page a:hover {
    color: var(--g-sage-dark);
}

/* top line */
.pb-gift-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    margin-bottom: 16px;
}
.pb-gift-crumbs {
    font-size: 12px;
    line-height: 1.6;
    color: #767676;
}
.pb-gift-crumbs a {
    color: #767676 !important;
    text-decoration: none;
}
.pb-gift-crumbs span {
    color: var(--g-heading);
}
.pb-gift-top__saldo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
}

/* layout: preview + saldo left, form right; on phones form, then saldo */
.pb-gift-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 680px);
    gap: 24px 56px;
    align-items: start;
}
/* Sticks like the poster page gallery (pb-pdp.css); top set by the page script. */
.pb-gift-side {
    position: sticky;
    top: var(--pb-gift-top, 110px);
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

/* preview */
.pb-gift-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 72px 40px;
    border-radius: 12px;
    background: var(--g-sand);
}
.pb-gift-stage .pb-gift-art {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 3.75%/6%;
    box-shadow: 0 18px 40px rgba(35, 35, 31, .22), 0 2px 6px rgba(35, 35, 31, .12);
}
.pb-gift-pill {
    position: absolute;
    left: 16px;
    padding: 6px 12px;
    border: 1px solid #e5ded2;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    font-size: 13px;
    line-height: 1.3;
    color: #3a3a34;
}
.pb-gift-pill--top {
    top: 16px;
    font-weight: 600;
    color: var(--g-heading);
}
.pb-gift-pill--bottom {
    bottom: 16px;
}

/* buy column */
.pb-gift-page .pb-gift-title {
    margin: 0;
    font-family: var(--g-serif);
    font-weight: 400;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -.005em;
    color: var(--g-heading);
    text-transform: none;
}
.pb-gift-lead {
    margin: 6px 0 0;
    font-family: var(--g-serif);
    font-style: italic;
    font-size: 21px;
    line-height: 1.35;
    color: var(--g-muted);
}
.pb-gift-price {
    margin-top: 20px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--g-ink);
    font-variant-numeric: tabular-nums;
}
.pb-gift-label {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--g-heading);
}

/* amount and mode choices: a radio inside a label, drawn as a button */
.pb-gift-choice input[type="radio"],
.pb-gift-mode input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}
.pb-gift-amounts {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
}
.pb-gift-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: 0;
    padding: 10px 8px;
    border: 2px solid rgba(0, 0, 0, .075);
    border-radius: 8px;
    background: #fff;
    font: 600 16px/1.2 var(--g-sans);
    color: var(--g-ink);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s, background .15s;
}
.pb-gift-choice:hover {
    border-color: rgba(0, 0, 0, .25);
}
.pb-gift-choice:has(input[type="radio"]:checked),
.pb-gift-mode:has(input:checked) {
    border-color: var(--g-ink);
    background: var(--g-sand);
}
.pb-gift-choice:has(input[type="radio"]:focus-visible),
.pb-gift-mode:has(input:focus-visible) {
    outline: 2px solid var(--g-sage);
    outline-offset: 2px;
}
.pb-gift-choice__input {
    display: none;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.pb-gift-choice--custom:has(input[type="radio"]:checked) {
    padding: 0 12px;
    cursor: text;
}
.pb-gift-choice--custom:has(input[type="radio"]:checked) .pb-gift-choice__text {
    display: none;
}
.pb-gift-choice--custom:has(input[type="radio"]:checked) .pb-gift-choice__input {
    display: flex;
}
.pb-gift-page .pb-gift-choice__input input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font: 600 16px var(--g-sans);
    color: var(--g-ink);
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.pb-gift-page .pb-gift-choice__input input::-webkit-outer-spin-button,
.pb-gift-page .pb-gift-choice__input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pb-gift-page .pb-gift-choice__input input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.pb-gift-page .pb-gift-choice__input input:focus {
    outline: none;
}

.pb-gift-modes {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}
.pb-gift-mode {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 72px;
    margin: 0;
    padding: 14px 16px;
    border: 2px solid rgba(0, 0, 0, .075);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.pb-gift-mode:hover {
    border-color: rgba(0, 0, 0, .25);
}
.pb-gift-mode svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--g-sage);
}
.pb-gift-mode span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pb-gift-mode strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--g-ink);
}
.pb-gift-mode small {
    font-size: 13px;
    line-height: 1.4;
    color: var(--g-muted);
}

/* fields */
.pb-gift-delivery {
    margin-top: 20px;
}
.pb-gift-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.pb-gift-row[hidden],
.pb-gift-note[hidden] {
    display: none !important;
}
.pb-gift-row + .pb-gift-row,
.pb-gift-delivery + .pb-gift-row {
    margin-top: 16px;
}
.pb-gift-field {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
}
.pb-gift-field--narrow {
    flex-basis: 180px;
}
.pb-gift-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--g-heading);
}
.pb-gift-field em {
    font-style: normal;
    font-weight: 400;
    color: var(--g-muted);
}
.pb-gift-page .pb-gift-field input,
.pb-gift-page .pb-gift-field textarea {
    display: block;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--g-field);
    border-radius: 5px;
    background: #fff;
    box-shadow: none;
    font: 16px var(--g-sans);
    color: var(--g-heading);
}
.pb-gift-page .pb-gift-field textarea {
    padding: 12px 14px;
    line-height: 1.4;
    resize: vertical;
    overflow-y: auto;
}
.pb-gift-page .pb-gift-field input:focus,
.pb-gift-page .pb-gift-field textarea:focus {
    outline: none;
    border-color: var(--g-sage);
}
.pb-gift-hint {
    flex: 1 1 100%;
    margin: -8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--g-muted);
}
.pb-gift-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 8px;
    background: var(--g-sand);
}
.pb-gift-note svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--g-sage);
}
.pb-gift-note strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--g-ink);
}
.pb-gift-note p {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: #3a3a34;
}

/* summary + submit */
.pb-gift-summary {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--g-sand);
    font-size: 15px;
    color: var(--g-muted);
}
.pb-gift-summary strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--g-ink);
    font-variant-numeric: tabular-nums;
}
.pb-gift-error {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fbeaea;
    font-size: 15px;
    line-height: 1.5;
    color: #8a1f1f;
}
.pb-gift-error[hidden] {
    display: none;
}
/* WoodMart styles every submit button; this wins over it. */
.pb-gift-page .pb-gift-form button.pb-gift-submit {
    display: block;
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin-top: 20px;
    padding: 0 20px;
    border: 0 !important;
    border-radius: 5px !important;
    background: var(--g-sage) !important;
    color: #fff !important;
    box-shadow: none;
    font: 700 18px/1.2 var(--g-sans);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.pb-gift-page .pb-gift-form button.pb-gift-submit:hover,
.pb-gift-page .pb-gift-form button.pb-gift-submit:focus-visible {
    background: var(--g-sage-dark) !important;
}

.pb-gift-facts {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--g-text);
}
.pb-gift-facts li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
}
.pb-gift-facts svg {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--g-sage);
}
.pb-gift-pay {
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #767676;
}
.pb-gift-pay span {
    padding: 4px 8px;
    border: 1px solid var(--g-line);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--g-heading);
}

/* saldo */
.pb-gift-saldo {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--g-line);
    border-radius: 10px;
    scroll-margin-top: 120px;
}
.pb-gift-saldo__icon {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--g-sand);
    color: var(--g-sage);
}
.pb-gift-saldo__body {
    flex: 1 1 300px;
    min-width: 0;
}
.pb-gift-page .pb-gift-saldo h2 {
    margin: 0;
    font-family: var(--g-serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3;
    color: var(--g-heading);
    text-transform: none;
}
.pb-gift-saldo__body > p {
    margin: 4px 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--g-muted);
}
.pb-gift-saldo__form label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--g-heading);
}
.pb-gift-saldo__form > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pb-gift-page .pb-gift-saldo__form input {
    flex: 1 1 200px;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--g-field);
    border-radius: 5px;
    box-shadow: none;
    font: 16px var(--g-sans);
    letter-spacing: .04em;
    color: var(--g-heading);
}
.pb-gift-page .pb-gift-saldo__form button {
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 22px;
    border: 1.5px solid var(--g-heading) !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: var(--g-heading) !important;
    box-shadow: none;
    font: 700 16px var(--g-sans);
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.pb-gift-page .pb-gift-saldo__form button:hover {
    background: var(--g-sand) !important;
}
.pb-gift-saldo__result {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: 10px;
}
.pb-gift-saldo__hint {
    font-size: 13px;
    line-height: 1.5;
    color: var(--g-muted);
}
.pb-gift-saldo__ok {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 4px 16px;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--g-sand);
    font-size: 15px;
    color: #3a3a34;
}
.pb-gift-saldo__ok strong {
    color: var(--g-ink);
    font-variant-numeric: tabular-nums;
}
.pb-gift-saldo__until {
    color: var(--g-muted);
}

/* how it works */
.pb-gift-how {
    margin-top: 64px;
    padding: 48px;
    border-radius: 12px;
    background: var(--g-sand);
}
.pb-gift-page .pb-gift-how h2,
.pb-gift-page .pb-gift-faq h2 {
    margin: 0;
    font-family: var(--g-serif);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: var(--g-heading);
    text-transform: none;
}
.pb-gift-how__lead {
    max-width: 620px;
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #3a3a34;
}
.pb-gift-how__ways {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.pb-gift-way {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    border: 2px solid var(--g-line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s;
}
.pb-gift-way.is-chosen {
    border-color: var(--g-ink);
}
.pb-gift-way__badge {
    display: none;
    position: absolute;
    top: -11px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--g-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.pb-gift-way.is-chosen .pb-gift-way__badge {
    display: block;
}
.pb-gift-way__head {
    display: flex;
    gap: 14px;
    align-items: center;
}
.pb-gift-way__icon {
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--g-sand);
    color: var(--g-sage);
}
.pb-gift-page .pb-gift-way h3,
.pb-gift-page .pb-gift-how__sub {
    margin: 0;
    font-family: var(--g-serif);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3;
    color: var(--g-heading);
    text-transform: none;
}
.pb-gift-way__head small {
    display: block;
    font-size: 14px;
    line-height: 1.4;
    color: var(--g-muted);
}
.pb-gift-way ol,
.pb-gift-use {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pb-gift-way ol {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pb-gift-way li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
}
.pb-gift-way li > span {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    border: 1.5px solid var(--g-sage);
    border-radius: 50%;
    font-family: var(--g-serif);
    font-size: 16px;
    color: var(--g-sage);
}
.pb-gift-way li strong,
.pb-gift-use strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--g-ink);
}
.pb-gift-way li p {
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--g-text);
}
.pb-gift-page .pb-gift-how__sub {
    margin-top: 44px;
}
.pb-gift-use {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px 32px;
}
.pb-gift-use li {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #cfc8bb;
}
.pb-gift-use li > span {
    display: block;
    margin-bottom: 10px;
    font-family: var(--g-serif);
    font-size: 36px;
    line-height: 1;
    color: var(--g-sage);
}
.pb-gift-use p {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: #3a3a34;
}
.pb-gift-use a {
    font-weight: 600;
}

/* FAQ */
.pb-gift-faq {
    margin-top: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px 56px;
}
.pb-gift-faq__intro {
    flex: 1 1 300px;
    min-width: 0;
}
.pb-gift-faq__intro p {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--g-text);
}
.pb-gift-faq__intro a {
    font-weight: 600;
}
.pb-gift-faq__list {
    flex: 2 1 560px;
    min-width: 0;
    border-top: 1px solid var(--g-line);
}
.pb-gift-faq details {
    border-bottom: 1px solid var(--g-line);
}
.pb-gift-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    list-style: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    color: var(--g-heading);
}
.pb-gift-faq summary::-webkit-details-marker {
    display: none;
}
.pb-gift-faq summary span {
    font-size: 22px;
    font-weight: 400;
    transition: transform .2s;
}
.pb-gift-faq details[open] summary span {
    transform: rotate(45deg);
}
.pb-gift-faq details p {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--g-text);
}

@media (max-width: 1024px) {
    .pb-gift-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
    /* Phones: preview, form, then saldo. */
    .pb-gift-side { display: contents; }
    .pb-gift-visual { order: 1; }
    .pb-gift-buy { order: 2; }
    .pb-gift-saldo { order: 3; }
    .pb-gift-stage {
        min-height: 0;
        padding: 56px 24px;
    }
}
@media (max-width: 600px) {
    .pb-gift-page { padding-top: 9px; padding-bottom: 56px; }
    .pb-gift-page .pb-gift-title { font-size: 34px; }
    .pb-gift-lead { font-size: 18px; }
    .pb-gift-price { font-size: 30px; }
    .pb-gift-stage { padding: 52px 16px; }
    .pb-gift-how { padding: 28px 18px; }
    .pb-gift-how__ways { grid-template-columns: minmax(0, 1fr); }
    .pb-gift-way { padding: 24px 18px; }
    .pb-gift-saldo { padding: 20px 18px; }
    .pb-gift-saldo__icon { display: none; }
}
