/* =========================================================
   SECTION-3100
   PAYMENT METHODS PAGE CSS LOADER
========================================================= */

@import url("/assets/css/global-loader.css");

@import url("./design.css?v=20261031-payment-viewport-legibility-v5");
@import url("/core/payment-system/assets/payment-component.css?v=20260906-1");

.qr-modal-image {
    width: 100% !important;
    max-height: calc(80vh - 130px) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#qrModalOverlay .qr-modal-image img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(72vw, 620px) !important;
    max-height: calc(80vh - 150px) !important;
    object-fit: contain !important;
}

@media (max-width: 767px) {
    #qrModalOverlay.qr-modal-overlay {
        padding: 12px !important;
    }

    #qrModalOverlay .qr-modal-content {
        width: 80vw !important;
        max-width: 80vw !important;
        max-height: 80vh !important;
        padding: 18px 16px !important;
        border-radius: 20px !important;
    }

    #qrModalOverlay .qr-modal-title {
        margin-right: 40px !important;
        margin-bottom: 14px !important;
        font-size: clamp(19px, 6vw, 27px) !important;
    }

    #qrModalOverlay .qr-modal-image img {
        max-width: 72vw !important;
        max-height: calc(80vh - 120px) !important;
    }
}


/* =========================================================
   UKMB PAYMENT FLOW — FINAL FIT-TO-SCREEN VIEW
   After a payment method is selected:
   - show ONLY that method
   - expand QR + account details
   - place Upload Payment Proof immediately underneath
   - keep the complete working area compact enough to fit a
     normal desktop viewport after the automatic scroll
========================================================= */

.ukmb-payment-component .payment-grid.has-selected-method {
    grid-template-columns: minmax(0, 660px) !important;
    justify-content: center !important;
    gap: 0 !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card:not(.selected-payment-method) {
    display: none !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method {
    width: 100% !important;
    max-width: 660px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border: 1px solid #d7b66d !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 16px 38px rgba(0, 60, 55, .14) !important;
    transform: none !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-header {
    min-height: 78px !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 14px !important;
    padding: 10px 18px !important;
    background: linear-gradient(135deg, #006d62 0%, #075047 100%) !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-icon {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px !important;
    background: #ffffff !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-icon img {
    width: 39px !important;
    height: 39px !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-header h3 {
    color: #ffffff !important;
    font-size: 21px !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .qr-section {
    padding: 15px 15px 12px !important;
    background: #ffffff !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .qr-code {
    width: 176px !important;
    height: 176px !important;
    margin-bottom: 6px !important;
    padding: 8px !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .payment-details {
    max-height: none !important;
    overflow: visible !important;
    padding: 2px 18px 6px !important;
    background: #ffffff !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .detail-row {
    min-height: 43px !important;
    padding: 7px 0 !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .toggle-btn {
    display: none !important;
}

.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method::after {
    top: 10px !important;
    right: 10px !important;
    padding: 4px 7px !important;
    font-size: 8px !important;
}

.payment-method-details-section.is-method-selected {
    padding: 26px 0 8px !important;
    scroll-margin-top: 78px !important;
}

.payment-method-details-section.is-method-selected .selected-payment-method-intro {
    margin-bottom: 16px !important;
}

.payment-method-details-section.is-method-selected .selected-payment-method-intro h2 {
    font-size: clamp(30px, 4vw, 40px) !important;
    line-height: 1.08 !important;
    margin: 0 0 7px !important;
}

.payment-method-details-section.is-method-selected .selected-payment-method-intro p {
    margin: 0 auto !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.payment-method-details-section.is-method-selected .payment-proof-shortcut-section {
    padding: 15px 0 4px !important;
    background: transparent !important;
}

.payment-method-details-section.is-method-selected .premium-upload-btn {
    min-width: 260px !important;
    min-height: 50px !important;
}

.payment-method-details-section.is-method-selected + .upload-shortcut-section {
    display: none !important;
}

.auto-login-redirect-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: #075b73;
    background: #eef7f8;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 700px) {
    .payment-method-details-section.is-method-selected {
        padding: 20px 0 6px !important;
        scroll-margin-top: 58px !important;
    }

    .ukmb-payment-component .payment-grid.has-selected-method {
        grid-template-columns: 1fr !important;
    }

    .ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method {
        max-width: 100% !important;
    }

    .ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-header {
        min-height: 70px !important;
        padding: 9px 14px !important;
    }

    .ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-header h3 {
        font-size: 18px !important;
    }

    .ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .qr-code {
        width: 158px !important;
        height: 158px !important;
    }

    .payment-method-details-section.is-method-selected .premium-upload-btn {
        width: min(100%, 330px) !important;
        min-width: 0 !important;
    }
}


/* 01-OCT-2026 — PAYMENT METHOD VIEWPORT LOCK
   Selecting a method opens one complete, readable payment card. Other
   methods remain available through the selector above; the selected card is
   the only detail surface rendered in the viewport. */
.ukmb-payment-component .payment-grid.has-selected-method{
    width:100%!important;
    max-width:760px!important;
    margin:0 auto!important;
    grid-template-columns:minmax(0,1fr)!important;
    justify-content:stretch!important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method{
    width:100%!important;max-width:760px!important;margin:0 auto!important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .payment-details{
    max-height:none!important;overflow:visible!important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .detail-row{
    align-items:center!important;gap:16px!important;
}
@media(max-width:700px){
    .ukmb-payment-component .payment-grid.has-selected-method{max-width:100%!important;}
    .ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .detail-value{
        max-width:68%!important;overflow-wrap:anywhere!important;word-break:break-word!important;
    }
}

/* =========================================================
   UKMB-PAYMENT-308 | PAYMENT PAGE HEADER CONTRAST LOCK
   Keep selected payment-method strip premium; method title is GOLD.
   No QR/card geometry changes in this patch.
========================================================= */
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-header{
    background:linear-gradient(135deg,#3d2256 0%,#5a2f70 52%,#43225c 100%) !important;
    border-bottom:1px solid rgba(240,213,138,.55) !important;
    color:#f0d58a !important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-header h3{
    color:#f2d27a !important;
    text-shadow:0 1px 1px rgba(0,0,0,.35) !important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method[data-id="sadapay"] .card-header,
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method[data-id="easypaisa"] .card-header,
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method[data-id="raast"] .card-header{
    background:linear-gradient(135deg,#075b55 0%,#08766b 52%,#075b55 100%) !important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method[data-id="jazzcash"] .card-header{
    background:linear-gradient(135deg,#671b28 0%,#8b2935 52%,#641b27 100%) !important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method[data-id="payment"] .card-header{
    background:linear-gradient(135deg,#34434a 0%,#4a5960 52%,#35444b 100%) !important;
}
.ukmb-payment-component .payment-grid.has-selected-method .payment-card.selected-payment-method .card-header .card-icon{
    background:#fff !important;
    box-shadow:0 4px 12px rgba(0,0,0,.16) !important;
}



/* =========================================================
   PAYMENT SUCCESS POPUP — FINAL HIGH-CONTRAST PALETTE
   This block intentionally follows all @imports in this loader.
   Cream surface, deep-teal text, restrained gold accents.
========================================================= */
#uploadSuccessSection[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#uploadSuccessSection:not([hidden]) {
    position: fixed !important;
    z-index: 2147483647 !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    background: rgba(0, 27, 29, .78) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
}
#uploadSuccessSection .container {
    width: min(460px, 100%) !important;
    max-width: 460px !important;
    margin: auto !important;
    padding: 0 !important;
}
#uploadSuccessSection .success-message-box {
    position: relative !important;
    width: 100% !important;
    max-width: 460px !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 40px) !important;
    margin: auto !important;
    padding: 34px 30px 28px !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    border: 1px solid #b98a3e !important;
    border-radius: 18px !important;
    background: linear-gradient(155deg, #fffdf7 0%, #f1eee2 100%) !important;
    color: #173d38 !important;
    box-shadow: 0 26px 70px rgba(0,0,0,.42), inset 0 0 0 1px rgba(255,255,255,.88) !important;
    text-align: center !important;
}
#uploadSuccessSection .luxury-success-frame {
    inset: 9px !important;
    border: 1px solid rgba(185,138,62,.42) !important;
    border-radius: 12px !important;
    pointer-events: none !important;
}
#uploadSuccessSection .success-icon {
    width: 62px !important;
    height: 62px !important;
    margin: 0 auto 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid #fffaf0 !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, #087b80, #064e55) !important;
    color: #fff !important;
    box-shadow: 0 0 0 3px rgba(185,138,62,.25), 0 9px 22px rgba(0,60,62,.18) !important;
}
#uploadSuccessSection .success-kicker {
    color: #8b641e !important;
    -webkit-text-fill-color: #8b641e !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
}
#uploadSuccessSection .success-message-box h2,
#uploadSuccessSection .success-message-box h2 span {
    margin: 8px 0 0 !important;
    color: #073f43 !important;
    -webkit-text-fill-color: #073f43 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    font-size: clamp(30px, 4vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    text-shadow: none !important;
}
#uploadSuccessSection .receipt-confirmation {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 18px auto 13px !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
    border: 1px solid #b98a3e !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #075b55, #003f40) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
#uploadSuccessSection .receipt-confirmation i,
#uploadSuccessSection .receipt-confirmation span {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}
#uploadSuccessSection .status-badge.pending {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 9px 15px !important;
    border: 1px solid #d1a64e !important;
    border-radius: 999px !important;
    background: #fff5d9 !important;
    color: #684b16 !important;
    -webkit-text-fill-color: #684b16 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
#uploadSuccessSection .status-badge.pending i {
    color: #936515 !important;
    -webkit-text-fill-color: #936515 !important;
}
#uploadSuccessSection .status-note,
#uploadSuccessSection .success-message-box p {
    max-width: 390px !important;
    margin: 12px auto 0 !important;
    color: #34564f !important;
    -webkit-text-fill-color: #34564f !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    opacity: 1 !important;
}
#uploadSuccessSection .success-ornament {
    margin: 16px auto !important;
}
#uploadSuccessSection .success-ornament span {
    background: linear-gradient(90deg, transparent, #b98a3e) !important;
}
#uploadSuccessSection .success-ornament span:last-child {
    background: linear-gradient(90deg, #b98a3e, transparent) !important;
}
#uploadSuccessSection .success-ornament i {
    color: #b98a3e !important;
    -webkit-text-fill-color: #b98a3e !important;
}
#uploadSuccessSection .auto-login-redirect-note {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 0 17px !important;
    border: 1px solid #b98a3e !important;
    border-radius: 999px !important;
    background: #075b55 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}
#uploadSuccessSection .auto-login-redirect-note i {
    color: #f5d77f !important;
    -webkit-text-fill-color: #f5d77f !important;
}
@media (max-width: 650px) {
    #uploadSuccessSection:not([hidden]) { padding: 12px !important; }
    #uploadSuccessSection .success-message-box {
        max-height: calc(100dvh - 24px) !important;
        padding: 30px 20px 24px !important;
        border-radius: 16px !important;
    }
    #uploadSuccessSection .success-message-box h2,
    #uploadSuccessSection .success-message-box h2 span {
        font-size: clamp(28px, 8vw, 35px) !important;
    }
}
