/* ============================================================
   PAYMENT PAGE STYLES — Infra Polytechnic Institute
   ============================================================ */

/* ── Payment Layout ── */
.payment-section {
    background: var(--gray-100);
    padding: 50px 0 80px;
}

/* Increase content width for payment pages and center main card */
.payment-section .container { max-width: 1400px; }

#paymentCard .payment-card { max-width: 980px; margin: 0 auto; }
#successScreen { max-width: 980px; margin: 0 auto; }

.payment-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: flex-start;
}

.payment-layout.success-layout {
    display: flex;
    justify-content: center;
}

.payment-layout.success-layout .success-screen {
    width: 100%;
    max-width: 600px;
}

/* ── Payment Main Card ── */
.payment-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.payment-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 24px 30px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.payment-card-header .header-icon { font-size: 2rem; }
.payment-card-header h2 { color: var(--white); font-size: 1.35rem; margin: 0; }
.payment-card-header p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin: 4px 0 0; }

.payment-card-body { padding: 30px; }

/* ── Amount Display ── */
.amount-display {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0d3349 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    margin-bottom: 32px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.amount-display::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.amount-label {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.amount-value {
    font-size: 2.6rem;
    font-weight: 800;
    color: #f9ca24;
    line-height: 1.1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.amount-col { flex: 1; min-width: 160px; }
.amount-due { text-align: right; }
.due-value { color: #c0392b; font-weight: 700; }

.amount-note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ── Payment Methods ── */
.payment-method-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.payment-type-card {
    padding: 16px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.payment-type-card:hover {
    border-color: var(--primary);
}

.payment-type-card.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

/* Payment Method Card */
.payment-method-card {
    border: 3px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 22px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.payment-method-card:hover {
    border-color: var(--gray-400);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.payment-method-card.selected {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Nagad */
.payment-method-card[data-method="nagad"].selected {
    border-color: #F7941D;
    background: #FFF8F0;
}

/* bKash */
.payment-method-card[data-method="bkash"].selected {
    border-color: #E2136E;
    background: #FFF0F5;
}


.selected-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--white);
    font-weight: 700;
}

.payment-method-card.selected .selected-check { display: flex; }

.payment-method-card[data-method="nagad"].selected .selected-check { background: #F7941D; }
.payment-method-card[data-method="bkash"].selected .selected-check { background: #E2136E; }

/* Payment logos using styled divs */
.pm-logo {
    width: 80px;
    height: 50px;
    margin: 0 auto 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.pm-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Simple file input styling for payment proof */
.file-upload input[type="file"] {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    font-size: 0.95rem;
}
.file-upload input[type="file"]:focus {
    outline: 2px solid rgba(26,46,74,0.08);
    box-shadow: none;
}
.file-upload label { display:block; margin-bottom:6px; }

/* Highlight SSC inside merchant-number */
.merchant-number strong {
    color: var(--primary);
    font-weight: 800;
    margin-right: 4px;
}

.pm-logo.nagad,
.pm-logo.bkash {
    background: transparent;
    box-shadow: none;
}

/* Rocket styles removed (method deprecated) */

.pm-logo span {
    font-size: 1.6rem;
}

.pm-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.pm-desc {
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ── Payment Instructions ── */
.payment-instructions {
    display: none;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 25px;
    border: 1px solid var(--gray-200);
    animation: fadeInDown 0.3s ease;
}

.payment-instructions.show { display: block; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.instructions-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.instructions-logo {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 900;
    flex-shrink: 0;
}

.instructions-logo.nagad  { background: linear-gradient(135deg, #F7941D, #f97316); }
.instructions-logo.bkash  { background: linear-gradient(135deg, #E2136E, #be185d); }

.instructions-header h4 {
    font-size: 1.05rem;
    color: var(--dark);
    margin: 0;
}

.instructions-header p {
    font-size: 0.82rem;
    color: var(--gray-600);
    margin: 2px 0 0;
}

.instructions-steps {
    counter-reset: inst-counter;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    counter-increment: inst-counter;
}

.inst-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.inst-step[data-method="nagad"]  .inst-num { background: #F7941D; }
.inst-step[data-method="bkash"]  .inst-num { background: #E2136E; }
/* Rocket instruction styles removed */

.inst-text {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
    flex: 1;
}

.merchant-number {
    display: inline-block;
    background: var(--dark);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 50px;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 3px;
}

/* ── Transaction Form ── */
.transaction-form {
    display: none;
    animation: fadeInDown 0.3s ease;
}

.transaction-form.show { display: block; }

.transaction-form .form-group { margin-bottom: 18px; }

.txn-note {
    background: rgba(243,156,18,0.1);
    border: 1px solid rgba(243,156,18,0.3);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: #7d6608;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.txn-note-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Terms ── */
.terms-section {
    margin-bottom: 22px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
}

.terms-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ── Partial Amount Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
}

.partial-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(100%, 440px);
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
}

.modal-card {
    padding: 28px 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--dark);
}

.modal-note {
    margin: 10px 0 0;
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.65;
}

.partial-modal .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.partial-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,82,118,0.1);
}

.partial-modal .field-hint {
    display: block;
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.partial-modal .field-error {
    display: block;
    margin-top: 10px;
    padding: 9px 14px;
    background: rgba(220,53,69,0.07);
    border: 1px solid rgba(220,53,69,0.35);
    border-radius: 8px;
    font-size: 0.84rem;
    color: var(--danger);
    line-height: 1.6;
}

.partial-modal .field-error:empty {
    display: none;
}

.partial-modal .form-control.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(231,76,60,0.1);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}

.modal-actions .btn {
    min-width: 110px;
}

.terms-check a {
    color: var(--primary);
    text-decoration: underline;
}

/* ── Submit Button ── */
.btn-pay {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(39,174,96,0.35);
}

.btn-pay:hover:not(:disabled) {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(39,174,96,0.4);
}

.btn-pay:disabled {
    background: #d3d3d3;
    cursor: not-allowed;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: none;
    opacity: 1;
    color: #666;
}

.processing-text { display: none; }

.btn-pay.processing .btn-text { display: none; }
.btn-pay.processing .processing-text {
    display: inline-flex;
    align-items: baseline;
}

.processing-dots {
    display: inline-flex;
    width: 1.2em;
    margin-left: 2px;
}

.processing-dots i {
    width: 0.22em;
    height: 0.22em;
    margin: 0 1px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.25;
    animation: processing-dot 1.2s ease-in-out infinite;
}

.processing-dots i:nth-child(2) { animation-delay: 0.2s; }
.processing-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes processing-dot {
    0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-0.18em); }
}

/* ── Payment Summary Sidebar ── */
.payment-sidebar {
    /* sidebar removed from template; hidden to avoid layout gaps */
    display: none;
}

.summary-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.summary-header {
    background: var(--dark);
    color: var(--white);
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-body { padding: 20px; }

.applicant-info {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed var(--gray-200);
}

.applicant-avatar {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 700;
}

.applicant-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.applicant-course {
    font-size: 0.82rem;
    color: var(--gray-600);
}

.reg-id {
    display: inline-block;
    background: rgba(26,82,118,0.08);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 8px;
    font-family: monospace;
    letter-spacing: 1px;
}

.summary-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 0.88rem;
    border-bottom: 1px dashed var(--gray-200);
}

.summary-items li:last-child { border-bottom: none; }
.summary-items li span { color: var(--gray-600); }
.summary-items li strong { color: var(--dark); font-weight: 600; }

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 0;
    margin-top: 4px;
    border-top: 2px solid var(--dark);
    font-size: 1.05rem;
}

.total-row span { font-weight: 700; color: var(--dark); }
.total-row strong { color: var(--secondary); font-size: 1.2rem; font-weight: 800; }

/* Secure badge */
.secure-badge {
    background: rgba(39,174,96,0.08);
    border: 1px solid rgba(39,174,96,0.25);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.secure-badge .lock-icon { font-size: 1.6rem; margin-bottom: 6px; }
.secure-badge p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
.secure-badge strong { color: var(--secondary); font-size: 0.88rem; display: block; margin-bottom: 4px; }

/* Need help */
.help-card {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 16px;
}

.help-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.7;
}

.help-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
}

/* ── Success Screen ── */
.success-screen {
    display: none;
    text-align: center;
    padding: 60px 30px;
}

.success-screen.show { display: block; animation: fadeInUp 0.5s ease; }

.success-animation {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary), #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin: 0 auto 24px;
    box-shadow: 0 8px 30px rgba(39,174,96,0.4);
    animation: successPop 0.5s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}

@keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-screen h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.success-screen p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 22px;
    line-height: 1.9;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.success-reg-id {
    display: inline-block;
    background: var(--gray-100);
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    font-family: monospace;
    margin: 10px 0 28px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Invoice Print ── */
#invoicePrint { display: none; }

@media print {
    /* hide everything except invoice */
    body > *:not(#invoicePrint) { display: none !important; }
    #invoicePrint {
        display: flex !important;
        flex-direction: column;
        min-height: 100vh;
        font-family: 'Li Ador Noirrit', 'Noto Sans Bengali', 'SolaimanLipi', Arial, sans-serif;
        color: #222;
        padding: 30px 36px;
        max-width: 800px;
        margin: 0 auto;
    }

    /* Header */
    .inv-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 14px;
        border-bottom: 3px solid #f0c400;
    }
    .inv-brand { display: flex; align-items: center; gap: 12px; }
    .inv-logo { width: 52px; height: 52px; object-fit: contain; }
    .inv-inst-name { font-size: 15px; font-weight: 700; color: #1a2e4a; }
    .inv-inst-sub { font-size: 11px; color: #666; margin-top: 2px; }
    .inv-title-block { text-align: right; }
    .inv-title {
        font-size: 32px;
        font-weight: 900;
        letter-spacing: 3px;
        color: #1a2e4a;
        text-transform: uppercase;
    }
    .inv-title-bar {
        height: 6px;
        background: #f0c400;
        margin-top: 4px;
        width: 100%;
    }

    /* Meta row */
    .inv-meta-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 18px;
        margin: 20px 0 24px;
    }
    .inv-bill-to { flex: 1 1 58%; }
    .inv-ref { flex: 0 0 36%; text-align: right; }
    .inv-label { font-size: 11px; color: #888; text-transform: uppercase; margin-bottom: 4px; }
    .inv-field-label { color: #888; font-size: 11px; }
    .inv-student-name { font-size: 15px; font-weight: 700; color: #1a2e4a; }
    .inv-student-sub { font-size: 12px; color: #333; margin-top: 5px; }
    .inv-ref-table { border-collapse: collapse; font-size: 12px; width: 100%; table-layout: fixed; }
    .inv-ref-table td { padding: 3px 8px; vertical-align: top; line-height: 1.25; }
    .inv-ref-table td:first-child { width: 50%; color: #888; font-weight: 600; text-align: left; padding-top:4px; }
    .inv-ref-table td:last-child { width: 50%; font-weight: 700; color: #1a2e4a; text-align: right; padding-top:4px; }

    /* Fee table */
    .inv-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 24px;
        border: 1.5px solid #ccc;
    }
    .inv-table thead tr {
        background: #2c3e50;
        color: #fff;
    }
    .inv-table th {
        padding: 9px 14px;
        font-size: 12px;
        text-align: left;
        letter-spacing: 0.5px;
        border: 1px solid #444;
        font-family: 'Li Ador Noirrit', 'Noto Sans Bengali', Arial, sans-serif;
    }
    .inv-table tbody tr:nth-child(odd) { background: #f9f9f9; }
    .inv-table td {
        padding: 9px 14px;
        font-size: 12px;
        border: 1px solid #ccc;
        font-family: 'Li Ador Noirrit', 'Noto Sans Bengali', Arial, sans-serif;
    }
    .inv-table td:last-child { font-weight: 600; text-align: right; }
    .inv-table th:last-child { text-align: right; }

    /* Totals section */
    .inv-totals {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 32px;
    }
    .inv-thank { max-width: 55%; font-size: 12px; color: #333; line-height: 1.6; }
    .inv-terms-title { font-weight: 700; margin-top: 8px; font-size: 11px; text-transform: uppercase; color: #444; }
    .inv-terms-text { font-size: 11px; color: #666; margin-top: 2px; }
    .inv-total-block {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-start;
        text-align: right;
        min-width: 200px;
        gap: 8px;
        margin-top: 0;
        align-self: flex-start;
    }
    .inv-subtotal-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 14px;
        font-weight: bold;
        padding: 2px 0;
        color: #555;
        gap: 20px;
        width: 100%;
    }
    .inv-grand-total {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 14px;
        padding: 2px 0;
        color: #555;
        font-weight: bold;
        gap: 20px;
        width: 100%;
    }

    /* Footer */
    .inv-footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        border-top: none;
        padding-top: 10px;
        font-size: 11px;
        color: #555;
    }
    .inv-sign { text-align: center; font-size: 11px; color: #444; }
    .inv-sign-line {
        width: 160px;
        border-top: 1px solid #444;
        margin-bottom: 4px;
    }
}

@media print {
    /* hide everything except invoice */
    body > *:not(#invoicePrint) { display: none !important; }
    #invoicePrint { display: flex !important; flex-direction: column; min-height: 100vh; padding-bottom: 80px !important; }
    #invoicePrint .inv-footer { margin-top: auto; }
    /* remove any stray separators immediately under totals */
    #invoicePrint .inv-totals { border-bottom: none !important; margin-bottom: 18px; }
    #invoicePrint .inv-table { border-bottom: 0 none !important; }
    #invoicePrint hr { display: none !important; }
}


/* ── Responsive ── */
@media (max-width: 992px) {
    .payment-layout { grid-template-columns: 1fr; }
    .payment-sidebar { display: none; }
    .summary-card { max-width: 500px; }
    .payment-methods-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .payment-methods-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .pm-logo { width: 60px; height: 40px; }
    .pm-name { font-size: 0.88rem; }
    .payment-card-body { padding: 20px 18px; }
    .amount-value { font-size: 2.3rem; }
}

@media (max-width: 480px) {
    .payment-methods-grid { grid-template-columns: 1fr; }
    .payment-method-card { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; }
    .pm-logo { flex-shrink: 0; margin: 0; }
    .pm-desc { display: none; }
    .selected-check { top: 50%; right: 16px; transform: translateY(-50%); }
}
