/* ==========================================================================
   Booking Wizard — Hotel Rooms Manager
   Wizard de reserva: Fechas · Extras · Datos · Confirmar (· Pago)
   ========================================================================== */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --hrw-primary:      var(--hr-primary-500, #978667);
    --hrw-primary-dark: var(--hr-primary-600, #85755c);
    --hrw-accent:       #978667;
    --hrw-success:      #16a34a;
    --hrw-text:         #111;
    --hrw-text-muted:   #888;
    --hrw-border:       #e5e5e5;
    --hrw-bg:           #fafafa;
    --hrw-bg-card:      #ffffff;
    --hrw-radius:       8px;
    --hrw-radius-sm:    6px;
    --hrw-transition:   .22s ease;
}

/* ── Contenedor principal ─────────────────────────────────────────────────── */
.hr-wizard {
    background: var(--hrw-bg-card);
    border-radius: var(--hrw-radius);
    padding: 28px 28px 24px;
    max-width: 1500px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.hr-wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    gap: 0;
}

.hr-wiz-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
    flex: 1;
    max-width: 90px;
}

.hr-wiz-step-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eee;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .84rem;
    transition: background var(--hrw-transition), color var(--hrw-transition);
    position: relative;
    z-index: 1;
}

.hr-wiz-step-label {
    font-size: .7rem;
    color: var(--hrw-text-muted);
    font-weight: 500;
    text-align: center;
    transition: color var(--hrw-transition);
    white-space: nowrap;
}

.hr-wiz-step-divider {
    flex: 1;
    height: 2px;
    background: #eee;
    margin-bottom: 20px;
    transition: background var(--hrw-transition);
}

/* Active */
.hr-wiz-step.is-active .hr-wiz-step-num {
    background: var(--hrw-primary);
    color: #fff;
}
.hr-wiz-step.is-active .hr-wiz-step-label {
    color: var(--hrw-primary);
    font-weight: 700;
}

/* Done */
.hr-wiz-step.is-done .hr-wiz-step-num {
    background: var(--hrw-success);
    color: #fff;
}
.hr-wiz-step.is-done .hr-wiz-step-label {
    color: var(--hrw-success);
}
.hr-wiz-step.is-done + .hr-wiz-step-divider {
    background: var(--hrw-success);
}

/* ── Panels ───────────────────────────────────────────────────────────────── */
.hr-wizard-panel {
    display: none;
    animation: hrwFadeIn .2s ease;
}
.hr-wizard-panel.is-active {
    display: block;
}

@keyframes hrwFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.hr-wiz-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hrw-text);
    margin: 0 0 4px;
}
.hr-wiz-panel-subtitle {
    font-size: .8rem;
    color: var(--hrw-text-muted);
    margin: 0 0 18px;
}

/* ── Status messages ─────────────────────────────────────────────────────── */
.hr-booking-message {
    padding: 10px 14px;
    border-radius: var(--hrw-radius-sm);
    font-size: .84rem;
    margin-bottom: 14px;
    display: none;
}
.hr-booking-message.hr-msg-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.hr-booking-message.hr-msg-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Form sections ───────────────────────────────────────────────────────── */
.hr-form-section { margin-bottom: 18px; }

.hr-form-section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--hrw-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

/* ── Price preview (step 1) ──────────────────────────────────────────────── */
.hr-wiz-price-preview {
    background: var(--hrw-bg);
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    padding: 12px 16px;
    margin-top: 12px;
}
.hr-wiz-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
}
.hr-wiz-price-nights { color: var(--hrw-text-muted); }
.hr-wiz-price-amount {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hrw-text);
}
.hr-wiz-checkin-notice {
    font-size: .75rem;
    color: var(--hrw-text-muted);
    margin: 6px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Extras grid (step 2) ────────────────────────────────────────────────── */
.hr-extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
    min-height: 60px;
}

.hr-extra-card {
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    padding: 14px;
    background: var(--hrw-bg-card);
    transition: border-color var(--hrw-transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}
.hr-extra-card:hover {
    border-color: #ccc;
}
.hr-extra-card.is-selected {
    border-color: var(--hrw-primary);
    background: #fafafa;
}

.hr-extra-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hr-extra-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hr-extra-icon i {
    font-size: 18px;
    color: #555;
}
.hr-extra-info { flex: 1; min-width: 0; }
.hr-extra-name {
    font-weight: 600;
    font-size: .84rem;
    color: var(--hrw-text);
    line-height: 1.2;
}
.hr-extra-desc {
    font-size: .75rem;
    color: var(--hrw-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hr-extra-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}
.hr-extra-price {
    font-weight: 700;
    font-size: .9rem;
    color: var(--hrw-text);
}
.hr-extra-price-unit {
    font-size: .7rem;
    color: var(--hrw-text-muted);
    font-weight: 400;
}

/* Stepper +/- */
.hr-qty-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--hrw-transition);
}
.hr-extra-card.is-selected .hr-qty-stepper {
    opacity: 1;
    pointer-events: auto;
}

.hr-qty-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50% !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background var(--hrw-transition), color var(--hrw-transition) !important;
    padding: 0 !important;
}
.hr-qty-btn:hover {
    background: #f0f0f0 !important;
    color: #111 !important;
}
.hr-qty-val {
    font-weight: 700;
    font-size: .88rem;
    min-width: 20px;
    text-align: center;
    color: var(--hrw-text);
}

/* Loading / empty */
.hr-extras-loading,
.hr-extras-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: var(--hrw-text-muted);
    font-size: .84rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Extras total */
.hr-extras-total {
    background: var(--hrw-bg);
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .84rem;
    color: var(--hrw-text-muted);
}
.hr-extras-total strong {
    font-size: 1rem;
    color: var(--hrw-text);
}

/* ── Summary (step 4) ───────────────────────────────────────────────────── */
.hr-summary {
    background: var(--hrw-bg);
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
}
.hr-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 16px;
    font-size: .84rem;
    border-bottom: 1px solid var(--hrw-border);
    gap: 12px;
}
.hr-summary-row:last-child { border-bottom: none; }
.hr-summary-label { color: var(--hrw-text-muted); flex-shrink: 0; }
.hr-summary-value {
    font-weight: 600;
    color: var(--hrw-text);
    text-align: right;
}
.hr-summary-row.hr-summary-total {
    background: var(--hrw-primary);
    padding: 12px 16px;
}
.hr-summary-row.hr-summary-total .hr-summary-label,
.hr-summary-row.hr-summary-total .hr-summary-value {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.hr-summary-extras-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.hr-summary-extras-list li {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    padding: 3px 0;
    color: var(--hrw-text);
}
.hr-summary-extras-list li span:last-child { color: var(--hrw-text-muted); }

/* ── Wizard footer (nav buttons) ─────────────────────────────────────────── */
.hr-wizard-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.hr-wiz-btn-prev {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 9px 16px !important;
    border-radius: var(--hrw-radius-sm) !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #555 !important;
    font-size: .84rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: border-color var(--hrw-transition), color var(--hrw-transition) !important;
    text-decoration: none !important;
}
.hr-wiz-btn-prev:hover {
    border-color: #999 !important;
    color: #111 !important;
}

.hr-wiz-btn-next {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 9px 20px !important;
    border-radius: var(--hrw-radius-sm) !important;
    border: none !important;
    background: var(--hrw-primary) !important;
    color: #fff !important;
    font-size: .84rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background var(--hrw-transition) !important;
    margin-left: auto !important;
}
.hr-wiz-btn-next:hover {
    background: var(--hrw-primary-dark) !important;
}

/* Submit (step 4) */
.hr-wizard .hr-submit-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--hrw-radius-sm);
    border: none;
    background: var(--hrw-primary);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--hrw-transition);
}
.hr-wizard .hr-submit-btn:hover:not(:disabled) {
    background: var(--hrw-primary-dark);
}
.hr-wizard .hr-submit-btn:disabled { opacity: .55; cursor: not-allowed; }

/* WhatsApp */
.hr-wizard .hr-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--hrw-radius-sm);
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    transition: background var(--hrw-transition);
}
.hr-wizard .hr-whatsapp-btn:hover { background: #1da856; }

/* Policy note (legacy) */
.hr-policy-note {
    font-size: .75rem;
    color: var(--hrw-text-muted);
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.5;
}

/* ── Política de cancelación ─────────────────────────────────────────────── */
.hr-cancellation-policy {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid var(--hrw-border);
    border-left: 4px solid var(--hrw-accent);
    border-radius: var(--hrw-radius-sm);
    font-size: .82rem;
}
.hr-policy-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
    color: var(--hrw-text);
}
.hr-policy-header i { font-size: 16px; color: var(--hrw-accent); }
.hr-policy-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.hr-policy-flexible { background: #dcfce7; color: #15803d; }
.hr-policy-moderate { background: #fef9c3; color: #854d0e; }
.hr-policy-strict   { background: #fee2e2; color: #991b1b; }
.hr-policy-desc {
    margin: 0;
    color: var(--hrw-text-muted);
    line-height: 1.5;
}
.hr-policy-deadline {
    margin: 6px 0 0;
    font-weight: 600;
    line-height: 1.5;
}
.hr-policy-deadline.is-refundable   { color: #15803d; }
.hr-policy-deadline.is-no-refund    { color: #b91c1c; }

/* ── Success confirmation ────────────────────────────────────────────────── */
.hr-wiz-success {
    text-align: center;
    padding: 32px 20px;
}
.hr-wiz-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--hrw-success);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.hr-wiz-success h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hrw-text);
    margin: 0 0 6px;
}
.hr-wiz-success p {
    font-size: .84rem;
    color: var(--hrw-text-muted);
    margin: 0 0 6px;
}
.hr-wiz-booking-id {
    display: inline-block;
    background: var(--hrw-bg);
    border: 1px solid var(--hrw-border);
    border-radius: 4px;
    padding: 5px 12px;
    font-family: monospace;
    font-size: .88rem;
    color: var(--hrw-text);
    margin-top: 8px;
}

/* ── Coupon ──────────────────────────────────────────────────────────────── */
.hr-coupon-row { margin-top: 8px; }

.hr-coupon-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hr-coupon-input-wrap input[type="text"] {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: var(--hrw-radius-sm);
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .04em;
    background: #fff;
    transition: border-color .2s;
}
.hr-coupon-input-wrap input[type="text"]:focus {
    outline: none;
    border-color: #999;
}

.hr-coupon-apply-btn {
    padding: 9px 16px !important;
    background: var(--hrw-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--hrw-radius-sm) !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    transition: background .2s !important;
}

.margin-descuento,
.margin-tipo-pago,
.margin-metod-pago {
    margin: 24px 0;
}

.hr-coupon-apply-btn:hover { background: var(--hrw-primary-dark) !important; }
.hr-coupon-apply-btn:disabled { opacity: .5; cursor: default; }

#hr-coupon-feedback.is-success { color: #166534; }
#hr-coupon-feedback.is-error   { color: #991b1b; }

.hr-coupon-applied-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 600;
    margin-top: 6px;
}
.hr-coupon-applied-tag button {
    background: none;
    border: none;
    color: #166534;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    font-size: 15px;
    opacity: .7;
}
.hr-coupon-applied-tag button:hover { opacity: 1; }

/* ── Deposit / partial payment ──────────────────────────────────────────── */
.hr-deposit-options {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.hr-deposit-card {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    cursor: pointer;
    transition: border-color .2s;
    background: #fff;
}
.hr-deposit-card input[type="radio"] { display: none; }
.hr-deposit-card.is-selected {
    border-color: var(--hrw-primary);
    background: #fafafa;
}
.hr-deposit-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hr-deposit-card-title {
    font-size: .84rem;
    font-weight: 700;
    color: var(--hrw-text);
}
.hr-deposit-card-desc {
    font-size: .75rem;
    color: var(--hrw-text-muted);
}
.hr-deposit-card-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hrw-text);
    white-space: nowrap;
}

/* ── Discount / deposit summary rows ─────────────────────────────────────── */
.hr-summary-row.is-discount .hr-summary-value { color: #166534; }
.hr-summary-row.is-deposit-note {
    background: #fafafa;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: .75rem;
    color: #555;
}

/* ── Payment method cards ────────────────────────────────────────────────── */
.hr-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hr-payment-method-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    cursor: pointer;
    transition: border-color .2s;
    background: #fff;
}
.hr-payment-method-card:hover {
    border-color: #ccc;
}
.hr-payment-method-card input[type="radio"] { display: none; }
.hr-payment-method-card:has(input:checked) {
    border-color: var(--hrw-primary);
    background: #fafafa;
}
.hr-payment-method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hr-payment-method-name {
    font-size: .84rem;
    font-weight: 600;
    color: var(--hrw-text);
}
.hr-payment-method-desc {
    font-size: .75rem;
    color: var(--hrw-text-muted);
}
.hr-payment-method-logo {
    flex-shrink: 0;
}

.hr-card-icons {
    display: flex;
    gap: 4px;
}
.hr-card-icon {
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ddd;
    color: #555;
}

/* ── Payment panels (step 5) ─────────────────────────────────────────────── */
.hr-pay-panel {
    margin-bottom: 16px;
}

.hr-pay-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--hrw-text);
    margin: 0 0 12px;
}

#hr-stripe-card-element {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--hrw-radius-sm);
    background: #fff;
    margin-bottom: 8px;
}

#hr-stripe-card-errors {
    color: #991b1b;
    font-size: .78rem;
    min-height: 18px;
    margin-bottom: 8px;
}

.hr-stripe-secure-note {
    font-size: .72rem;
    color: var(--hrw-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

/* MercadoPago button */
.hr-mp-pay-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: #009ee3 !important;
    color: #fff !important;
    font-size: .9rem !important;
    font-weight: 700 !important;
    border-radius: var(--hrw-radius-sm, 8px) !important;
    text-decoration: none !important;
    transition: background .15s !important;
    cursor: pointer !important;
}
.hr-mp-pay-btn:hover {
    background: #007bbf !important;
    color: #fff !important;
}

#hr-stripe-pay-btn,
#hr-upload-receipt-btn,
#hr-transfer-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--hrw-radius-sm);
    border: none;
    background: var(--hrw-primary);
    color: #fff;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--hrw-transition);
    width: 100%;
    justify-content: center;
}

#hr-stripe-pay-btn:hover,
#hr-upload-receipt-btn:hover,
#hr-transfer-confirm-btn:hover {
    background: var(--hrw-primary-dark);
}

#hr-upload-receipt-btn:disabled,
#hr-stripe-pay-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.hr-transfer-primary,
.hr-transfer-alt {
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    padding: 16px;
}

.hr-transfer-primary {
    margin-top: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hr-transfer-alt {
    background: #fcfcfc;
    margin-bottom: 10px;
}

.hr-transfer-choice-title {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hr-transfer-choice-note {
    margin: 0 0 12px;
    font-size: .82rem;
    line-height: 1.55;
    color: #64748b;
}

.hr-transfer-choice-note-alt {
    margin-bottom: 10px;
}

/* Bank details card */
.hr-bank-card {
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
    overflow: hidden;
    background: var(--hrw-bg);
}

/* Receipt upload */
.hr-receipt-upload {
    border: 2px dashed #ddd;
    border-radius: var(--hrw-radius-sm);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    position: relative;
    margin-bottom: 10px;
}
.hr-receipt-upload:hover {
    border-color: #bbb;
    background: #fafafa;
}
.hr-receipt-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.hr-receipt-upload-icon {
    font-size: 32px;
    color: #ccc;
    display: block;
    margin-bottom: 6px;
}
.hr-receipt-upload-text {
    display: block;
    font-size: .84rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.hr-receipt-upload-hint {
    display: block;
    font-size: .72rem;
    color: #aaa;
}

.hr-receipt-preview {
    margin-bottom: 8px;
}
.hr-receipt-status {
    font-size: .78rem;
    min-height: 18px;
    margin-bottom: 8px;
}

.hr-or-divider {
    text-align: center;
    color: #94a3b8;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 14px 0;
    position: relative;
}
.hr-or-divider::before,
.hr-or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #eee;
}
.hr-or-divider::before { left: 0; }
.hr-or-divider::after  { right: 0; }

.hr-wa-receipt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--hrw-radius-sm);
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #15803d;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
    transition: background .2s, border-color .2s, color .2s;
}
.hr-wa-receipt-btn:hover {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
}

#hr-pay-amount-display {
    font-size: .88rem;
    font-weight: 600;
    color: var(--hrw-text);
}

.hr-paypal-loading {
    text-align: center;
    padding: 20px;
    color: var(--hrw-text-muted);
    font-size: .84rem;
}

.hr-pay-method-required {
    font-size: .8rem;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* ── Terms & Conditions ─────────────────────────────────────────────────── */
.hr-terms-row {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--hrw-bg);
    border: 1px solid var(--hrw-border);
    border-radius: var(--hrw-radius-sm);
}
.hr-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .82rem;
    color: var(--hrw-text);
    cursor: pointer;
    line-height: 1.5;
}
.hr-terms-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--hrw-primary);
}
.hr-terms-label a {
    color: var(--hrw-accent);
    text-decoration: underline;
}
.hr-terms-label a:hover { color: var(--hrw-primary); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

/* Tablet / large phone */
@media (max-width: 600px) {
    .hr-payment-method-card {
        flex-wrap: wrap;
        row-gap: 6px;
    }
    .hr-deposit-card { min-width: 140px; }
}

/* Small phone */
@media (max-width: 540px) {
    .hr-wizard { padding: 18px 14px 16px; }
    .hr-wiz-step-label { display: none; }
    .hr-wiz-step-num { width: 28px; height: 28px; font-size: .78rem; }
    .hr-extras-grid { grid-template-columns: 1fr; }
    .hr-wizard-footer { flex-direction: column-reverse; }
    .hr-wiz-btn-next,
    .hr-wizard .hr-submit-btn,
    .hr-wiz-btn-prev { width: 100% !important; justify-content: center !important; margin-left: 0 !important; }
    .hr-deposit-options { flex-direction: column; }

    /* Enlarge touch targets for +/- steppers */
    .hr-qty-btn {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 18px !important;
    }
    .hr-transfer-primary,
    .hr-transfer-alt {
        padding: 14px;
    }
}

/* Very small phone (< 360px) */
@media (max-width: 360px) {
    .hr-wiz-step { max-width: none; }
    .hr-wiz-step-num { width: 24px; height: 24px; font-size: .72rem; }
    .hr-wiz-step-divider { margin-bottom: 12px; }
    .hr-wizard { padding: 14px 10px 12px; }
    .hr-summary-row { padding: 8px 12px; }
    .hr-extra-card { padding: 10px; }
    .hr-extra-desc { display: none; } /* avoid overflow on extremely narrow screens */
}

/* ── Términos y Condiciones Modal ─────────────────────────────────────── */
.hr-terms-modal-link {
    color: #978667;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}
.hr-terms-modal-link:hover { color: #7a6c53; }

.hr-terms-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.hr-terms-modal-overlay[style*="display: flex"] { display: flex !important; }

.hr-terms-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0,0,0,.18);
    animation: hrTermsFadeIn .2s ease;
}
@keyframes hrTermsFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hr-terms-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e5e5;
}
.hr-terms-modal__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #222;
}
.hr-terms-modal__close {
    background: #978667 !important;
    border: none !important;
    font-size: 24px !important;
    color: #e5e5e5 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    line-height: 1 !important;
}
.hr-terms-modal__close:hover { 
    background: #f5f5f5; 
    color: #333 !important; 
}

.hr-terms-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}
.hr-terms-modal__body h2,
.hr-terms-modal__body h3 { color: #222; margin-top: 16px; margin-bottom: 8px; }
.hr-terms-modal__body p  { margin-bottom: 12px; }
.hr-terms-modal__body ul,
.hr-terms-modal__body ol { margin-bottom: 12px; padding-left: 20px; }
.hr-terms-modal__body li { margin-bottom: 4px; }

.hr-terms-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
}
.hr-terms-modal__accept {
    padding: 10px 28px !important;
    background: #978667 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background .15s !important;
}
.hr-terms-modal__accept:hover { 
    background: #7a6c53 !important; 
    color: #fff !important;
}

@media (max-width: 600px) {
    .hr-terms-modal { max-height: 92vh; border-radius: 8px; }
    .hr-terms-modal__header { padding: 16px 18px 12px; }
    .hr-terms-modal__body { padding: 18px; }
    .hr-terms-modal__footer { padding: 12px 18px; }
}
