/* =========================================================
   EXACTSUB — BUY AIRTIME PAGE
========================================================= */

.buyairtime-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 0 40px;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.buyairtime-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}


.buyairtime-eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: #29BA22;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.buyairtime-page-header h1 {
    margin: 0;
    color: #022A7B;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}


.buyairtime-page-header p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   BALANCE CARD
========================================================= */

.buyairtime-balance-card {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid #e5e9f0;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(16, 24, 40, 0.06);
}


.buyairtime-balance-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background: #022A7B;
    font-size: 17px;
}


.buyairtime-balance-card span {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}


.buyairtime-balance-card strong {
    display: block;
    margin-top: 3px;
    color: #022A7B;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 800;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.buyairtime-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    gap: 22px;
    align-items: start;
}


.buyairtime-main-card,
.buyairtime-info-card,
.buyairtime-networks-card {
    border: 1px solid #e7ebf1;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.055);
}


/* =========================================================
   CARD HEADER
========================================================= */

.buyairtime-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #edf0f4;
}


.buyairtime-card-header h2 {
    margin: 0;
    color: #101828;
    font-size: 17px;
    font-weight: 800;
}


.buyairtime-card-header p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 12px;
}


.buyairtime-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid rgba(41, 186, 34, 0.2);
    border-radius: 999px;
    color: #197a15;
    background: #f1fbf0;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   FORM
========================================================= */

.buyairtime-main-card form {
    padding: 24px;
}


.buyairtime-form-group {
    margin-bottom: 19px;
}


.buyairtime-label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   NETWORK GRID
========================================================= */

.buyairtime-network-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}


.buyairtime-network-btn {
    min-height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    color: #344054;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}


.buyairtime-network-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(16, 24, 40, 0.06);
}


.buyairtime-network-logo {
    font-size: 13px;
    font-weight: 850;
}


.buyairtime-network-name {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}


.buyairtime-network-btn.active {
    box-shadow: 0 0 0 2px rgba(2, 42, 123, 0.07);
}


.buyairtime-network-mtn.active {
    border-color: #d4aa00;
    color: #725700;
    background: #fff9dc;
}


.buyairtime-network-mtn.active
.buyairtime-network-name {
    color: #806800;
}


.buyairtime-network-airtel.active {
    border-color: #e30613;
    color: #b0000b;
    background: #fff1f2;
}


.buyairtime-network-airtel.active
.buyairtime-network-name {
    color: #b0000b;
}


.buyairtime-network-glo.active {
    border-color: #169b36;
    color: #13752a;
    background: #effbf2;
}


.buyairtime-network-glo.active
.buyairtime-network-name {
    color: #13752a;
}


.buyairtime-network-9mobile.active {
    border-color: #008751;
    color: #006c41;
    background: #eefaf5;
}


.buyairtime-network-9mobile.active
.buyairtime-network-name {
    color: #006c41;
}


/* =========================================================
   HIDDEN DJANGO NETWORK FIELD
========================================================= */

.buyairtime-native-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   AMOUNT FIELD
========================================================= */

.buyairtime-input-wrap {
    position: relative;
    width: 100%;
}


.buyairtime-input-prefix {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    transform: translateY(-50%);
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    pointer-events: none;
}


.buyairtime-input-wrap input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 13px 0 34px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    outline: none;
    color: #101828;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.buyairtime-input-wrap input:focus {
    border-color: #022A7B;
    box-shadow: 0 0 0 3px rgba(2, 42, 123, 0.08);
}


.buyairtime-input-wrap input::placeholder {
    color: #98a2b3;
}


/* =========================================================
   PHONE FIELD
========================================================= */

.buyairtime-phone-wrap {
    width: 100%;
}


.buyairtime-phone-wrap input {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    outline: none;
    color: #101828;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.buyairtime-phone-wrap input:focus {
    border-color: #022A7B;
    box-shadow: 0 0 0 3px rgba(2, 42, 123, 0.08);
}


.buyairtime-phone-wrap input::placeholder {
    color: #98a2b3;
}


/* =========================================================
   HELP / ERRORS
========================================================= */

.buyairtime-helper-text {
    display: block;
    margin-top: 7px;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
}


.buyairtime-field-error {
    margin-top: 6px;
    color: #d92d20;
    font-size: 11px;
}


.buyairtime-form-errors {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: #b42318;
    background: #fff6f5;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.buyairtime-summary {
    margin-top: 8px;
    border: 1px solid #e6eaf0;
    border-radius: 13px;
    background: #f8fafc;
    overflow: hidden;
}


.buyairtime-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 16px;
    border-bottom: 1px solid #e8ecf1;
}


.buyairtime-summary-header > i {
    color: #022A7B;
    font-size: 17px;
}


.buyairtime-summary-title {
    display: block;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
}


.buyairtime-summary-subtitle {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
}


.buyairtime-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 16px;
    color: #667085;
    font-size: 12px;
}


.buyairtime-summary-row strong {
    max-width: 65%;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
}


.buyairtime-summary-divider {
    height: 1px;
    margin: 2px 16px;
    border-top: 1px dashed #d9dee7;
}


.buyairtime-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px 16px;
}


.buyairtime-summary-total span {
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}


.buyairtime-summary-total strong {
    color: #022A7B;
    font-size: 20px;
    font-weight: 850;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.buyairtime-submit-btn {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: #022A7B;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.buyairtime-submit-btn:hover {
    background: #012260;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(2, 42, 123, 0.2);
}


.buyairtime-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


.buyairtime-submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.buyairtime-submit-arrow {
    margin-left: auto;
    font-size: 12px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.buyairtime-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 11px;
    color: #667085;
    font-size: 10px;
    text-align: center;
}


.buyairtime-security-note i {
    color: #29BA22;
}


/* =========================================================
   SIDEBAR
========================================================= */

.buyairtime-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================================================
   INFORMATION CARD
========================================================= */

.buyairtime-info-card {
    padding: 21px;
}


.buyairtime-info-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border-radius: 11px;
    color: #ffffff;
    background: #29BA22;
    font-size: 17px;
}


.buyairtime-info-card h3 {
    margin: 0;
    color: #101828;
    font-size: 15px;
    font-weight: 800;
}


.buyairtime-info-card p {
    margin: 7px 0 17px;
    color: #667085;
    font-size: 12px;
    line-height: 1.6;
}


.buyairtime-info-list {
    display: grid;
    gap: 10px;
}


.buyairtime-info-list > div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 12px;
}


.buyairtime-info-list i {
    color: #29BA22;
    font-size: 12px;
}


/* =========================================================
   SUPPORTED NETWORKS CARD
========================================================= */

.buyairtime-networks-card {
    padding: 20px;
}


.buyairtime-networks-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}


.buyairtime-networks-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #022A7B;
    background: #eef3ff;
    font-size: 15px;
}


.buyairtime-networks-header h3 {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}


.buyairtime-networks-header p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 11px;
}


.buyairtime-supported-list {
    display: grid;
    gap: 8px;
}


.buyairtime-supported-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #edf0f4;
    border-radius: 9px;
    background: #f8fafc;
}


.buyairtime-supported-logo {
    width: 38px;
    height: 34px;
    flex: 0 0 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 850;
}


.buyairtime-supported-item strong {
    display: block;
    color: #101828;
    font-size: 11px;
    font-weight: 800;
}


.buyairtime-supported-item span {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 10px;
}


.buyairtime-supported-mtn {
    border-left: 3px solid #FFCC00;
}


.buyairtime-supported-mtn .buyairtime-supported-logo {
    color: #725700;
    background: #fff4bd;
}


.buyairtime-supported-airtel {
    border-left: 3px solid #E30613;
}


.buyairtime-supported-airtel .buyairtime-supported-logo {
    color: #b0000b;
    background: #ffe9eb;
}


.buyairtime-supported-glo {
    border-left: 3px solid #169b36;
}


.buyairtime-supported-glo .buyairtime-supported-logo {
    color: #13752a;
    background: #e8f8ec;
}


.buyairtime-supported-9mobile {
    border-left: 3px solid #008751;
}


.buyairtime-supported-9mobile .buyairtime-supported-logo {
    color: #006c41;
    background: #e6f7f0;
}


/* =========================================================
   RESPONSIVE — 1100px
========================================================= */

@media (max-width: 1100px) {

    .buyairtime-page {
        max-width: 100%;
    }


    .buyairtime-layout {
        grid-template-columns:
            minmax(0, 1fr)
            285px;

        gap: 18px;
    }

}


/* =========================================================
   RESPONSIVE — 900px
========================================================= */

@media (max-width: 900px) {

    .buyairtime-layout {
        grid-template-columns: 1fr;
    }


    .buyairtime-sidebar {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   RESPONSIVE — 650px
========================================================= */

@media (max-width: 650px) {

    .buyairtime-page {
        padding: 4px 0 30px;
    }


    .buyairtime-page-header {
        display: block;
    }


    .buyairtime-page-header h1 {
        font-size: 25px;
    }


    .buyairtime-balance-card {
        min-width: 0;
        width: 100%;
        margin-top: 15px;
        box-sizing: border-box;
    }


    .buyairtime-card-header {
        align-items: flex-start;
        padding: 18px;
    }


    .buyairtime-main-card form {
        padding: 18px;
    }


    .buyairtime-network-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }


    .buyairtime-network-btn {
        min-height: 58px;
    }


    .buyairtime-sidebar {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RESPONSIVE — 420px
========================================================= */

@media (max-width: 420px) {

    .buyairtime-page-header h1 {
        font-size: 23px;
    }


    .buyairtime-page-header p {
        font-size: 12px;
    }


    .buyairtime-card-header {
        padding: 16px;
    }


    .buyairtime-card-header p {
        font-size: 11px;
    }


    .buyairtime-secure-badge {
        padding: 6px 8px;
        font-size: 10px;
    }


    .buyairtime-main-card form {
        padding: 16px;
    }


    .buyairtime-network-logo {
        font-size: 12px;
    }


    .buyairtime-network-name {
        font-size: 10px;
    }


    .buyairtime-summary-row {
        padding-inline: 13px;
    }


    .buyairtime-summary-header {
        padding-inline: 13px;
    }


    .buyairtime-summary-divider {
        margin-inline: 13px;
    }


    .buyairtime-summary-total {
        padding-inline: 13px;
    }


    .buyairtime-summary-total strong {
        font-size: 18px;
    }


    .buyairtime-info-card,
    .buyairtime-networks-card {
        padding: 17px;
    }

}

/* =========================================================
   EXACTSUB — TRANSACTION DETAILS / MODALS
========================================================= */

.buyairtime-summary-discount-row.is-hidden {
    display: none;
}

.buyairtime-summary-row strong.buyairtime-discount-value {
    color: #29BA22;
}

.buyairtime-summary-row strong.buyairtime-payable-value {
    color: #022A7B;
    font-weight: 800;
}

.buyairtime-summary-row strong.buyairtime-insufficient {
    color: #D92D20;
}

.buyairtime-summary-row strong.buyairtime-balance-after {
    color: #475467;
}

/* =========================================================
   QUICK AMOUNTS
========================================================= */

.buyairtime-quick-amounts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 9px;
}

.buyairtime-quick-amount {
    min-height: 38px;
    border: 1px solid #dfe4ea;
    border-radius: 9px;
    color: #344054;
    background: #ffffff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.buyairtime-quick-amount:hover {
    border-color: #022A7B;
    color: #022A7B;
    background: #f5f7ff;
    transform: translateY(-1px);
}

/* =========================================================
   PROCESSING OVERLAY
========================================================= */

.buyairtime-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(2, 42, 123, 0.24);
    backdrop-filter: blur(5px);
}

.buyairtime-processing-overlay.is-visible {
    display: flex;
    animation: buyairtimeOverlayIn .18s ease both;
}

.buyairtime-processing-card {
    width: min(360px, 100%);
    box-sizing: border-box;
    padding: 28px 24px 25px;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(16,24,40,.18);
    text-align: center;
}

.buyairtime-processing-card strong {
    display: block;
    margin-top: 18px;
    color: #101828;
    font-size: 15px;
    font-weight: 800;
}

.buyairtime-processing-card p {
    margin: 7px 0 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.55;
}

.buyairtime-processing-spinner {
    width: 52px;
    height: 52px;
    position: relative;
    margin: 0 auto;
}

.buyairtime-processing-spinner::before {
    content: '';
    position: absolute;
    inset: 1px;
    border: 4px solid #e9eef8;
    border-top-color: #022A7B;
    border-right-color: #29BA22;
    border-radius: 50%;
    animation: buyairtimeSpin .8s linear infinite;
}

.buyairtime-processing-spinner span {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #29BA22;
    animation: buyairtimePulse 1s ease-in-out infinite;
}

.buyairtime-processing-spinner span:nth-child(1) {
    top: 3px;
    left: 23px;
}

.buyairtime-processing-spinner span:nth-child(2) {
    right: 4px;
    bottom: 11px;
    animation-delay: .16s;
}

.buyairtime-processing-spinner span:nth-child(3) {
    left: 8px;
    bottom: 11px;
    animation-delay: .32s;
}

@keyframes buyairtimeSpin {
    to { transform: rotate(360deg); }
}

@keyframes buyairtimePulse {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes buyairtimeOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================================
   SWEETALERT CONFIRMATION CONTENT
========================================================= */

.exactsub-confirmation {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.exactsub-confirmation-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 14px;
    color: #ffffff;
    background: #022A7B;
    font-size: 18px;
}

.exactsub-confirmation h3 {
    margin: 0;
    color: #101828;
    font-size: 18px;
    font-weight: 800;
}

.exactsub-confirmation-subtitle {
    margin: 6px auto 17px;
    color: #667085;
    font-size: 11px;
    line-height: 1.5;
}

.exactsub-confirmation-details {
    padding: 13px 14px;
    border: 1px solid #e7ebf1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: left;
}

.exactsub-confirmation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
    color: #667085;
    font-size: 11px;
}

.exactsub-confirmation-row strong {
    color: #344054;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    word-break: break-word;
}

.exactsub-confirmation-divider {
    height: 1px;
    margin: 4px 0;
    background: #e1e6ee;
}

.exactsub-confirmation-total strong {
    color: #022A7B;
    font-size: 14px;
}

.exactsub-confirmation-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: 10px;
    color: #475467;
    background: #f1fbf0;
    font-size: 10px;
    line-height: 1.5;
    text-align: left;
}

.exactsub-confirmation-warning i {
    margin-top: 1px;
    color: #29BA22;
}

@media (max-width: 420px) {
    .buyairtime-quick-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   EXACTSUB — CURRENT AIRTIME PAGE REFINEMENTS
   Requested layout:
   - No Order Summary card
   - Compact live pricing breakdown
   - Six quick amounts
   - Airtime balance code card
   - Refined confirmation popup
========================================================= */

/* =========================================================
   QUICK AMOUNT SECTION
========================================================= */

.buyairtime-quick-section {
    margin: 4px 0 18px;
}

.buyairtime-quick-heading {
    margin-bottom: 9px;
    color: #101828;
    font-size: 13px;
    font-weight: 800;
}

.buyairtime-quick-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.buyairtime-quick-amount {
    min-height: 40px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    color: #344054;
    background: #ffffff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        color .18s ease,
        transform .18s ease,
        box-shadow .18s ease;
}

.buyairtime-quick-amount:hover {
    border-color: #022A7B;
    color: #022A7B;
    background: #f5f7ff;
    transform: translateY(-1px);
}

.buyairtime-quick-amount.active {
    border-color: #022A7B;
    color: #ffffff;
    background: #022A7B;
    box-shadow: 0 4px 12px rgba(2, 42, 123, .15);
}

/* =========================================================
   LIVE PRICE BREAKDOWN
   This replaces the former Order Summary card.
========================================================= */

.buyairtime-live-breakdown {
    margin-top: 4px;
    padding: 4px 0 2px;
    border-top: 1px solid #edf0f4;
}

.buyairtime-live-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 36px;
    color: #667085;
    font-size: 12px;
}

.buyairtime-live-row span {
    color: #667085;
    font-weight: 600;
}

.buyairtime-live-row strong {
    color: #344054;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.buyairtime-live-discount-row.is-hidden {
    display: none;
}

.buyairtime-live-row strong.buyairtime-discount-value {
    color: #29BA22;
}

.buyairtime-live-row strong.buyairtime-payable-value {
    color: #022A7B;
    font-size: 13px;
}

.buyairtime-live-row strong.buyairtime-balance-after {
    color: #475467;
}

.buyairtime-live-row strong.buyairtime-insufficient {
    color: #D92D20;
}

/* =========================================================
   AMOUNT SECTION
========================================================= */

.buyairtime-amount-group {
    margin-bottom: 13px;
}

/* =========================================================
   AIRTIME BALANCE CODE CARD
========================================================= */

.buyairtime-balance-code-card {
    padding: 20px;
    border: 1px solid #e7ebf1;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(16, 24, 40, 0.055);
}

.buyairtime-balance-code-header {
    display: flex;
    align-items: center;
    gap: 11px;
}

.buyairtime-balance-code-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #022A7B;
    background: #eef3ff;
    font-size: 16px;
}

.buyairtime-balance-code-header h3 {
    margin: 0;
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

.buyairtime-balance-code-header p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.buyairtime-balance-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid #dbe4f5;
    border-radius: 11px;
    background: #f7f9fd;
}

.buyairtime-balance-code-box span {
    color: #667085;
    font-size: 11px;
    font-weight: 600;
}

.buyairtime-balance-code-box strong {
    color: #022A7B;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: .02em;
}

.buyairtime-balance-code-note {
    margin: 9px 0 0;
    color: #667085;
    font-size: 10px;
    line-height: 1.55;
}

/* =========================================================
   REFINED CONFIRMATION POPUP
========================================================= */

.exactsub-confirmation {
    padding: 2px 0 0;
}

.exactsub-confirmation-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 13px;
    border-radius: 16px;
    background: #022A7B;
    box-shadow: 0 8px 20px rgba(2, 42, 123, .16);
    font-size: 19px;
}

.exactsub-confirmation h3 {
    margin: 0;
    color: #101828;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 850;
}

.exactsub-confirmation-subtitle {
    max-width: 330px;
    margin: 7px auto 18px;
    color: #667085;
    font-size: 11px;
    line-height: 1.55;
}

.exactsub-confirmation-details {
    padding: 7px 15px;
    border: 1px solid #e4e9f1;
    border-radius: 14px;
    background: #f8fafc;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.exactsub-confirmation-row {
    min-height: 35px;
    padding: 7px 0;
    font-size: 11px;
}

.exactsub-confirmation-row span {
    color: #667085;
    font-weight: 600;
}

.exactsub-confirmation-row strong {
    color: #344054;
    font-size: 11px;
    font-weight: 800;
}

.exactsub-confirmation-discount strong {
    color: #29BA22;
}

.exactsub-confirmation-divider {
    margin: 4px 0;
    background: #dfe5ee;
}

.exactsub-confirmation-total {
    min-height: 40px;
}

.exactsub-confirmation-total span {
    color: #344054;
    font-weight: 800;
}

.exactsub-confirmation-total strong {
    color: #022A7B;
    font-size: 15px;
}

.exactsub-confirmation-balance strong {
    color: #475467;
}

.exactsub-confirmation-warning {
    align-items: center;
    margin-top: 13px;
    padding: 10px 12px;
    border: 1px solid #d9f0d7;
    border-radius: 10px;
    color: #475467;
    background: #f1fbf0;
    font-size: 10px;
}

.exactsub-confirmation-warning i {
    flex: 0 0 auto;
    color: #29BA22;
}

/* SweetAlert container itself */
.swal-modal {
    width: 410px;
    max-width: calc(100% - 24px);
    border-radius: 18px;
    padding: 25px 22px 18px;
}

.swal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.swal-button-container {
    margin: 0;
}

.swal-button {
    min-width: 105px;
    min-height: 40px;
    border-radius: 9px;
    padding: 0 17px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    box-shadow: none;
}

.swal-button--confirm {
    color: #ffffff;
    background: #022A7B;
}

.swal-button--confirm:hover,
.swal-button--confirm:focus {
    background: #012260;
}

.swal-button--cancel {
    color: #475467;
    background: #eef1f5;
}

.swal-button--cancel:hover,
.swal-button--cancel:focus {
    color: #344054;
    background: #e5e9ef;
}

/* =========================================================
   MOBILE REFINEMENTS
========================================================= */

@media (max-width: 650px) {

    .buyairtime-quick-section {
        margin-top: 2px;
    }

    .buyairtime-quick-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .buyairtime-quick-amount {
        min-height: 39px;
        font-size: 10px;
    }

    .buyairtime-live-row {
        min-height: 35px;
        font-size: 11px;
    }

    .buyairtime-live-row strong {
        font-size: 11px;
    }

    .buyairtime-live-row strong.buyairtime-payable-value {
        font-size: 12px;
    }

    .buyairtime-balance-code-card {
        padding: 17px;
    }

    .swal-modal {
        width: calc(100% - 24px);
        padding: 22px 16px 16px;
    }

    .exactsub-confirmation h3 {
        font-size: 17px;
    }

    .exactsub-confirmation-subtitle {
        margin-bottom: 14px;
    }

    .exactsub-confirmation-details {
        padding-inline: 12px;
    }

    .swal-footer {
        gap: 8px;
    }

    .swal-button {
        min-width: 95px;
    }
}

/* =========================================================
   FINAL AIRTIME DESIGN REFINEMENTS
   - Keep Discount visible on the main page
   - Four compact networks on one mobile row
   - Refined transaction PIN popup
========================================================= */

/* =========================================================
   ALWAYS SHOW LIVE DISCOUNT ROW
========================================================= */

.buyairtime-live-discount-row {
    display: flex;
}

.buyairtime-live-discount-row.is-hidden {
    display: flex;
}

.buyairtime-live-row strong.buyairtime-discount-value {
    color: #29BA22;
    font-weight: 800;
}

/* =========================================================
   MOBILE NETWORKS — ALL FOUR ON ONE LINE
========================================================= */

@media (max-width: 650px) {

    .buyairtime-network-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .buyairtime-network-btn {
        min-height: 52px;
        padding: 5px 3px;
        border-radius: 9px;
        gap: 2px;
    }

    .buyairtime-network-logo {
        font-size: 10px;
        line-height: 1.1;
    }

    .buyairtime-network-name {
        font-size: 8px;
        line-height: 1.1;
    }
}

@media (max-width: 420px) {

    .buyairtime-network-grid {
        gap: 5px;
    }

    .buyairtime-network-btn {
        min-height: 49px;
        padding: 4px 2px;
    }

    .buyairtime-network-logo {
        font-size: 9px;
    }

    .buyairtime-network-name {
        font-size: 7.5px;
    }
}

/* =========================================================
   TRANSACTION PIN POPUP
========================================================= */

.exactsub-pin-modal {
    width: 390px;
    max-width: calc(100% - 24px);
    padding: 26px 24px 18px;
    border: 1px solid #e4e9f1;
    border-radius: 19px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.20);
}

.exactsub-pin-modal::before {
    content: '\f023';
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 13px;
    border-radius: 15px;
    color: #ffffff;
    background: #022A7B;
    box-shadow: 0 8px 20px rgba(2, 42, 123, 0.16);
    font-family: 'Font Awesome 5 Free';
    font-size: 18px;
    font-weight: 900;
}

.exactsub-pin-modal .swal-title {
    margin: 0;
    padding: 0;
    color: #101828;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 850;
}

.exactsub-pin-modal .swal-text {
    max-width: 300px;
    margin: 8px auto 16px;
    padding: 0;
    color: #667085;
    font-size: 11px;
    line-height: 1.55;
    text-align: center;
}

.exactsub-pin-modal .swal-content {
    margin: 0;
    padding: 0;
}

.exactsub-pin-modal .exactsub-pin-input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #d0d5dd;
    border-radius: 11px;
    outline: none;
    color: #101828;
    background: #ffffff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-align: center;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.exactsub-pin-modal .exactsub-pin-input::placeholder {
    color: #98a2b3;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

.exactsub-pin-modal .exactsub-pin-input:focus {
    border-color: #022A7B;
    box-shadow: 0 0 0 3px rgba(2, 42, 123, 0.09);
}

.exactsub-pin-modal .swal-footer {
    margin-top: 17px;
}

.exactsub-pin-modal .swal-button {
    min-width: 105px;
    min-height: 41px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.exactsub-pin-modal .swal-button--confirm {
    color: #ffffff;
    background: #022A7B;
}

.exactsub-pin-modal .swal-button--confirm:hover,
.exactsub-pin-modal .swal-button--confirm:focus {
    background: #012260;
}

.exactsub-pin-modal .swal-button--cancel {
    color: #475467;
    background: #eef1f5;
}

.exactsub-pin-modal .swal-button--cancel:hover,
.exactsub-pin-modal .swal-button--cancel:focus {
    color: #344054;
    background: #e5e9ef;
}

@media (max-width: 420px) {

    .exactsub-pin-modal {
        width: calc(100% - 24px);
        padding: 23px 16px 15px;
        border-radius: 17px;
    }

    .exactsub-pin-modal::before {
        width: 48px;
        height: 48px;
        margin-bottom: 11px;
        border-radius: 14px;
        font-size: 17px;
    }

    .exactsub-pin-modal .swal-title {
        font-size: 17px;
    }

    .exactsub-pin-modal .swal-text {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .exactsub-pin-modal .exactsub-pin-input {
        height: 47px;
        font-size: 16px;
    }

    .exactsub-pin-modal .swal-button {
        min-width: 94px;
        min-height: 39px;
    }
}

/* =========================================================
   FINAL MOBILE COMPACT LAYOUT

   Keep the complete purchase flow visible with minimal scrolling
   on phone screens. The secondary information cards remain below
   the purchase card and do not consume the primary viewport.
========================================================= */

/* The network value is submitted through this hidden Django-compatible input. */
#id_network.buyairtime-hidden-network {
    display: none !important;
}

/* Discount is always part of the live purchase breakdown. */
.buyairtime-live-discount-row,
.buyairtime-live-discount-row.is-hidden {
    display: flex !important;
}

@media (max-width: 650px) {

    .buyairtime-page {
        padding: 0 0 18px;
    }

    /* Keep the title, description and balance compact. */
    .buyairtime-page-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .buyairtime-eyebrow {
        margin-bottom: 2px;
        font-size: 8px;
    }

    .buyairtime-page-header h1 {
        font-size: 21px;
        line-height: 1.1;
    }

    .buyairtime-page-header p {
        margin-top: 4px;
        max-width: 225px;
        font-size: 9px;
        line-height: 1.35;
    }

    .buyairtime-balance-card {
        min-width: 105px;
        width: auto;
        margin-top: 0;
        padding: 7px 9px;
        gap: 7px;
        border-radius: 10px;
    }

    .buyairtime-balance-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        border-radius: 8px;
        font-size: 10px;
    }

    .buyairtime-balance-card span {
        font-size: 7px;
    }

    .buyairtime-balance-card strong {
        margin-top: 1px;
        font-size: 11px;
    }

    .buyairtime-layout {
        display: block;
    }

    .buyairtime-main-card {
        border-radius: 12px;
    }

    .buyairtime-card-header {
        gap: 8px;
        padding: 10px 12px;
    }

    .buyairtime-card-header h2 {
        font-size: 13px;
    }

    .buyairtime-card-header p {
        margin-top: 2px;
        font-size: 8px;
    }

    .buyairtime-secure-badge {
        padding: 4px 6px;
        gap: 3px;
        font-size: 7px;
    }

    .buyairtime-main-card form {
        padding: 11px 12px 12px;
    }

    .buyairtime-form-group {
        margin-bottom: 9px;
    }

    .buyairtime-label {
        margin-bottom: 4px;
        font-size: 9px;
    }

    /* Four networks stay on one row on mobile. */
    .buyairtime-network-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .buyairtime-network-btn {
        min-height: 42px;
        padding: 3px 2px;
        gap: 1px;
        border-radius: 8px;
    }

    .buyairtime-network-logo {
        font-size: 8px;
        line-height: 1;
    }

    .buyairtime-network-name {
        font-size: 6.5px;
        line-height: 1;
    }

    .buyairtime-phone-wrap input,
    .buyairtime-input-wrap input {
        min-height: 38px;
        height: 38px;
        padding-top: 0;
        padding-bottom: 0;
        border-radius: 8px;
        font-size: 11px;
    }

    .buyairtime-input-wrap input {
        padding-left: 27px;
    }

    .buyairtime-input-prefix {
        left: 10px;
        font-size: 11px;
    }

    .buyairtime-quick-section {
        margin: 2px 0 9px;
    }

    .buyairtime-quick-heading {
        margin-bottom: 5px;
        font-size: 9px;
    }

    .buyairtime-quick-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .buyairtime-quick-amount {
        min-height: 30px;
        border-radius: 7px;
        font-size: 8px;
    }

    .buyairtime-field-error {
        margin-top: 3px;
        font-size: 8px;
    }

    .buyairtime-live-breakdown {
        margin-top: 2px;
        padding: 3px 0 1px;
    }

    .buyairtime-live-row {
        min-height: 25px;
        font-size: 9px;
    }

    .buyairtime-live-row strong {
        font-size: 9px;
    }

    .buyairtime-live-row strong.buyairtime-payable-value {
        font-size: 10px;
    }

    .buyairtime-submit-btn {
        min-height: 40px;
        margin-top: 8px;
        padding: 0 12px;
        border-radius: 8px;
        gap: 6px;
        font-size: 10px;
    }

    .buyairtime-submit-icon,
    .buyairtime-submit-arrow {
        font-size: 9px;
    }

    .buyairtime-security-note {
        margin-top: 6px;
        font-size: 7px;
    }

    /* Secondary cards remain below the purchase flow. */
    .buyairtime-sidebar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .buyairtime-info-card,
    .buyairtime-balance-code-card {
        padding: 12px;
        border-radius: 11px;
    }

    .buyairtime-info-card h3,
    .buyairtime-balance-code-header h3 {
        font-size: 11px;
    }

    .buyairtime-info-card p,
    .buyairtime-balance-code-header p,
    .buyairtime-balance-code-note {
        font-size: 8px;
    }

    .buyairtime-info-list {
        gap: 5px;
    }

    .buyairtime-info-list > div {
        font-size: 8px;
    }
}

@media (max-width: 360px) {

    .buyairtime-page-header {
        grid-template-columns: minmax(0, 1fr) 98px;
    }

    .buyairtime-page-header p {
        max-width: 205px;
        font-size: 8px;
    }

    .buyairtime-balance-card {
        min-width: 98px;
        padding: 6px 7px;
    }

    .buyairtime-network-grid {
        gap: 4px;
    }

    .buyairtime-network-btn {
        min-height: 40px;
    }

    .buyairtime-network-logo {
        font-size: 7px;
    }

    .buyairtime-network-name {
        font-size: 6px;
    }
}


/* =========================================================
   FINAL MOBILE-FIRST AIRTIME ADJUSTMENTS

   These overrides keep the existing ExactSub design while
   improving quick-amount usability, insufficient-balance
   feedback and mobile readability.
========================================================= */

.buyairtime-quick-section {
    margin-bottom: 17px;
}

.buyairtime-quick-heading {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.buyairtime-quick-amounts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.buyairtime-quick-amount {
    min-height: 42px;
    padding: 0 6px;
    font-size: 13px;
    font-weight: 750;
}

.buyairtime-quick-amount.active {
    border-color: #022A7B;
    color: #ffffff;
    background: #022A7B;
    box-shadow: 0 3px 10px rgba(2, 42, 123, 0.16);
}

.buyairtime-balance-warning {
    display: none;
    align-items: flex-start;
    gap: 9px;
    margin-top: 11px;
    padding: 11px 12px;
    border: 1px solid #fecdca;
    border-radius: 10px;
    color: #b42318;
    background: #fff6f5;
    font-size: 12px;
    line-height: 1.5;
}

.buyairtime-balance-warning.is-visible {
    display: flex;
}

.buyairtime-balance-warning i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 13px;
}

.buyairtime-balance-warning strong {
    font-weight: 800;
}

.buyairtime-submit-btn.buyairtime-submit-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 650px) {

    .buyairtime-label {
        font-size: 14px;
    }

    .buyairtime-input-wrap input,
    .buyairtime-phone-wrap input {
        min-height: 50px;
        font-size: 15px;
    }

    .buyairtime-input-prefix {
        font-size: 15px;
    }

    .buyairtime-helper-text {
        font-size: 12px;
    }

    .buyairtime-quick-heading {
        font-size: 14px;
    }

    .buyairtime-quick-amounts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .buyairtime-quick-amount {
        min-height: 44px;
        font-size: 14px;
    }

    .buyairtime-live-row {
        min-height: 39px;
        font-size: 13px;
    }

    .buyairtime-live-row strong {
        font-size: 13px;
    }

    .buyairtime-live-row strong.buyairtime-payable-value {
        font-size: 14px;
    }

    .buyairtime-balance-warning {
        font-size: 13px;
    }

    .buyairtime-submit-btn {
        min-height: 52px;
        font-size: 15px;
    }
}

@media (max-width: 420px) {

    .buyairtime-label {
        font-size: 14px;
    }

    .buyairtime-input-wrap input,
    .buyairtime-phone-wrap input {
        min-height: 50px;
        font-size: 15px;
    }

    .buyairtime-quick-amounts {
        gap: 7px;
    }

    .buyairtime-quick-amount {
        min-height: 43px;
        font-size: 13px;
    }

    .buyairtime-balance-warning {
        padding: 10px 11px;
        font-size: 12px;
    }
}

/* =========================================================
   REQUESTED MOBILE SPACING REFINEMENT

   Only the requested mobile spacing has been adjusted here:
   - Phone Number input: 42px high
   - Amount input: 42px high
   - Quick amount buttons: 36px high
   - Reduced spacing between Top Up Airtime and Network
========================================================= */

@media (max-width: 650px) {

    /* Reduce the space between the card header and Network section. */
    .buyairtime-card-header {
        padding: 14px 18px 12px;
    }

    .buyairtime-main-card form {
        padding: 12px 18px 18px;
    }

    /* Keep Phone Number and Amount inputs uniform and compact. */
    .buyairtime-phone-wrap input,
    .buyairtime-input-wrap input {
        min-height: 42px;
        height: 42px;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Keep the quick amount buttons uniform and comfortable for touch. */
    .buyairtime-quick-amounts {
        gap: 6px;
    }

    .buyairtime-quick-amount {
        min-height: 36px;
    }

    /* Reduce the spacing around the Top Up Airtime quick amounts. */
    .buyairtime-quick-section {
        margin: 2px 0 14px;
    }

    .buyairtime-quick-heading {
        margin-bottom: 6px;
    }
}

@media (max-width: 420px) {

    /* Maintain the same compact sizing on smaller phones. */
    .buyairtime-phone-wrap input,
    .buyairtime-input-wrap input {
        min-height: 42px;
        height: 42px;
    }

    .buyairtime-quick-amounts {
        gap: 6px;
    }

    .buyairtime-quick-amount {
        min-height: 36px;
    }
}



/* =========================================================
   EXACTSUB AIRTIME — TRANSACTION RESPONSE MODAL
========================================================= */

.transaction-response-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.transaction-response-modal.is-visible {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.transaction-response-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 43, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.transaction-response-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px 26px 26px;
    border: 1px solid rgba(2, 42, 123, 0.08);
    border-radius: 22px;
    background: #ffffff;
    color: #172033;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    animation: transaction-response-enter 0.22s ease-out;
}

.transaction-response-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff3df;
    color: #b96a00;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

#transaction-response-title {
    margin: 0 0 12px;
    color: #022A7B;
    font-size: 23px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -0.4px;
}

#transaction-response-message {
    margin: 0;
    color: #566176;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.transaction-response-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 26px;
}

.transaction-response-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.transaction-response-modal__button:hover {
    transform: translateY(-1px);
}

.transaction-response-modal__button:focus-visible {
    outline: 3px solid rgba(41, 186, 34, 0.4);
    outline-offset: 3px;
}

.transaction-response-modal__button--primary {
    background: #022A7B;
    color: #ffffff;
}

.transaction-response-modal__button--primary:hover {
    background: #031f5b;
    color: #ffffff;
}

.transaction-response-modal__button--secondary {
    border-color: #dce4f1;
    background: #f5f8fd;
    color: #022A7B;
}

.transaction-response-modal__button--secondary:hover {
    background: #eaf0fa;
}

.transaction-response-modal__button--close {
    border-color: #e5e7eb;
    background: #ffffff;
    color: #596273;
}

.transaction-response-modal__button--close:hover {
    background: #f7f8fa;
}

/* Respect the HTML hidden attribute even if other CSS affects buttons. */
.transaction-response-modal [hidden] {
    display: none !important;
}

/* Prevent the page behind the modal from scrolling. */
body.transaction-response-modal-open {
    overflow: hidden;
}

@keyframes transaction-response-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .transaction-response-modal {
        padding: 14px;
    }

    .transaction-response-modal__dialog {
        max-width: 100%;
        padding: 28px 20px 22px;
        border-radius: 18px;
    }

    .transaction-response-modal__icon {
        width: 56px;
        height: 56px;
        font-size: 30px;
    }

    #transaction-response-title {
        font-size: 21px;
    }

    #transaction-response-message {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .transaction-response-modal,
    .transaction-response-modal__button {
        transition: none;
    }

    .transaction-response-modal__dialog {
        animation: none;
    }
}

