/* ═══════════════════════════════════════════════════════════
   Aboze.in — Vibrant Festive Theme
   Palette: Magenta + Marigold Orange + Peacock Teal
   ═══════════════════════════════════════════════════════════ */

/* ── Airpay Modal Overlay ── */
.airpay-modal {
    display: flex;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(70, 10, 45, 0.6);
    align-items: flex-start;
    justify-content: center;
    padding: 24px 14px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.airpay-modal-content {
    background: #fffdfb;
    border-radius: 28px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(140, 20, 80, 0.32);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border: 1px solid #f7dfe8;
    margin: auto 0;
}

/* ── Header (festive sunset gradient) ── */
.airpay-header {
    background: linear-gradient(120deg, #d6336c 0%, #f0577a 35%, #f77737 70%, #ffb300 100%);
    padding: 26px 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.28);
    border: 1px solid rgba(255,255,255,0.5);
    color: #ffffff;
    width: 30px; height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}
.airpay-close:hover { background: rgba(255,255,255,0.45); }

.airpay-logo-box {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 14px 0;
    margin-bottom: 12px;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(140,20,80,0.28);
}

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

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

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

.airpay-subtitle {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #b31359;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: 0.2px;
}

/* ── QR Box (festive confetti corners) ── */
.airpay-qr-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 18px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 2px solid #fbe4ec;
    position: relative;
}

/* Multi-color confetti dot corners — festive touch */
.airpay-corner {
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
}
.airpay-corner.tl { top: -5px;  left: -5px;  background: #d6336c; }
.airpay-corner.tr { top: -5px;  right: -5px; background: #ffb300; }
.airpay-corner.bl { bottom: -5px; left: -5px;  background: #00838f; }
.airpay-corner.br { bottom: -5px; right: -5px; background: #f77737; }

/* ── UPI Apps ── */
.airpay-divider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.airpay-line { flex: 1; height: 1px; background: #f7dfe8; }
.airpay-divider-text { font-size: 10.5px; color: #c25a86; white-space: nowrap; letter-spacing: 0.3px; }

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

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

.airpay-app-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 9px rgba(140,20,80,0.20);
}

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

/* ── Amount ── */
.airpay-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff1e6;
    border-radius: 16px;
    padding: 11px 16px;
    margin: 14px 0;
    border: 1px solid #ffe0c2;
}
.airpay-amount-label { font-size: 12px; color: #c9772f; font-weight: 600; }
.airpay-amount-value { font-family: 'Baloo 2', cursive, sans-serif; font-size: 20px; font-weight: 700; color: #d6336c; }

/* ── Buttons (bubbly pill, gradient) ── */
.airpay-pay-btn {
    width: 100%;
    background: linear-gradient(120deg, #d6336c, #f77737);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
    font-family: 'Baloo 2', cursive, sans-serif;
}
.airpay-pay-btn:hover { background: linear-gradient(120deg, #b31359, #e0611c); }

.airpay-utr-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #f7dfe8;
    border-radius: 999px;
    font-size: 16px; /* 16px so iOS Safari doesn't auto-zoom on focus */
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
    background: #fffaf7;
    color: #4a1a2e;
    text-align: center;
}
.airpay-utr-input:focus { border-color: #d6336c; box-shadow: 0 0 0 3px rgba(214,51,108,0.15); }

.airpay-utr-submit {
    width: 100%;
    background: #00838f;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Baloo 2', cursive, sans-serif;
}
.airpay-utr-submit:hover { background: #006a75; }

/* ── Checking status note ── */
.airpay-checking-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff1e6;
    border: 1px solid #ffe0c2;
    border-radius: 14px;
    padding: 9px 10px;
    margin: 10px 0 2px;
    font-size: 11.5px;
    color: #b3591f;
    text-align: center;
    line-height: 1.4;
}
.airpay-spinner {
    width: 12px; height: 12px;
    border: 2px solid #ffe0c2;
    border-top-color: #d6336c;
    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(70, 10, 45, 0.62);
    align-items: flex-start;
    justify-content: center;
    padding: 24px 14px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.airpay-confirm-box {
    background: #fffdfb;
    border-radius: 24px;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px 18px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(140,20,80,0.35);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border: 1px solid #f7dfe8;
    margin: auto 0;
}
.airpay-confirm-title {
    font-family: 'Baloo 2', cursive, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #b31359;
    margin: 0 0 8px;
}
.airpay-confirm-text {
    font-size: 12.5px;
    color: #a05075;
    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: 999px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Baloo 2', cursive, sans-serif;
}
.airpay-confirm-no {
    background: linear-gradient(120deg, #d6336c, #f77737);
    color: #ffffff;
}
.airpay-confirm-no:hover { background: linear-gradient(120deg, #b31359, #e0611c); }
.airpay-confirm-yes {
    background: #fff1e6;
    color: #c9772f;
    border: 1px solid #ffe0c2;
}
.airpay-confirm-yes:hover { background: #ffe6d1; }

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

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

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

/* App icon buttons */
.airpay-app-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    transition: opacity 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.airpay-app-btn:hover { opacity: 0.88; transform: translateY(-1px) scale(1.05); }
.airpay-app-btn:active { opacity: 0.7; transform: scale(0.95); }

/* ═══════════════════════════════════════════════════════════
   Mobile responsive fixes
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .airpay-modal { padding: 16px 10px; }
    .airpay-header { padding: 22px 14px 16px; }
    .airpay-logo-box { width: 175px; padding: 12px 0; }
    .airpay-logo-img { width: 125px; }
    .airpay-body { padding: 18px 14px 16px; }
    .airpay-subtitle { font-size: 16px; margin-bottom: 12px; }
    .airpay-qr-box { padding: 14px 10px 10px; }
    #airpay-qr svg, #airpay-qr img, #airpay-qr canvas { width: 170px !important; height: 170px !important; }
    .airpay-upi-apps { gap: 9px; }
    .airpay-app-icon, .airpay-app-btn { width: 36px; height: 36px; }
    .airpay-app-label { font-size: 8.5px; }
    .airpay-amount-row { padding: 10px 13px; margin: 12px 0; }
    .airpay-amount-value { font-size: 18px; }
    .airpay-pay-btn { font-size: 13.5px; padding: 13px; }
    .airpay-confirm-box { padding: 20px 16px 16px; }
}

@media (max-width: 340px) {
    .airpay-logo-box { width: 150px; }
    .airpay-logo-img { width: 110px; }
    .airpay-upi-apps { gap: 7px; }
    .airpay-app-icon, .airpay-app-btn { width: 33px; height: 33px; }
}

/* Landscape / short-height phones — let content scroll instead of clipping */
@media (max-height: 620px) {
    .airpay-modal, .airpay-confirm-overlay { align-items: flex-start; padding-top: 16px; padding-bottom: 16px; }
}
