/* =========================================
   CHECKOUT SECTION
========================================= */

.checkout-section {
    width: 100%;
    padding: 80px 0 110px;
    background: #f8fafc;
}

.checkout-container {
    width: calc(100% - 160px);
    max-width: 1400px;
    margin: auto;
}


/* =========================================
   CHECKOUT HEADING
========================================= */

.checkout-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 60px;
}

.checkout-heading span {
    display: inline-block;

    color: #2563eb;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.checkout-heading h1 {
    margin: 15px 0;

    color: #111827;

    font-size: 46px;
    line-height: 1.2;

    font-family: 'Nunito', sans-serif;
    font-weight: 900;
}

.checkout-heading h1 span {
    color: #2563eb;
    font-size: inherit;
    letter-spacing: normal;
    text-transform: none;
}

.checkout-heading p {
    margin: 0;

    color: #64748b;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   CHECKOUT GRID
========================================= */

.checkout-grid {
    display: grid;

    grid-template-columns: 1.35fr .75fr;

    gap: 35px;

    align-items: start;
}


/* =========================================
   CHECKOUT CARD
========================================= */

.checkout-card {
    padding: 32px;

    margin-bottom: 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}


/* =========================================
   CARD HEADING
========================================= */

.checkout-card-heading {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    margin-bottom: 30px;
}

.checkout-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 50%;

    font-size: 13px;

    font-weight: 900;
}

.checkout-card-heading h2 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 23px;

    font-family: 'Nunito', sans-serif;
}

.checkout-card-heading p {
    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================
   FORM GRID
========================================= */

.checkout-form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.checkout-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.checkout-field.full-width {
    grid-column: 1 / -1;
}

.checkout-field label {
    color: #374151;

    font-size: 14px;

    font-weight: 800;
}

.checkout-field input,
.checkout-field select {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #d1d5db;

    border-radius: 9px;

    outline: none;

    color: #111827;

    font-size: 14px;

    transition: all .25s ease;
}

.checkout-field input::placeholder {
    color: #9ca3af;
}

.checkout-field input:focus,
.checkout-field select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}


/* =========================================
   PAYMENT OPTIONS
========================================= */

.payment-options {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.payment-option {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    cursor: pointer;

    transition: all .25s ease;
}

.payment-option:hover {
    border-color: #93c5fd;
}

.payment-option.active {
    border-color: #2563eb;

    background: #f8fbff;
}

.payment-option input {
    position: absolute;

    opacity: 0;
}

.payment-radio {
    width: 18px;
    height: 18px;

    flex-shrink: 0;

    border: 2px solid #cbd5e1;

    border-radius: 50%;

    position: relative;
}

.payment-option input:checked+.payment-radio {
    border-color: #2563eb;
}

.payment-option input:checked+.payment-radio::after {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: #2563eb;

    border-radius: 50%;
}

.payment-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eff6ff;

    color: #2563eb;

    border-radius: 10px;
}

.payment-content {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.payment-content strong {
    color: #111827;

    font-size: 15px;
}

.payment-content span {
    color: #64748b;

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================
   ORDER SUMMARY
========================================= */

.order-summary {
    position: sticky;

    top: 30px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 12px 35px rgba(15, 23, 42, .06);
}

.order-summary-heading {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 22px;

    border-bottom: 1px solid #e5e7eb;
}

.order-summary-heading h2 {
    margin: 0;

    color: #111827;

    font-size: 23px;

    font-family: 'Nunito', sans-serif;
}

.order-summary-heading span {
    color: #64748b;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================
   CHECKOUT PRODUCT
========================================= */

.checkout-product {
    display: grid;

    grid-template-columns: 75px 1fr auto;

    gap: 15px;

    align-items: center;

    padding: 22px 0;

    border-bottom: 1px solid #e5e7eb;
}

.checkout-product-image {
    width: 75px;
    height: 75px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f8fafc;

    border-radius: 10px;

    overflow: hidden;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.checkout-product-info {
    min-width: 0;
}

.checkout-product-info span {
    display: block;

    margin-bottom: 4px;

    color: #2563eb;

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;
}

.checkout-product-info h3 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 14px;

    line-height: 1.4;
}

.checkout-product-info p {
    margin: 0;

    color: #64748b;

    font-size: 12px;
}

.checkout-product-price {
    color: #111827;

    font-size: 15px;

    white-space: nowrap;
}


/* =========================================
   PRICE DETAILS
========================================= */

.order-price-details {
    padding: 20px 0;

    border-bottom: 1px solid #e5e7eb;
}

.price-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 13px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-row span {
    color: #64748b;

    font-size: 14px;
}

.price-row strong {
    color: #111827;

    font-size: 14px;
}

.free-shipping {
    color: #16a34a !important;
}

.discount-price {
    color: #16a34a !important;
}


/* =========================================
   TOTAL
========================================= */

.checkout-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px 0;
}

.checkout-total span {
    color: #111827;

    font-size: 17px;

    font-weight: 800;
}

.checkout-total strong {
    color: #2563eb;

    font-size: 28px;

    font-weight: 900;
}


/* =========================================
   PLACE ORDER
========================================= */

.place-order-btn {
    width: 100%;

    height: 56px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    transition: all .3s ease;
}

.place-order-btn:hover {
    background: #1d4ed8;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, .20);
}


/* =========================================
   SECURE CHECKOUT
========================================= */

.secure-checkout {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin: 15px 0 20px;

    color: #64748b;

    font-size: 12px;
}

.secure-checkout i {
    color: #16a34a;
}


/* =========================================
   BACK TO CART
========================================= */

.back-cart {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #2563eb;

    font-size: 14px;

    font-weight: 800;

    text-decoration: none;
}

.back-cart:hover {
    text-decoration: underline;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .checkout-container {
        width: calc(100% - 80px);
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: relative;

        top: auto;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .checkout-section {
        padding: 60px 0 80px;
    }

    .checkout-container {
        width: calc(100% - 40px);
    }

    .checkout-heading {
        margin-bottom: 40px;
    }

    .checkout-heading h1 {
        font-size: 34px;
    }

    .checkout-heading p {
        font-size: 15px;
    }

    .checkout-card {
        padding: 22px;

        border-radius: 15px;
    }

    .checkout-card-heading {
        margin-bottom: 25px;
    }

    .checkout-card-heading h2 {
        font-size: 20px;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .checkout-field.full-width {
        grid-column: auto;
    }

    .order-summary {
        padding: 22px;

        border-radius: 15px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .checkout-container {
        width: calc(100% - 30px);
    }

    .checkout-heading h1 {
        font-size: 30px;
    }

    .checkout-card {
        padding: 18px;
    }

    .checkout-product {
        grid-template-columns: 60px 1fr;

        gap: 12px;
    }

    .checkout-product-image {
        width: 60px;
        height: 60px;
    }

    .checkout-product-price {
        grid-column: 2;

        margin-top: -5px;
    }

    .checkout-total strong {
        font-size: 24px;
    }

}