/* =====================================================
   CHECKOUT HEADER
===================================================== */

.checkout-page-header {
    background: #f7f7f8;
    padding: 45px 0;
    border-bottom: 1px solid #eee;
}

.checkout-page-header h1 {
    margin: 12px 0 7px;
    font-size: 38px;
    font-weight: 800;
}

.checkout-page-header p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

.checkout-breadcrumb {
    display: flex;
    gap: 8px;
    color: #999;
    font-size: 13px;
}

.checkout-breadcrumb a {
    color: #555;
    text-decoration: none;
}


/* =====================================================
   CHECKOUT SECTION
===================================================== */

.checkout-section {
    padding: 50px 0 80px;
    background: #fff;
}


/* =====================================================
   CHECKOUT CARD
===================================================== */

.checkout-card {
    margin-bottom: 22px;
    padding: 25px;

    border: 1px solid #e7e7e7;
    border-radius: 15px;

    background: #fff;
}

.checkout-card-header {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    margin-bottom: 25px;
}

.checkout-step {
    flex: 0 0 34px;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #00409e;
    color: #fff;

    font-size: 13px;
    font-weight: 700;
}

.checkout-card-header h2 {
    margin: 0 0 4px;

    font-size: 18px;
    font-weight: 800;
}

.checkout-card-header p {
    margin: 0;

    color: #888;

    font-size: 12px;
}


/* =====================================================
   FORM
===================================================== */

.form-label {
    margin-bottom: 7px;

    color: #222;

    font-size: 12px;
    font-weight: 700;
}

.form-label span {
    color: #dc3545;
}

.checkout-input {
    min-height: 45px;

    border-color: #ddd;

    border-radius: 7px;

    font-size: 13px;

    box-shadow: none !important;
}

textarea.checkout-input {
    min-height: auto;
}

.checkout-input:focus {
    border-color: #00409e;
}

.field-error {
    display: block;

    margin-top: 5px;

    color: #dc3545;

    font-size: 11px;
}


/* =====================================================
   DELIVERY METHOD
===================================================== */

.delivery-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-option {
    display: block;

    padding: 15px;

    border: 1px solid #ddd;
    border-radius: 9px;

    cursor: pointer;

    transition: .2s ease;
}

.delivery-option:hover {
    border-color: #999;
}

.delivery-option.active {
    border-color: #00409e;
    background: #fafafa;
}

.delivery-option input {
    display: none;
}

.delivery-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.delivery-option-content strong {
    display: block;

    font-size: 13px;
}

.delivery-option-content small {
    display: block;

    margin-top: 4px;

    color: #888;

    font-size: 11px;
}

.delivery-option-content b {
    font-size: 13px;
}


/* =====================================================
   PAYMENT
===================================================== */

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px;

    border: 1px solid #ddd;

    border-radius: 9px;

    cursor: pointer;

    transition: .2s ease;
}

.payment-option:hover {
    border-color: #999;
}

.payment-option.active {
    border-color: #00409e;
    background: #fafafa;
}

.payment-option input {
    display: none;
}

.payment-option-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #f2f2f2;

    font-size: 18px;
}

.payment-option-info {
    flex: 1;
}

.payment-option-info strong {
    display: block;

    font-size: 13px;
}

.payment-option-info small {
    display: block;

    margin-top: 3px;

    color: #888;

    font-size: 11px;
}

.payment-check {
    display: none;

    font-size: 18px;
}

.payment-option.active .payment-check {
    display: block;
}


/* =====================================================
   ORDER SUMMARY
===================================================== */

.checkout-summary {
    position: sticky;
    top: 25px;

    padding: 25px;

    border: 1px solid #e7e7e7;

    border-radius: 15px;

    background: #fff;
}

.checkout-summary h2 {
    margin-bottom: 22px;

    font-size: 20px;
    font-weight: 800;
}


/* =====================================================
   CHECKOUT ITEMS
===================================================== */

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-item {
    display: flex;
    align-items: center;

    gap: 12px;
}

.checkout-item-image {
    position: relative;

    width: 62px;
    height: 62px;

    flex: 0 0 62px;

    border-radius: 8px;

    overflow: hidden;

    background: #f5f5f5;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.checkout-item-quantity {
    position: absolute;

    top: 3px;
    right: 3px;

    min-width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    border-radius: 10px;

    background: #00409e;
    color: #fff;

    font-size: 9px;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;

    color: #222;

    font-size: 12px;
    font-weight: 700;
}

.checkout-item-variant {
    margin-top: 3px;

    color: #888;

    font-size: 10px;
}

.checkout-item-price {
    font-size: 12px;
    font-weight: 800;
}


/* =====================================================
   SUMMARY
===================================================== */

.checkout-summary-divider {
    height: 1px;

    margin: 20px 0;

    background: #eee;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;

    margin-bottom: 13px;

    color: #777;

    font-size: 12px;
}

.checkout-summary-row strong {
    color: #111;
}

.checkout-discount {
    color: #198754 !important;
}

.checkout-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-grand-total span {
    font-size: 15px;
    font-weight: 700;
}

.checkout-grand-total strong {
    font-size: 22px;
    font-weight: 800;
}


/* =====================================================
   TERMS
===================================================== */

.terms-checkbox {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    margin-top: 25px;

    color: #777;

    font-size: 11px;

    line-height: 1.6;

    cursor: pointer;
}

.terms-checkbox input {
    width: 15px;
    height: 15px;

    flex: 0 0 15px;

    margin-top: 2px;
}

.terms-checkbox a {
    color: #111;
    font-weight: 600;
}


/* =====================================================
   PLACE ORDER
===================================================== */

.place-order-btn {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 18px;

    border: 0;
    border-radius: 9px;

    background: #00409e;
    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;
}

.place-order-btn:hover {
    background: #333;

    transform: translateY(-1px);
}

.place-order-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}


/* =====================================================
   SECURITY
===================================================== */

.checkout-security {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 18px;
    padding-top: 17px;

    border-top: 1px solid #eee;

    color: #888;

    font-size: 10px;
}


/* =====================================================
   EMPTY CHECKOUT
===================================================== */

.checkout-empty {
    max-width: 550px;

    margin: 20px auto;

    padding: 70px 20px;

    text-align: center;
}

.checkout-empty-icon {
    width: 85px;
    height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #f5f5f5;

    font-size: 35px;
}

.checkout-empty h2 {
    font-size: 25px;
    font-weight: 800;
}

.checkout-empty p {
    color: #777;
    font-size: 13px;
}

.checkout-shop-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 47px;

    padding: 0 25px;

    margin-top: 10px;

    border-radius: 8px;

    background: #00409e;
    color: #fff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   SUCCESS MODAL
===================================================== */

.order-success {
    padding: 45px 30px;

    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #eaf7ef;

    color: #198754;

    font-size: 32px;
}

.order-success h2 {
    font-size: 22px;
    font-weight: 800;
}

.order-success p {
    max-width: 400px;

    margin: 10px auto 20px;

    color: #777;

    font-size: 13px;

    line-height: 1.7;
}

.order-number-box {
    display: inline-flex;

    flex-direction: column;

    gap: 3px;

    padding: 12px 25px;

    margin-bottom: 20px;

    border-radius: 8px;

    background: #f6f6f6;
}

.order-number-box span {
    color: #888;
    font-size: 10px;
}

.order-number-box strong {
    font-size: 16px;
}

.success-home-btn {
    display: flex;

    align-items: center;
    justify-content: center;

    height: 46px;

    border-radius: 8px;

    background: #00409e;
    color: #fff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .checkout-page-header {
        padding: 35px 0;
    }

    .checkout-page-header h1 {
        font-size: 30px;
    }

    .checkout-section {
        padding: 30px 0 50px;
    }

    .checkout-card {
        padding: 20px;
    }

    .checkout-summary {
        position: static;
        padding: 20px;
    }

}