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

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

@import url("./design.css?v=20261003-layout1");
@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;
    }
}
