/* Food Handlers Fast - Modern Checkout */

#checkout-form {
    max-width: 820px;
    margin: 0 auto;
}

/* Main order card */
#checkout-form .checkout-order-summary > .border {
    border: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.08);
}

/* Order header */
#checkout-form .checkout-order-summary > .border > .fw-bold {
    background: #f7f8fa !important;
}

/* Checkout sections */
#checkout-form .checkout-section {
    border-radius: 14px;
}

#checkout-form .checkout-section > .bg-light {
    background: #f7f8fa !important;
    padding: 14px 18px !important;
    border-radius: 14px 14px 0 0;
    color: #222 !important;
    font-size: 17px;
}

/* Payment choices */
#checkout-form .payment-op {
    background: #fff;
    padding: 16px 18px !important;
    border-color: #e2e5e9 !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#checkout-form .payment-op:hover {
    border-color: #aeb5bd !important;
}

#checkout-form .payment-op:has(input[type="radio"]:checked) {
    border-color: #555 !important;
    box-shadow: 0 0 0 1px #555;
}

#checkout-form .payment-op .form-check {
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#checkout-form .payment-op .form-check-input {
    width: 19px;
    height: 19px;
    margin-top: 0;
}

#checkout-form .payment-op .form-check-label {
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Payment logos */
#checkout-form .payment-op .icon img {
    max-height: 27px;
    width: auto;
    margin-left: 6px;
}

/* Express Checkout */
#fhf-express-wallet {
    border-radius: 12px;
    margin: 12px 0 18px;
    padding: 18px !important;
    background: #fafbfc;
}

#fhf-express-wallet > .fw-bold {
    font-size: 17px;
}

/* Cardholder field */
#card-name-element {
    max-width: 100% !important;
    height: 46px;
    border-radius: 8px;
}

/* Prepaid field */
#checkout-form .form-control {
    min-height: 46px;
    border-radius: 8px;
}

/* Final order button */
#checkout-form .checkout-section.pt-4 button[type="submit"] {
    min-height: 54px;
    border-radius: 9px !important;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

/* Better overall spacing */
#checkout-form .row.pb-5.pt-5 {
    padding-top: 32px !important;
}

/* Mobile */
@media (max-width: 576px) {
    #checkout-form .row.pb-5.pt-5 {
        padding-top: 18px !important;
    }

    #checkout-form .payment-op {
        padding: 14px !important;
    }

    #checkout-form .payment-op .icon {
        text-align: left !important;
        margin-top: 8px;
        padding-left: 36px;
    }

    #checkout-form .payment-feilds {
        padding: 18px 8px 8px !important;
    }
}

/* Stronger Course / Price header */
#checkout-form .checkout-order-summary > .border > .fw-bold {
    font-weight: 800 !important;
    font-size: 17px;
    color: #212529 !important;
}

#checkout-form .checkout-order-summary > .border > .fw-bold .col-8,
#checkout-form .checkout-order-summary > .border > .fw-bold .col-4 {
    font-weight: 800 !important;
}

/* Stronger Course / Price header */
#checkout-form .checkout-order-summary > .border > .fw-bold {
    font-weight: 800 !important;
    font-size: 17px;
    color: #212529 !important;
}

#checkout-form .checkout-order-summary > .border > .fw-bold .col-8,
#checkout-form .checkout-order-summary > .border > .fw-bold .col-4 {
    font-weight: 800 !important;
}

/* Bold all course information and prices in order summary */
#checkout-form .checkout-order-summary > .border > .row:not(.fw-bold) .col-8,
#checkout-form .checkout-order-summary > .border > .row:not(.fw-bold) .col-4 {
    font-weight: 700 !important;
    color: #212529 !important;
}

/* Bold course/bundle name and price in order summary */
#checkout-form .checkout-order-summary .col-sm-10 > .p-2 {
    font-weight: 700 !important;
    color: #212529 !important;
}

#checkout-form .checkout-order-summary > .border > div > .row.g-0 > .col-sm-4 > .border-bottom > .p-2 {
    font-weight: 700 !important;
    color: #212529 !important;
}

/* TABC fee explanation */

.tabc-fee-note {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f7f9fb;
    border-left: 3px solid #29abe2;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.45;
    color: #4f5963;
    text-indent: 0;
}

.tabc-fee-note strong {
    color: #1f2933;
    font-size: 12px;
}

/* TABC mandatory state fee notice */
.tabc-fee-note {
    margin: 10px 12px 12px;
    padding: 11px 13px;
    background: #f5f9fc;
    border-left: 4px solid #29abe2;
    border-radius: 6px;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
}

.tabc-fee-note > strong {
    display: block;
    color: #1f2933;
    font-size: 13px;
    margin-bottom: 3px;
}

.tabc-fee-note div strong {
    color: #1f2933;
}

/* TABC state fee disclosure - final */
.checkout-modern .tabc-fee-note,
.tabc-fee-note {
    display: block !important;
    width: calc(100% - 24px) !important;
    margin: 10px 12px 12px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    background: #f4f7fa !important;
    border: 1px solid #dce4ea !important;
    border-left: 4px solid #29abe2 !important;
    border-radius: 6px !important;
    color: #4b5563 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-indent: 0 !important;
}

.checkout-modern .tabc-fee-note > strong,
.tabc-fee-note > strong {
    display: block !important;
    margin-bottom: 3px !important;
    color: #1f2933 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.tabc-fee-note div {
    margin: 0 !important;
    padding: 0 !important;
}

.tabc-fee-note div strong {
    color: #1f2933 !important;
    font-weight: 700 !important;
}

/* Clean checkout line-item alignment */

.checkout-item-details,
.checkout-item-prices {
    line-height: 1.4;
}

.checkout-item-prefix,
.checkout-price-prefix {
    min-height: 22px;
}

.checkout-item-name,
.checkout-item-price {
    min-height: 24px;
}

.checkout-item-fee-label,
.checkout-item-fee-amount {
    margin-top: 8px;
    min-height: 22px;
    font-size: 14px;
    line-height: 22px;
}

.checkout-item-fee-label {
    font-weight: 400;
}

.checkout-item-fee-amount {
    font-weight: 400;
}

@media (max-width: 575px) {
    .checkout-item-prefix,
    .checkout-price-prefix {
        min-height: auto;
    }

    .checkout-item-fee-label,
    .checkout-item-fee-amount {
        margin-top: 6px;
    }
}

/* Mobile order summary */
@media (max-width: 575px) {
    #checkout-form .checkout-order-summary {
        font-size: 13px;
    }

    #checkout-form .checkout-order-summary .p-2 {
        padding: 8px !important;
    }

    #checkout-form .checkout-order-summary .checkout-item-prefix,
    #checkout-form .checkout-order-summary .checkout-item-name {
        line-height: 1.3;
    }

    #checkout-form .checkout-order-summary .checkout-item-fee-label,
    #checkout-form .checkout-order-summary .checkout-item-fee-amount {
        font-size: 12px !important;
        line-height: 1.35 !important;
        min-height: auto !important;
        margin-top: 7px !important;
    }

    #checkout-form .checkout-order-summary .tabc-fee-note {
        width: calc(100% - 16px) !important;
        margin: 8px !important;
        padding: 10px 11px !important;
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    #checkout-form .checkout-order-summary .tabc-fee-note > strong {
        font-size: 12px !important;
    }
}

/* Guarantee order summary remains visible on all checkout screen sizes */
#checkout-form .checkout-order-summary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative;
    width: 100%;
}

@media (max-width: 575px) {
    #checkout-form .checkout-order-summary {
        display: block !important;
        width: 100% !important;
        margin-bottom: 16px !important;
    }

    #checkout-form .checkout-order-summary > .border {
        display: block !important;
        width: 100% !important;
    }
}
