/* ═══════════════════════════════════════════════════════════
   Wallstyle.in — Boutique Checkout Theme
   Palette: Black + Antique Gold + White (mobile-responsive)
   ═══════════════════════════════════════════════════════════ */

/* ── 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.7);
    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: #ffffff;
    border-radius: 22px;
    width: 100%;
    max-width: 380px;
    max-height: none;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border: 1px solid #e8e8e8;
    margin: auto 0;
}

/* ── Header ── */
.airpay-header {
    background: linear-gradient(150deg, #000000 0%, #1c1c1c 55%, #2c2c2c 100%);
    padding: 26px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    border-bottom: 3px solid #caa46a;
}

.airpay-close {
    position: absolute;
    top: 12px; right: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(212,175,106,0.5);
    color: #f2e4c8;
    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(212,175,106,0.3); }

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

.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(212,175,106,0.16);
    border: 1px solid rgba(212,175,106,0.55);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    color: #f2e4c8;
    letter-spacing: 0.6px;
    font-weight: 500;
}

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

.airpay-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}

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

/* Ornamental gold diamond corners */
.airpay-corner {
    position: absolute;
    width: 9px; height: 9px;
    background: #caa46a;
    transform: rotate(45deg);
    border-radius: 2px;
}
.airpay-corner.tl { top: -4px;  left: -4px; }
.airpay-corner.tr { top: -4px;  right: -4px; }
.airpay-corner.bl { bottom: -4px; left: -4px; }
.airpay-corner.br { bottom: -4px; right: -4px; }

/* ── UPI Apps ── */
.airpay-divider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.airpay-line { flex: 1; height: 1px; background: #e3e3e3; }
.airpay-divider-text { font-size: 10.5px; color: #777; 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: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.14);
}

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

/* ── Amount ── */
.airpay-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 11px 15px;
    margin: 14px 0;
    border: 1px solid #e3e3e3;
}
.airpay-amount-label { font-size: 12px; color: #777; font-weight: 500; }
.airpay-amount-value { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 700; color: #111111; }

/* ── Buttons ── */
.airpay-pay-btn {
    width: 100%;
    background: linear-gradient(135deg, #000000, #2c2c2c);
    color: #f2e4c8;
    border: 1px solid #caa46a;
    border-radius: 13px;
    padding: 14px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}
.airpay-pay-btn:hover { background: linear-gradient(135deg, #1a1a1a, #3a3a3a); }

.airpay-utr-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 11px;
    font-size: 16px; /* 16px so iOS Safari doesn't auto-zoom on focus */
    margin-bottom: 8px;
    outline: none;
    box-sizing: border-box;
    background: #fafafa;
    color: #222;
}
.airpay-utr-input:focus { border-color: #caa46a; box-shadow: 0 0 0 3px rgba(202,164,106,0.18); }

.airpay-utr-submit {
    width: 100%;
    background: #caa46a;
    color: #111111;
    border: none;
    border-radius: 11px;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.airpay-utr-submit:hover { background: #bd9558; }

/* ── Checking status note ── */
.airpay-checking-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #f7f7f7;
    border: 1px solid #e3e3e3;
    border-radius: 11px;
    padding: 9px 10px;
    margin: 10px 0 2px;
    font-size: 11.5px;
    color: #222;
    text-align: center;
    line-height: 1.4;
}
.airpay-spinner {
    width: 12px; height: 12px;
    border: 2px solid #e3e3e3;
    border-top-color: #111111;
    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.65);
    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: #ffffff;
    border-radius: 18px;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px 18px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border: 1px solid #e8e8e8;
    margin: auto 0;
}
.airpay-confirm-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #111111;
    margin: 0 0 8px;
}
.airpay-confirm-text {
    font-size: 12.5px;
    color: #666;
    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: 11px;
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.airpay-confirm-no {
    background: #000000;
    color: #f2e4c8;
}
.airpay-confirm-no:hover { background: #1a1a1a; }
.airpay-confirm-yes {
    background: #f7f7f7;
    color: #a13a3a;
    border: 1px solid #e3e3e3;
}
.airpay-confirm-yes:hover { background: #efefef; }

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

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

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

/* App icon buttons */
.airpay-app-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    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); }
.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: 16px 14px; }
    .airpay-subtitle { font-size: 14.5px; margin-bottom: 12px; }
    .airpay-qr-box { padding: 12px 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; border-radius: 11px; }
    .airpay-app-label { font-size: 8.5px; }
    .airpay-amount-row { padding: 10px 12px; margin: 12px 0; }
    .airpay-amount-value { font-size: 17px; }
    .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; }
}
