/* ── Airpay Modal Overlay ── */
.airpay-modal {
    display: flex;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.airpay-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 370px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* ── Header ── */
.airpay-header {
    background: linear-gradient(160deg, #0d47a1 0%, #1565c0 45%, #1e88e5 100%);
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.airpay-close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.airpay-logo-box {
    background: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px 0;
    margin-bottom: 12px;
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.airpay-logo-img {
    width: 160px;
    height: auto;
    object-fit: contain;
    
    display: block;
}

.airpay-logo-divider {
    width: 80%;
    height: 0.8px;
    background: rgba(255,255,255,0.35);
    margin: 8px auto 6px;
}

.airpay-logo-sub {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
    display: block;
}

.airpay-secure-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ── Body ── */
.airpay-body {
    padding: 18px;
    background: #fff;
}

.airpay-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-align: center;
    margin: 0 0 14px;
}

/* ── QR Box ── */
.airpay-qr-box {
    background: #fff;
    border-radius: 14px;
    padding: 14px 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 0.5px solid #e0e0e0;
    position: relative;
}

.airpay-corner {
    position: absolute;
    width: 16px; height: 16px;
    border-color: #1565c0;
    border-style: solid;
    border-width: 0;
}
.airpay-corner.tl { top: 7px; left: 7px; border-top-width: 3px; border-left-width: 3px; border-radius: 4px 0 0 0; }
.airpay-corner.tr { top: 7px; right: 7px; border-top-width: 3px; border-right-width: 3px; border-radius: 0 4px 0 0; }
.airpay-corner.bl { bottom: 7px; left: 7px; border-bottom-width: 3px; border-left-width: 3px; border-radius: 0 0 0 4px; }
.airpay-corner.br { bottom: 7px; right: 7px; border-bottom-width: 3px; border-right-width: 3px; border-radius: 0 0 4px 0; }

/* ── UPI Apps ── */
.airpay-divider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.airpay-line { flex: 1; height: 0.5px; background: #ddd; }
.airpay-divider-text { font-size: 10px; color: #aaa; white-space: nowrap; }

.airpay-upi-apps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    padding: 2px 0 4px;
}

.airpay-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.airpay-app-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

.airpay-app-label {
    font-size: 9px;
    color: #888;
    font-weight: 500;
}

/* ── Amount ── */
.airpay-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e3f2fd;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0;
    border: 0.5px solid #90caf9;
}
.airpay-amount-label { font-size: 12px; color: #1565c0; }
.airpay-amount-value { font-size: 18px; font-weight: 700; color: #0d47a1; }

/* ── Buttons ── */
.airpay-pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.airpay-utr-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
}
.airpay-utr-input:focus { border-color: #1565c0; }

.airpay-utr-submit {
    width: 100%;
    background: #1d9e75;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* ── Checking status note ── */
.airpay-checking-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #eef6ff;
    border: 1px solid #cfe4fb;
    border-radius: 10px;
    padding: 8px 10px;
    margin: 10px 0 2px;
    font-size: 11.5px;
    color: #1565c0;
    text-align: center;
    line-height: 1.4;
}
.airpay-spinner {
    width: 12px; height: 12px;
    border: 2px solid #bcdcfb;
    border-top-color: #1565c0;
    border-radius: 50%;
    flex-shrink: 0;
    animation: airpay-spin 0.8s linear infinite;
}
@keyframes airpay-spin {
    to { transform: rotate(360deg); }
}

/* ── Order-cancel confirmation popup ── */
.airpay-confirm-overlay {
    display: flex;
    position: fixed;
    z-index: 100000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.airpay-confirm-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 320px;
    padding: 22px 20px 18px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
.airpay-confirm-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.airpay-confirm-text {
    font-size: 12.5px;
    color: #777;
    line-height: 1.5;
    margin: 0 0 18px;
}
.airpay-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.airpay-confirm-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.airpay-confirm-no {
    background: #1565c0;
    color: #fff;
}
.airpay-confirm-yes {
    background: #f5f5f5;
    color: #b71c1c;
    border: 1px solid #eecccc;
}

/* ── Expired / Failed message ── */
.airpay-expired-msg {
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 12px 0 4px;
}
.airpay-expired-msg p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7a4a00;
    text-align: center;
}

/* ── Footer ── */
.airpay-note {
    font-size: 11px;
    color: #999;
    text-align: center;
    margin: 10px 0 4px;
}

.airpay-ssl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    color: #aaa;
}

/* App icon buttons */
.airpay-app-btn {
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    transition: opacity 0.15s;
}
.airpay-app-btn:hover { opacity: 0.85; }
.airpay-app-btn:active { opacity: 0.7; transform: scale(0.95); }
