﻿/* ---------------------------------------------
   AUTHORIZED CHARGES
--------------------------------------------- */

.charge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.charge-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f4f6fa;
    padding: 16px;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
    height: 120px;
    box-sizing: border-box;
    text-align: center;
}

.charge-card > input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.card-icon {
    font-size: 28px;
    transition: transform 0.25s ease;
}

.card-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: color 0.25s ease;
}

.charge-card:has(> input[type="checkbox"]:checked) {
    border-color: #0052cc;
    background: #e8f0ff;
}

.charge-card:has(> input[type="checkbox"]:checked) .card-label {
    color: #0052cc;
}

.charge-card:has(> input[type="checkbox"]:checked) .card-icon {
    transform: scale(1.15);
}

.cardnumber-field {
    position: relative;
}

.cardnumber-input {
    padding-right: 52px !important; /* space for icon */
    height: 44px; /* match your actual input height */
    line-height: 44px; /* ensures text and icon share baseline */
    box-sizing: border-box; /* prevents padding from altering height */
}

.ccicon {
    position: absolute;
    top: 55%;
    right: 12px;
    width: 40px;
    height: 26px;
    transform: translateY(-50%); /* perfect vertical centering */
    pointer-events: none;
    display: block;
}

/* ---------------------------------------------
   PAYMENT METHOD
--------------------------------------------- */

.payment-method {
    margin-top: 24px;
}

.payment-row {
    margin-top: 14px;
}

.payment-row-inline-3 {
    display: flex;
    gap: 16px;
}

    .payment-row-inline-3 .payment-col {
        flex: 1;
    }

@media (max-width: 480px) {
    .payment-row-inline-3 {
        flex-direction: column;
    }
}

/* ---------------------------------------------
   AUTHORIZATION TERMS
--------------------------------------------- */

.auth-options {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
}

    .auth-option input[type="radio"] {
        width: 18px;
        height: 18px;
        margin: 0;
    }

.auth-expiry-date {
    margin-left: 28px;
    margin-top: -4px;
}

    .auth-expiry-date input[type="date"] {
        width: 200px;
        padding: 12px 14px;
        margin-top: 6px;
        border-radius: 10px;
        border: 1px solid #c9cdd4;
        font-size: 16px;
        background: #ffffff;
        box-sizing: border-box;
        height: 48px;
        appearance: none;
    }

        .auth-expiry-date input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
            opacity: 0.7;
            padding-right: 4px;
        }

.email-copy-field {
    margin-top: 20px;
}

/* ---------------------------------------------
   TERMS (NO SIGNATURE)
--------------------------------------------- */

.auth-terms {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-box {
    background: #f4f6fa;
    border: 1px solid #d4d7dd;
    border-radius: 10px;
    padding: 16px;
}

.terms-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #333;
}

.terms-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.terms-agree input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 3px 0px 0px 0px;
}
