/* ==========================================================================
   Booking Payments — Hotel Rooms Manager
   Paso 4: Selección de método · Paso 5: Stripe / PayPal / Transferencia
   ========================================================================== */

/* ── Selección de método de pago (Paso 4) ─────────────────────────────────── */
.hr-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.hr-payment-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid var(--hrw-border, #e2e8f0);
    border-radius: var(--hrw-radius-sm, 8px);
    background: var(--hrw-bg-card, #fff);
    cursor: pointer;
    transition: border-color .22s, box-shadow .22s, background .22s;
    user-select: none;
}
.hr-payment-method-card:hover {
    border-color: var(--hrw-primary, #2C7BE5);
}
.hr-payment-method-card.is-selected {
    border-color: var(--hrw-primary, #2C7BE5);
    background: rgba(44,123,229,.04);
    box-shadow: 0 0 0 3px rgba(44,123,229,.12);
}
.hr-payment-method-card input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--hrw-primary, #2C7BE5);
    flex-shrink: 0;
}
.hr-payment-method-info { flex: 1; }
.hr-payment-method-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--hrw-text, #1e293b);
    display: block;
}
.hr-payment-method-desc {
    font-size: 12px;
    color: var(--hrw-text-muted, #64748b);
    margin-top: 2px;
    display: block;
}
.hr-payment-method-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.hr-payment-method-logo i {
    font-size: 24px;
    color: var(--hrw-text-muted, #64748b);
}
.hr-payment-method-logo .hr-card-icons {
    display: flex;
    gap: 4px;
}
.hr-card-icon {
    width: 36px;
    height: 24px;
    border-radius: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    letter-spacing: -.3px;
}
.hr-card-icon.visa    { color: #1a1f71; }
.hr-card-icon.mc      { background: linear-gradient(135deg,#eb001b 50%,#f79e1b 50%); color: transparent; width:32px; }
.hr-card-icon.amex    { background: #007bc1; color: #fff; }

/* ── Paso 5: contenedor general ───────────────────────────────────────────── */
.hr-pay-panel {
    animation: hrwFadeIn .22s ease;
}

.hr-pay-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--hrw-text, #1e293b);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hr-pay-section-title i { font-size: 20px; color: var(--hrw-primary, #2C7BE5); }

.hr-pay-amount-badge {
    display: inline-block;
    background: var(--hrw-primary, #2C7BE5);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    letter-spacing: -.5px;
}

/* ── Stripe Elements ─────────────────────────────────────────────────────── */
#hr-stripe-card-element {
    border: 2px solid var(--hrw-border, #e2e8f0);
    border-radius: var(--hrw-radius-sm, 8px);
    padding: 14px 16px;
    background: var(--hrw-bg-card, #fff);
    transition: border-color .22s;
    margin-bottom: 10px;
    min-height: 46px;
}
#hr-stripe-card-element.StripeElement--focus {
    border-color: var(--hrw-primary, #2C7BE5);
    box-shadow: 0 0 0 3px rgba(44,123,229,.12);
}
#hr-stripe-card-errors {
    color: #b91c1c;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hr-stripe-secure-note {
    font-size: 12px;
    color: var(--hrw-text-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

#hr-stripe-pay-btn {
    width: 100%;
    padding: 13px;
    border-radius: var(--hrw-radius-sm, 8px);
    border: none;
    background: #635bff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .22s, box-shadow .22s;
    letter-spacing: -.2px;
}
#hr-stripe-pay-btn:hover:not(:disabled) {
    background: #4f46e5;
    box-shadow: 0 4px 14px rgba(99,91,255,.38);
}
#hr-stripe-pay-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ── PayPal ──────────────────────────────────────────────────────────────── */
#hr-paypal-button-container {
    min-height: 52px;
    margin: 12px 0;
}
.hr-paypal-loading {
    text-align: center;
    padding: 20px;
    color: var(--hrw-text-muted, #64748b);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ── Transferencia bancaria ───────────────────────────────────────────────── */
.hr-bank-card {
    background: var(--hrw-bg, #f8fafc);
    border: 1px solid var(--hrw-border, #e2e8f0);
    border-radius: var(--hrw-radius-sm, 8px);
    padding: 16px;
    margin-bottom: 16px;
}
.hr-bank-card-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--hrw-text-muted, #64748b);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hr-bank-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px dashed var(--hrw-border, #e2e8f0);
    font-size: 14px;
    gap: 12px;
}
.hr-bank-row:last-child { border-bottom: none; }
.hr-bank-label { color: var(--hrw-text-muted, #64748b); flex-shrink: 0; }
.hr-bank-value {
    font-weight: 600;
    color: var(--hrw-text, #1e293b);
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hr-copy-btn {
    background: none;
    border: 1px solid var(--hrw-border, #e2e8f0);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 11px;
    color: var(--hrw-text-muted, #64748b);
    transition: background .15s, color .15s;
}
.hr-copy-btn:hover { background: var(--hrw-primary, #2C7BE5); color: #fff; border-color: var(--hrw-primary, #2C7BE5); }

/* Subida de comprobante */
.hr-receipt-upload {
    border: 2px dashed var(--hrw-border, #e2e8f0);
    border-radius: var(--hrw-radius-sm, 8px);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
    transition: border-color .22s;
    cursor: pointer;
    position: relative;
}
.hr-receipt-upload:hover,
.hr-receipt-upload.drag-over {
    border-color: var(--hrw-primary, #2C7BE5);
    background: rgba(44,123,229,.03);
}
.hr-receipt-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.hr-receipt-upload-icon {
    font-size: 32px;
    color: var(--hrw-text-muted, #64748b);
    margin-bottom: 8px;
    display: block;
}
.hr-receipt-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--hrw-text, #1e293b);
}
.hr-receipt-upload-hint {
    font-size: 12px;
    color: var(--hrw-text-muted, #64748b);
    margin-top: 4px;
    display: block;
}
.hr-receipt-preview {
    margin-top: 10px;
    display: none;
}
.hr-receipt-preview img { max-width: 100%; max-height: 180px; border-radius: 6px; }
.hr-receipt-status {
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}
.hr-receipt-status.success { color: #15803d; }
.hr-receipt-status.error   { color: #b91c1c; }

#hr-upload-receipt-btn {
    width: 100%;
    padding: 11px;
    border-radius: var(--hrw-radius-sm, 8px);
    border: none;
    background: var(--hrw-primary, #2C7BE5);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 10px;
    transition: background .22s;
}
#hr-upload-receipt-btn:hover:not(:disabled) { background: var(--hrw-primary-dark, #1a5fba); }
#hr-upload-receipt-btn:disabled { opacity: .65; cursor: not-allowed; }

/* Divisor "o" entre upload y WhatsApp */
.hr-or-divider {
    text-align: center;
    position: relative;
    margin: 14px 0;
    color: var(--hrw-text-muted, #64748b);
    font-size: 13px;
}
.hr-or-divider::before,
.hr-or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: var(--hrw-border, #e2e8f0);
}
.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: 8px;
    padding: 11px 20px;
    border-radius: var(--hrw-radius-sm, 8px);
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: background .22s;
}
.hr-wa-receipt-btn:hover { background: #1da856; }

#hr-transfer-confirm-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--hrw-radius-sm, 8px);
    border: 2px solid var(--hrw-primary, #2C7BE5);
    background: transparent;
    color: var(--hrw-primary, #2C7BE5);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .22s, color .22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
#hr-transfer-confirm-btn:hover:not(:disabled) {
    background: var(--hrw-primary, #2C7BE5);
    color: #fff;
}
#hr-transfer-confirm-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .hr-payment-method-card { padding: 12px 14px; }
    .hr-bank-row { flex-direction: column; align-items: flex-start; gap: 2px; }
    .hr-bank-value { text-align: left; }
}
