/* The shared public shell stays outside checkout's scoped form styles. */
.public-checkout { margin: 0; }
.public-checkout *, .public-checkout *::before, .public-checkout *::after { box-sizing: border-box; }
.public-checkout .public-footer address { margin: 0 0 12px; }
.public-checkout .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.gift-checkout { --gift-ink: #202820; --gift-muted: #64695f; --gift-paper: #faf9f5; --gift-border: #dedfd5; margin: 0; background: var(--gift-paper); color: var(--gift-ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
.gift-checkout *, .gift-checkout *::before, .gift-checkout *::after { box-sizing: border-box; }
.gift-checkout [hidden] { display: none !important; }
.gift-checkout a { color: inherit; text-underline-offset: 4px; }
.gift-checkout button, .gift-checkout input, .gift-checkout textarea { font: inherit; }
.gift-checkout button, .gift-checkout a { -webkit-tap-highlight-color: transparent; }
.gift-checkout button { cursor: pointer; }
.gift-checkout :focus-visible { outline: 3px solid #527858; outline-offset: 4px; }
.gift-checkout button:disabled { cursor: default; opacity: .5; }
.gift-checkout h1, .gift-checkout h2, .gift-checkout h3, .gift-checkout p { margin: 0; }
.gift-checkout h1, .gift-checkout h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.gift-checkout h1 { font-size: clamp(2.5rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -.035em; }
.gift-checkout h2 { font-size: 1.95rem; line-height: 1.2; }
.gift-checkout h3 { font-size: 1rem; font-weight: 650; }
.gift-main { max-width: 1080px; margin: auto; padding: 44px 28px 64px; }
.gift-intro { margin-bottom: 32px; }
.gift-eyebrow { color: #66613c; letter-spacing: .16em; font-size: .69rem; font-weight: 700; margin-bottom: 15px !important; }
.gift-intro > p:last-child { color: var(--gift-muted); max-width: 550px; margin-top: 16px; }
.gift-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 38px; align-items: start; }
.gift-form-column { min-width: 0; }
.gift-progress ol { display: flex; list-style: none; margin: 0 0 22px; padding: 0; gap: 14px; justify-content: space-between; }
.gift-progress li { min-width: 0; }
.gift-progress button { border: 0; background: transparent; color: var(--gift-muted); font-size: .83rem; white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 6px 0; min-height: 44px; }
.gift-progress button > span { border: 1px solid #b8beb2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; }
.gift-progress [aria-current="step"] button { color: var(--gift-ink); font-weight: 650; }
.gift-progress [aria-current="step"] button > span { background: var(--gift-ink); border-color: var(--gift-ink); color: white; }
.gift-progress .is-complete button > span { background: #e7eee3; border-color: #bbc9b4; }
.gift-step { padding: 30px; background: white; border: 1px solid var(--gift-border); border-radius: 14px; }
.gift-step-number { font-size: .66rem; letter-spacing: .14em; font-weight: 700; color: var(--gift-muted); margin-bottom: 9px !important; }
.gift-step-description { color: var(--gift-muted); font-size: .89rem; margin: 12px 0 25px !important; }
.gift-checkout fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.gift-checkout legend, .gift-checkout label { font-weight: 600; font-size: .88rem; margin-bottom: 8px; display: block; }
.gift-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 8px 0 18px; }
.gift-amounts button { min-height: 49px; border: 1px solid var(--gift-border); border-radius: 8px; background: #fff; font-size: 1rem; color: var(--gift-ink); }
.gift-amounts button:hover { border-color: #75856b; }
.gift-amounts button[aria-pressed="true"] { border-color: var(--gift-ink); background: var(--gift-ink); color: white; }
.gift-checkout input:not([type="hidden"]), .gift-checkout textarea { width: 100%; min-height: 47px; border: 1px solid #bfc5b9; background: white; border-radius: 7px; padding: 11px 12px; color: var(--gift-ink); }
.gift-checkout input::placeholder, .gift-checkout textarea::placeholder { color: #767c70; font-size: .9rem; }
.gift-checkout input:disabled, .gift-checkout textarea:disabled { background: #f1f2ed; color: #52594d; opacity: 1; }
.gift-checkout textarea { resize: vertical; }
.gift-checkout [aria-invalid="true"] { border-color: #a12b2b !important; }
.gift-money-input { position: relative; max-width: 230px; }
.gift-money-input > span { position: absolute; top: 11px; left: 14px; color: var(--gift-muted); }
.gift-money-input > input { padding-left: 31px !important; }
.gift-optional { color: var(--gift-muted); font-weight: 400; font-size: .8rem; margin-left: 5px; }
.gift-field { margin-top: 23px; min-width: 0; }
.gift-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gift-hint { color: var(--gift-muted); font-size: .77rem; margin-top: 7px !important; }
.gift-field-error { font-size: .82rem; color: #9e2929; margin-top: 6px !important; }
.gift-step-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e7e9df; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.gift-step-actions > .gift-button:only-child { margin-left: auto; }
.gift-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid var(--gift-ink); border-radius: 8px; padding: 12px 19px; background: var(--gift-ink); color: #fff !important; text-decoration: none; min-height: 48px; font-size: .86rem; font-weight: 600; text-align: center; }
.gift-button:hover:not(:disabled) { background: #374a35; border-color: #374a35; }
.gift-button-secondary { color: var(--gift-ink) !important; background: #fff; border-color: #bfc5b9; }
.gift-button-secondary:hover:not(:disabled) { color: #fff !important; }
.gift-text-button { border: 0; background: none; color: #34573b !important; font-size: .82rem; min-height: 44px; padding: 6px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.gift-field-help { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 2px 12px; }
.gift-field-help .gift-hint { max-width: 275px; }
.gift-delivery-note { display: flex; gap: 13px; padding: 18px; margin-top: 25px; background: #f1f4ed; border-radius: 9px; font-size: .84rem; }
.gift-delivery-note > span { font-size: 1.3rem; }
.gift-delivery-note p { color: var(--gift-muted); font-size: .8rem; margin-top: 6px; }
.gift-preview-column { position: sticky; top: 28px; min-width: 0; padding-top: 9px; }
.gift-preview-label { text-align: center; font-size: .63rem; letter-spacing: .17em; color: var(--gift-muted); margin: 7px 0 22px !important; }
.gift-certificate-preview { background: #252f26; color: #fbfaf3; min-height: 335px; padding: 30px 30px 26px; border-radius: 13px; text-align: center; box-shadow: 0 15px 32px #25302518; border: 1px solid #394939; }
.gift-preview-brand { font-family: Georgia, serif; font-size: 2rem; letter-spacing: -.03em; }
.gift-preview-brand span { display: block; font-family: "Segoe UI", Arial, sans-serif; letter-spacing: .17em; color: #d1c6a2; font-size: .57rem; margin-top: 3px; }
.gift-preview-rule { height: 1px; background: #817451; margin: 23px 0 20px; }
.gift-preview-type { font-size: .61rem; letter-spacing: .2em; color: #ded2af; }
.gift-certificate-preview > strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: clamp(2rem, 3vw, 2.7rem); margin: 9px 0 20px; overflow-wrap: anywhere; }
.gift-preview-for, .gift-preview-from { font-size: .75rem; color: #d6ddcf; overflow-wrap: anywhere; }
.gift-preview-message { color: #f5f2e7; font-family: Georgia, serif; font-style: italic; font-size: .96rem; line-height: 1.45; margin: 15px 0 !important; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 125px; overflow: auto; }
.gift-preview-caption { color: var(--gift-muted); font-size: .71rem; text-align: center; margin: 17px 13px 0 !important; }
.gift-preview-promise { margin: 29px 0 0; border-top: 1px solid var(--gift-border); padding: 23px 15px; text-align: center; }
.gift-preview-promise strong { font-family: Georgia, serif; font-size: 1.13rem; font-weight: 400; }
.gift-preview-promise p { font-size: .79rem; color: var(--gift-muted); margin-top: 7px; }
.gift-review-block { padding: 16px 0; border-bottom: 1px solid var(--gift-border); }
.gift-review-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gift-review-details, .gift-receipt-details { margin: 10px 0 0; }
.gift-review-details > div, .gift-receipt-details > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 15px; padding: 6px 0; font-size: .85rem; }
.gift-review-details dt, .gift-receipt-details dt { color: var(--gift-muted); }
.gift-review-details dd, .gift-receipt-details dd { margin: 0; overflow-wrap: anywhere; }
.gift-review-message { color: var(--gift-muted); font-size: .85rem; margin-top: 9px !important; white-space: pre-wrap; overflow-wrap: anywhere; }
.gift-payment { padding-top: 23px; }
.gift-payment .gift-field { margin: 18px 0; }
#card-element { padding: 14px 12px; border: 1px solid #bfc5b9; border-radius: 7px; min-height: 48px; background: #fff; }
.gift-captcha { margin-top: 20px; }
.gift-policy { color: var(--gift-muted); font-size: .75rem; margin: 18px 0 !important; }
.gift-total { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 20px 0; border-top: 1px solid var(--gift-border); }
.gift-total > span { font-size: .9rem; font-weight: 600; }
.gift-total small { display: block; font-size: .7rem; color: var(--gift-muted); font-weight: 400; }
.gift-total > strong { font-size: 1.3rem; white-space: nowrap; }
.gift-pay-button { width: 100%; }
.gift-alert, .gift-recovery { border: 1px solid #d6b589; background: #fffbf1; border-radius: 9px; padding: 19px; margin-bottom: 20px; font-size: .88rem; }
.gift-validation { color: #8e2525; border-color: #cfb0a6; background: #fff8f5; }
.gift-recovery h2 { font-size: 1.35rem; margin-bottom: 10px; }
.gift-recovery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.gift-reference { font-size: .75rem; overflow-wrap: anywhere; margin-top: 10px !important; }
.gift-employee-link { font-size: .69rem; color: #6d7368 !important; }
.gift-confirmation { max-width: 790px; text-align: center; }
.gift-success-icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%; background: #e5ecdf; color: #34573b; font-size: 1.7rem; margin: 22px auto; }
.gift-confirm-intro { color: var(--gift-muted); margin: 18px 0 30px !important; }
.gift-receipt { text-align: left; background: #fff; padding: 30px; border: 1px solid var(--gift-border); border-radius: 14px; }
.gift-receipt-header { display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid var(--gift-border); padding-bottom: 22px; }
.gift-receipt-header h2 { font-size: 1.5rem; }
.gift-receipt-header strong { font-size: 1.4rem; }
.gift-receipt-header small { display: block; font-size: .7rem; font-weight: 400; text-align: right; }
.gift-receipt-details > div { grid-template-columns: 170px minmax(0, 1fr); }
.gift-receipt-message { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--gift-border); }
.gift-receipt-message p { margin-top: 9px; font-size: .88rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.gift-confirm-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 27px; }
.gift-confirm-help { font-size: .8rem; margin-top: 25px !important; color: var(--gift-muted); }
@media (max-width: 850px) {
    .gift-workspace { gap: 23px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .gift-step { padding: 23px; }
    .gift-certificate-preview { padding: 25px 20px; }
    .gift-field-pair { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 680px) {
    .gift-main { padding: 32px 18px 40px; }
    .gift-intro { margin-bottom: 24px; }
    .gift-intro > p:last-child { font-size: .87rem; }
    .gift-workspace { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .gift-step { padding: 23px 18px; }
    .gift-checkout h2 { font-size: 1.7rem; }
    .gift-progress ol { gap: 9px; }
    .gift-progress button { gap: 5px; font-size: .74rem; }
    .gift-progress button > span { width: 24px; height: 24px; }
    .gift-preview-column { position: static; padding: 0; }
    .gift-certificate-preview { min-height: 0; padding: 24px 25px; }
    .gift-preview-promise { display: none; }
    .gift-step-actions { gap: 12px; }
    .gift-step-actions .gift-button { flex: 1; }
    .gift-total > strong { font-size: 1.15rem; }
    .gift-receipt { padding: 23px 18px; }
    .gift-receipt-details > div { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 8px 0; }
    .gift-receipt-header h2 { font-size: 1.25rem; }
    .gift-receipt-header strong { font-size: 1.2rem; }
}
@media (max-width: 370px) {
    .gift-step { padding: 22px 12px; }
    .gift-captcha { transform: scale(.85); transform-origin: left top; margin-bottom: -12px; }
}
@media (prefers-reduced-motion: reduce) { .gift-checkout * { scroll-behavior: auto !important; } }
@media print {
    .public-checkout .public-header, .public-checkout .public-actions, .public-checkout .public-footer, .public-checkout .public-skip-link, .gift-confirm-actions, .gift-confirm-help, .gift-success-icon { display: none !important; }
    .gift-checkout { background: #fff; color: #000; }
    .gift-confirmation { padding: 0; max-width: none; }
    .gift-confirmation > h1 { font-size: 26px; }
    .gift-receipt { border: 0; padding: 20px 0; }
    .gift-receipt-details > div { break-inside: avoid; }
    .gift-delivery-note { background: #fff; border: 1px solid #bbb; }
}

