/* ═══════════════════════════════════════════════════════════
   Welmoraa.com — Modern Minimal Checkout Theme
   Palette: Terracotta + Sage + Warm Beige/Ivory (mobile-responsive)
   ═══════════════════════════════════════════════════════════ */

/* ── Airpay Modal Overlay ── */
.airpay-modal {
    display: flex;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(58, 40, 28, 0.55);
    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: #fdf8f2;
    border-radius: 26px;
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    box-shadow: 0 24px 55px rgba(90, 70, 54, 0.30);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border: 1px solid #f0e4d4;
    margin: auto 0;
}

/* ── Header ── */
.airpay-header {
    background: linear-gradient(150deg, #c17f59 0%, #b8703f 55%, #a8623e 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.85);
    border: none;
    color: #a8623e;
    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: #ffffff; }

.airpay-logo-box {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    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(90,70,54,0.22);
}

.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.22);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11px;
    color: #fdf8f2;
    letter-spacing: 0.5px;
    font-weight: 500;
}

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

.airpay-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #5a4636;
    text-align: center;
    margin: 0 0 16px;
    letter-spacing: 0.2px;
}

/* ── QR Box (flat, minimal — no ornate corners) ── */
.airpay-qr-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 2px dashed #ecdfc9;
    position: relative;
}

/* Flat minimal design — corner ornaments removed */
.airpay-corner { display: none; }

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

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

/* ── Amount (sage green accent) ── */
.airpay-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #edf1e6;
    border-radius: 14px;
    padding: 11px 16px;
    margin: 14px 0;
    border: 1px solid #d9e2cc;
}
.airpay-amount-label { font-size: 12px; color: #6b7d5a; font-weight: 600; }
.airpay-amount-value { font-family: 'Quicksand', sans-serif; font-size: 19px; font-weight: 700; color: #4a5a3d; }

/* ── Buttons (pill-shaped, distinct DTC style) ── */
.airpay-pay-btn {
    width: 100%;
    background: #c17f59;
    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: 'Quicksand', sans-serif;
}
.airpay-pay-btn:hover { background: #a8623e; }

.airpay-utr-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ecdfc9;
    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: #ffffff;
    color: #4a3728;
    text-align: center;
}
.airpay-utr-input:focus { border-color: #c17f59; box-shadow: 0 0 0 3px rgba(193,127,89,0.15); }

.airpay-utr-submit {
    width: 100%;
    background: #7d9467;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 13px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
}
.airpay-utr-submit:hover { background: #6c8258; }

/* ── Checking status note ── */
.airpay-checking-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #edf1e6;
    border: 1px solid #d9e2cc;
    border-radius: 14px;
    padding: 9px 10px;
    margin: 10px 0 2px;
    font-size: 11.5px;
    color: #4a5a3d;
    text-align: center;
    line-height: 1.4;
}
.airpay-spinner {
    width: 12px; height: 12px;
    border: 2px solid #d9e2cc;
    border-top-color: #7d9467;
    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(58, 40, 28, 0.6);
    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: #fdf8f2;
    border-radius: 22px;
    width: 100%;
    max-width: 320px;
    padding: 24px 20px 18px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(90,70,54,0.32);
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    border: 1px solid #f0e4d4;
    margin: auto 0;
}
.airpay-confirm-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #5a4636;
    margin: 0 0 8px;
}
.airpay-confirm-text {
    font-size: 12.5px;
    color: #8a7457;
    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: 'Quicksand', sans-serif;
}
.airpay-confirm-no {
    background: #c17f59;
    color: #ffffff;
}
.airpay-confirm-no:hover { background: #a8623e; }
.airpay-confirm-yes {
    background: #f7ece0;
    color: #b05c4a;
    border: 1px solid #ecdfc9;
}
.airpay-confirm-yes:hover { background: #f2e2d0; }

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

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

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

/* App icon buttons */
.airpay-app-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    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: 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; border-radius: 14px; }
    .airpay-app-label { font-size: 8.5px; }
    .airpay-amount-row { padding: 10px 13px; 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; }
}
