﻿/* ============================================================
   Reshu Beauty – Gift Voucher (Front-end)
   Primary: #8F1438
   ============================================================ */

:root {
    --rb-primary: #8F1438;
    --rb-primary-dark: #6d1029;
    --rb-primary-light: #a83255;
    --rb-primary-soft: rgba(143, 20, 56, 0.06);
    --rb-primary-muted: rgba(143, 20, 56, 0.45);
    --rb-cream: #faf8f6;
    --rb-cream-dark: #f3efec;
    --rb-border: #e9e2dd;
    --rb-border-light: #f0ebe7;
    --rb-text: #2d2a2a;
    --rb-text-muted: #7a7370;
    --rb-radius: 16px;
    --rb-radius-lg: 24px;
    --rb-shadow: 0 20px 50px rgba(45, 35, 35, 0.06);
    --rb-shadow-sm: 0 6px 24px rgba(45, 35, 35, 0.05);
}

/* ---- Page base ---- */
.voucher-page-body {
    background: var(--rb-cream);
}

/* ---- Hero ---- */
.rb-voucher-hero {
    position: relative;
    padding: 80px 0 50px;
    background: linear-gradient(160deg, #fff 0%, var(--rb-cream) 55%, #f7f4f2 100%);
    overflow: hidden;
}

.rb-voucher-hero--short {
    padding: 56px 0 36px;
}

.rb-voucher-hero__deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.rb-voucher-hero__deco--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(143, 20, 56, 0.04) 0%, transparent 70%);
    top: -120px;
    right: -80px;
}

.rb-voucher-hero__deco--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 35, 35, 0.03) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
}

.rb-voucher-hero__inner {
    position: relative;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.rb-voucher-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--rb-text-muted);
    border: 1px solid var(--rb-border);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.rb-voucher-hero__badge i {
    color: var(--rb-primary);
}

.rb-voucher-hero h1 {
    font-family: var(--headerFonts);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--titleColor);
    margin-bottom: 16px;
    line-height: 1.15;
}

.rb-voucher-hero p {
    color: var(--rb-text-muted);
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 24px;
}

.rb-voucher-hero__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.rb-voucher-hero__pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--rb-border);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
    color: #555;
    box-shadow: var(--rb-shadow-sm);
}

.rb-voucher-hero__pills i {
    color: var(--rb-text-muted);
    font-size: 14px;
}

/* ---- Section ---- */
.rb-voucher-section {
    padding: 0 0 100px;
    margin-top: -20px;
}

/* ---- Sidebar ---- */
.rb-voucher-sidebar {
    position: sticky;
    top: 100px;
}

.rb-voucher-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
    background: #fff;
    border-radius: var(--rb-radius);
    padding: 8px;
    box-shadow: var(--rb-shadow-sm);
    border: 1px solid var(--rb-border-light);
}

.rb-voucher-steps__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    transition: background 0.2s;
}

.rb-voucher-steps__item.is-active {
    background: var(--rb-cream);
}

.rb-voucher-steps__item.is-active .rb-voucher-steps__num {
    background: #fff;
    color: var(--rb-primary);
    border: 2px solid var(--rb-primary);
}

.rb-voucher-steps__item.is-active .rb-voucher-steps__text {
    color: var(--rb-text);
    font-weight: 600;
}

.rb-voucher-steps__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rb-cream-dark);
    color: #888;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rb-voucher-steps__text {
    font-size: 14px;
    color: #666;
}

/* ---- Gift card preview ---- */
.rb-gift-preview {
    position: relative;
    border-radius: var(--rb-radius-lg);
    overflow: hidden;
    box-shadow: var(--rb-shadow);
    margin-bottom: 24px;
    transform: perspective(800px) rotateY(-2deg);
    transition: transform 0.4s ease;
    border: 1px solid var(--rb-border);
}

.rb-gift-preview:hover {
    transform: perspective(800px) rotateY(0deg);
}

.rb-gift-preview--checkout {
    transform: none;
    margin-bottom: 20px;
}

.rb-gift-preview__ribbon {
    background: linear-gradient(180deg, #fdfbfb 0%, #f7f3f1 100%);
    color: #6b5d61;
    text-align: center;
    padding: 12px 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--rb-border);
}

.rb-gift-preview__body {
    background: linear-gradient(165deg, #fff 0%, #fdfbfb 100%);
    padding: 36px 28px 28px;
    text-align: center;
    border: none;
}

.rb-gift-preview__salon {
    font-family: var(--headerFonts);
    font-size: 15px;
    color: var(--rb-text-muted);
    margin: 0 0 12px;
    letter-spacing: 0.5px;
}

.rb-gift-preview__amount {
    font-family: var(--headerFonts);
    font-size: clamp(2rem, 6vw, 2.75rem);
    font-weight: 700;
    color: var(--titleColor);
    line-height: 1.1;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.rb-gift-preview__amount.is-updated {
    transform: scale(1.05);
}

.rb-gift-preview__tagline,
.rb-gift-preview__recipient {
    font-size: 14px;
    color: var(--rb-text-muted);
    margin: 0 0 20px;
}

.rb-gift-preview__footer {
    padding-top: 16px;
    border-top: 1px dashed var(--rb-border);
}

.rb-gift-preview__footer span {
    font-size: 12px;
    color: #999;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rb-voucher-perks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rb-voucher-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid var(--rb-border);
}

.rb-voucher-perks li:last-child {
    border-bottom: none;
}

.rb-voucher-perks i {
    color: #9a8a8f;
    font-size: 17px;
}

/* ---- Main card ---- */
.rb-voucher-card {
    background: #fff;
    border-radius: var(--rb-radius-lg);
    box-shadow: var(--rb-shadow);
    overflow: hidden;
    border: 1px solid var(--rb-border-light);
}

.rb-voucher-card__header {
    background: #fff;
    padding: 32px 36px 28px;
    color: var(--rb-text);
    text-align: left;
    border-bottom: 1px solid var(--rb-border-light);
    position: relative;
}

.rb-voucher-card__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 36px;
    right: 36px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--rb-primary-muted), transparent);
    border-radius: 2px;
}

.rb-voucher-card__header h2 {
    font-family: var(--headerFonts);
    font-size: 1.65rem;
    margin: 0 0 8px;
    color: var(--titleColor);
}

.rb-voucher-card__header p {
    margin: 0;
    font-size: 14px;
    color: var(--rb-text-muted);
    opacity: 1;
}

.rb-voucher-card__body {
    padding: 36px;
}

.rb-voucher-card form {
    padding: 0;
}

/* ---- Form sections ---- */
.rb-form-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--rb-border);
}

.rb-form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.rb-form-section__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.rb-form-section__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--rb-cream);
    color: #8a7d82;
    border: 1px solid var(--rb-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.rb-form-section__head h3 {
    font-family: var(--headerFonts);
    font-size: 1.15rem;
    margin: 0 0 4px;
    color: var(--titleColor);
}

.rb-form-section__head p {
    margin: 0;
    font-size: 13px;
    color: var(--rb-text-muted);
}

.rb-voucher-label {
    display: block;
    font-weight: 600;
    color: var(--rb-text);
    margin-bottom: 8px;
    font-size: 13px;
}

/* ---- Amount & send toggles ---- */
.rb-voucher-amounts,
.rb-send-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rb-voucher-option {
    flex: 1;
    min-width: 90px;
    position: relative;
}

.rb-voucher-option--wide {
    min-width: 100%;
    flex: 0 0 100%;
}

.rb-voucher-option .rb-amount-btn,
.rb-voucher-option .rb-send-btn {
    width: 100%;
    height: 100%;
}

.rb-voucher-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rb-amount-btn,
.rb-send-btn {
    position: relative;
    border: 1.5px solid var(--rb-border);
    background: #fff;
    color: var(--rb-text);
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    display: block;
    user-select: none;
}

.rb-amount-btn {
    text-align: center;
    font-size: 16px;
}

.rb-send-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 18px 20px;
}

.rb-send-btn__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--rb-cream);
    color: #8a7d82;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    border: 1px solid var(--rb-border-light);
}

.rb-send-btn__text strong {
    display: block;
    font-size: 14px;
    color: inherit;
    margin-bottom: 2px;
}

.rb-send-btn__text small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.rb-amount-btn:hover,
.rb-send-btn:hover {
    border-color: #cfc5c0;
    transform: translateY(-1px);
    box-shadow: var(--rb-shadow-sm);
}

.rb-voucher-radio:checked + .rb-amount-btn,
.rb-voucher-radio:checked + .rb-send-btn {
    background: #fff;
    border-color: var(--rb-primary);
    color: var(--rb-text);
    box-shadow: 0 0 0 3px var(--rb-primary-soft);
}

.rb-voucher-radio:checked + .rb-amount-btn {
    color: var(--rb-primary);
    font-weight: 700;
}

.rb-voucher-radio:checked + .rb-send-btn .rb-send-btn__icon {
    background: var(--rb-primary-soft);
    color: var(--rb-primary);
    border-color: rgba(143, 20, 56, 0.15);
}

.rb-voucher-radio:checked + .rb-send-btn .rb-send-btn__text small {
    color: var(--rb-text-muted);
}

.rb-voucher-radio:focus-visible + .rb-amount-btn,
.rb-voucher-radio:focus-visible + .rb-send-btn {
    outline: 2px solid var(--rb-primary);
    outline-offset: 2px;
}

.rb-amount-btn__check,
.rb-send-btn__check {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--rb-primary);
    color: #fff;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
}

.rb-send-btn__check {
    position: static;
    margin-left: auto;
    flex-shrink: 0;
}

.rb-voucher-radio:checked + .rb-amount-btn .rb-amount-btn__check,
.rb-voucher-radio:checked + .rb-send-btn .rb-send-btn__check {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom amount */
.rb-custom-amount-wrap {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: var(--rb-cream);
    border-radius: 12px;
    border: 1px dashed var(--rb-border);
}

.rb-voucher-block:has(#amount_other:checked) .rb-custom-amount-wrap,
#voucherForm:has(#amount_other:checked) .rb-custom-amount-wrap {
    display: block;
    animation: rbFadeUp 0.3s ease;
}

.rb-voucher-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #999;
}

#voucherForm:has(#send_gift_later:checked) .rb-recipient-email-field {
    display: none !important;
}

/* ---- Inputs ---- */
.rb-voucher-input {
    border: 1.5px solid var(--rb-border) !important;
    border-radius: 12px !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    background: #fff !important;
}

.rb-voucher-input:focus {
    border-color: var(--rb-primary) !important;
    box-shadow: 0 0 0 4px var(--rb-primary-soft) !important;
    outline: none;
}

.rb-voucher-input::placeholder {
    color: #bbb;
}

/* ---- Actions ---- */
.rb-form-actions {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--rb-border);
}

.rb-preview-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    color: var(--rb-text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 12px;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.rb-preview-link:hover {
    color: var(--rb-primary);
}

.rb-voucher-pay-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 18px 28px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: var(--rb-primary);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    box-shadow: 0 10px 28px rgba(143, 20, 56, 0.22);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rb-voucher-pay-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.rb-voucher-pay-btn:hover:not(:disabled)::before {
    left: 100%;
}

.rb-voucher-pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--rb-primary-dark);
    box-shadow: 0 14px 32px rgba(143, 20, 56, 0.28);
}

.rb-voucher-pay-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rb-voucher-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    color: #aaa;
    font-size: 12px;
}

.rb-voucher-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.rb-voucher-note {
    text-align: center;
    color: #999;
    font-size: 12px;
    margin: 14px 0 0;
}

/* ---- Alerts ---- */
.rb-voucher-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
}

.rb-voucher-card__body > .rb-voucher-alert {
    margin-bottom: 20px;
}

.rb-voucher-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.rb-voucher-alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* ---- Features ---- */
.rb-voucher-features {
    margin-top: 48px !important;
}

.rb-voucher-feature {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: var(--rb-radius);
    border: 1px solid rgba(143, 20, 56, 0.08);
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rb-voucher-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--rb-shadow);
}

.rb-voucher-feature__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--rb-cream);
    color: #8a7d82;
    border: 1px solid var(--rb-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
    transition: color 0.25s, border-color 0.25s;
}

.rb-voucher-feature:hover .rb-voucher-feature__icon {
    color: var(--rb-primary);
    border-color: rgba(143, 20, 56, 0.2);
}

.rb-voucher-feature h4 {
    font-family: var(--headerFonts);
    font-size: 18px;
    margin-bottom: 8px;
}

.rb-voucher-feature p {
    color: var(--rb-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.65;
}

/* ---- Checkout page ---- */
.rb-checkout-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 420px;
    margin: 0 auto 40px;
}

.rb-checkout-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
}

.rb-checkout-progress__step.is-done,
.rb-checkout-progress__step.is-active {
    color: var(--rb-text);
}

.rb-checkout-progress__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--rb-cream-dark);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.rb-checkout-progress__step.is-done .rb-checkout-progress__dot {
    background: #fff;
    color: var(--rb-primary);
    border: 2px solid var(--rb-primary);
}

.rb-checkout-progress__step.is-active .rb-checkout-progress__dot {
    background: var(--rb-primary);
    color: #fff;
    border: 2px solid var(--rb-primary);
    box-shadow: 0 0 0 4px var(--rb-primary-soft);
}

.rb-checkout-progress__line {
    flex: 1;
    height: 2px;
    background: var(--rb-border);
    margin: 0 8px;
    margin-bottom: 24px;
    max-width: 80px;
}

.rb-checkout-progress__line.is-done {
    background: var(--rb-border);
}

.rb-checkout-secure-note {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border-radius: var(--rb-radius);
    border: 1px solid var(--rb-border);
    box-shadow: var(--rb-shadow-sm);
}

.rb-checkout-secure-note > i {
    font-size: 28px;
    color: #8a7d82;
    flex-shrink: 0;
}

.rb-checkout-secure-note strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.rb-checkout-secure-note p {
    margin: 0;
    font-size: 13px;
    color: var(--rb-text-muted);
    line-height: 1.5;
}

.rb-checkout-card .rb-voucher-card__body {
    padding: 32px 36px 36px;
}

.rb-checkout-details {
    border: 1px solid var(--rb-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
}

.rb-checkout-details__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f0ed;
    font-size: 14px;
}

.rb-checkout-details__row:last-child {
    border-bottom: none;
}

.rb-checkout-details__row span {
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rb-checkout-details__row span i {
    color: #9a8a8f;
    font-size: 16px;
}

.rb-checkout-details__row strong {
    color: var(--rb-text);
    text-align: right;
    font-weight: 600;
    word-break: break-word;
}

.rb-checkout-details__row--message strong {
    max-width: 65%;
    font-weight: 500;
    line-height: 1.5;
}

.rb-checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--rb-cream);
    border-radius: 14px;
    border: 1px solid var(--rb-border-light);
    margin-bottom: 24px;
}

.rb-checkout-total span {
    font-size: 15px;
    color: #666;
    font-weight: 600;
}

.rb-checkout-total strong {
    font-family: var(--headerFonts);
    color: var(--titleColor);
    font-size: 1.75rem;
}

.rb-checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--rb-text-muted);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.rb-checkout-back:hover {
    color: var(--rb-primary);
}

.rb-checkout-actions {
    padding: 0;
}

/* ---- Modal ---- */
.rb-voucher-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rb-voucher-modal.is-open {
    display: flex;
}

body.rb-voucher-modal-open {
    overflow: hidden;
}

.rb-voucher-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
}

.rb-voucher-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: var(--rb-radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
    z-index: 1;
    overflow: hidden;
}

.rb-voucher-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: #fff;
    color: var(--rb-text);
    border-bottom: 1px solid var(--rb-border-light);
}

.rb-voucher-modal__header h3 {
    margin: 0;
    font-size: 17px;
    font-family: var(--headerFonts);
    color: var(--titleColor);
}

.rb-voucher-modal__close {
    background: var(--rb-cream);
    border: 1px solid var(--rb-border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--rb-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.rb-voucher-modal__close:hover {
    border-color: var(--rb-primary-muted);
    color: var(--rb-primary);
}

.rb-voucher-modal__body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.rb-voucher-modal__footer {
    padding: 16px 28px;
    border-top: 1px solid #eee;
    text-align: right;
}

.rb-btn-outline {
    background: #fff;
    border: 2px solid var(--rb-border);
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s;
}

.rb-btn-outline:hover {
    border-color: var(--rb-primary);
    color: var(--rb-primary);
}

/* ---- Result pages ---- */
.rb-voucher-section--result {
    margin-top: 0;
    padding-bottom: 80px;
}

.rb-voucher-hero__badge--success {
    background: rgba(45, 106, 79, 0.12);
    color: #2d6a4f;
}

.rb-voucher-hero__badge--error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.rb-voucher-hero--error {
    background: linear-gradient(160deg, #fff 0%, #faf6f4 40%, #fdf2f2 100%);
}

.rb-checkout-progress--three {
    max-width: 560px;
    margin-bottom: 48px;
}

.rb-gift-preview--success {
    box-shadow: 0 24px 60px rgba(45, 106, 79, 0.18);
}

.rb-gift-preview__code {
    margin: 0 0 16px;
    padding: 12px 16px;
    background: var(--rb-cream);
    border-radius: 10px;
    border: 1px dashed var(--rb-border);
}

.rb-gift-preview__code span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}

.rb-gift-preview__code strong {
    font-family: var(--headerFonts);
    font-size: 16px;
    color: var(--titleColor);
}

.rb-voucher-result {
    padding: 100px 0;
    min-height: 60vh;
}

.rb-voucher-result-card {
    background: #fff;
    border-radius: var(--rb-radius-lg);
    padding: 40px 36px;
    text-align: center;
    box-shadow: var(--rb-shadow);
    border: 1px solid rgba(143, 20, 56, 0.08);
    height: 100%;
}

.rb-voucher-result-card__icon {
    font-size: 56px;
    margin-bottom: 12px;
    line-height: 1;
}

.rb-voucher-result-card--success .rb-voucher-result-card__icon {
    color: #8a7d82;
}

.rb-voucher-result-card--error .rb-voucher-result-card__icon {
    color: #dc2626;
}

.rb-voucher-result-card h2 {
    font-family: var(--headerFonts);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 10px;
    color: var(--titleColor);
}

.rb-voucher-result-card h1 {
    font-family: var(--headerFonts);
    font-size: 32px;
    margin-bottom: 12px;
}

.rb-voucher-result-card__lead {
    color: var(--rb-text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.rb-voucher-result-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    padding: 16px 18px;
    background: var(--rb-cream);
    border: 1px solid var(--rb-border-light);
    border-radius: 12px;
    margin-bottom: 24px;
}

.rb-voucher-result-note > i {
    font-size: 22px;
    color: #8a7d82;
    flex-shrink: 0;
    margin-top: 2px;
}

.rb-voucher-result-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #555;
}

.rb-voucher-result-details {
    background: var(--rb-cream);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 0 0 28px;
    text-align: left;
}

.rb-voucher-result-details div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(143, 20, 56, 0.1);
    font-size: 14px;
}

.rb-voucher-result-details div:last-child {
    border-bottom: none;
}

.rb-voucher-result-details span {
    color: #888;
}

.rb-voucher-result-details strong {
    color: var(--titleColor);
    text-align: right;
}

.rb-voucher-result-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-voucher-result-actions .rb-voucher-pay-btn {
    text-decoration: none;
}

.rb-voucher-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 14px;
    border: 1.5px solid var(--rb-border);
    background: #fff;
    color: var(--rb-text);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.rb-voucher-btn-secondary:hover {
    border-color: #cfc5c0;
    background: var(--rb-cream);
    color: var(--rb-text);
}

.rb-spin {
    animation: rbSpin 0.8s linear infinite;
    display: inline-block;
}

@keyframes rbSpin {
    to { transform: rotate(360deg); }
}

@keyframes rbFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .rb-voucher-sidebar {
        position: static;
    }

    .rb-gift-preview {
        transform: none;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .rb-voucher-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .rb-voucher-steps__item {
        flex: 0 0 auto;
        padding: 8px 12px;
    }

    .rb-voucher-steps__text {
        display: none;
    }
}

@media (max-width: 767px) {
    .rb-voucher-hero {
        padding: 60px 0 36px;
    }

    .rb-voucher-card__body {
        padding: 24px 20px;
    }

    .rb-voucher-card__header {
        padding: 24px 20px 20px;
    }

    .rb-voucher-card__header::before {
        left: 20px;
        right: 20px;
    }

    .rb-form-section__head {
        gap: 12px;
    }

    .rb-form-section__icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .rb-voucher-option {
        min-width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }

    .rb-voucher-option--wide {
        min-width: 100%;
        flex: 0 0 100%;
    }

    .rb-send-btn {
        padding: 14px 16px;
    }

    .rb-send-btn__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .rb-checkout-card .rb-voucher-card__body {
        padding: 24px 20px;
    }

    .rb-checkout-details__row {
        flex-direction: column;
        gap: 6px;
    }

    .rb-checkout-details__row strong,
    .rb-checkout-details__row--message strong {
        text-align: left;
        max-width: 100%;
    }

    .rb-checkout-total strong {
        font-size: 1.5rem;
    }

    .rb-voucher-hero__pills span {
        font-size: 12px;
        padding: 6px 12px;
    }

    .rb-voucher-result-card {
        padding: 28px 20px;
    }

    .rb-voucher-result-details div {
        flex-direction: column;
        gap: 4px;
    }

    .rb-voucher-result-details strong {
        text-align: left;
    }

    .rb-checkout-progress--three {
        max-width: 100%;
        gap: 0;
    }

    .rb-checkout-progress--three .rb-checkout-progress__step span:last-child {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .rb-voucher-option {
        min-width: calc(50% - 5px);
    }

    .rb-voucher-pay-btn {
        font-size: 15px;
        padding: 16px 20px;
    }
}
