/* ==========================================================================
   Nave for WooCommerce — QR Payment Page
   ========================================================================== */

.nave-qr-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 40px 16px 60px;
    background: #F9FAFB;
}

.nave-qr-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.nave-qr-logo {
    height: 28px;
    width: auto;
    display: block;
    margin: 0 auto 14px;
}

.nave-qr-title {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 6px;
    line-height: 1.3;
}

.nave-qr-amount {
    font-size: 30px;
    font-weight: 800;
    color: #7B2FBE;
    margin: 0 0 28px;
}

/* QR section */
.nave-qr-instruction {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 18px;
    line-height: 1.5;
}

.nave-qr-canvas-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 2px solid #D4AAFF;
    border-radius: 14px;
    background: #ffffff;
    margin-bottom: 16px;
}

/* Ensure qrcodejs output fits the container */
.nave-qr-canvas-wrap #nave-qr-canvas canvas,
.nave-qr-canvas-wrap #nave-qr-canvas img {
    display: block;
    border-radius: 4px;
}

/* Overlay (approved / failed / expired) */
.nave-qr-overlay {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.nave-qr-overlay--approved { background: rgba(240, 253, 244, 0.97); }
.nave-qr-overlay--failed   { background: rgba(254, 242, 242, 0.97); }
.nave-qr-overlay--expired  { background: rgba(255, 251, 235, 0.97); }

.nave-qr-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.nave-qr-overlay-inner p {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    text-align: center;
}

/* Countdown */
.nave-qr-timer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #9CA3AF;
    margin-bottom: 12px;
}

.nave-qr-timer strong {
    color: #4B5563;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Status text */
.nave-qr-status {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 20px;
}

/* Divider */
.nave-qr-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 20px;
    color: #D1D5DB;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nave-qr-divider::before,
.nave-qr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

/* Redirect section */
.nave-qr-redirect-text {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* Buttons */
.nave-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    background: #7B2FBE;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 10px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
    line-height: 1;
}

.nave-btn-primary:hover {
    background: #6b26a8;
}

.nave-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #F3F4F6;
    color: #374151 !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.15s ease;
    line-height: 1;
}

.nave-btn-secondary:hover {
    background: #E5E7EB;
}

/* Security badge */
.nave-qr-security {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 22px;
}

/* Responsive */
@media ( max-width: 480px ) {
    .nave-qr-card {
        padding: 24px 18px 22px;
    }

    .nave-qr-canvas-wrap {
        padding: 12px;
    }
}
