/*=========================================
CHECKOUT PAGE
=========================================*/

.woocommerce-checkout{
    background:#f7f9fc;
    padding:70px 0;
}

.teg-checkout-page .container{
    max-width:1400px;
    margin:auto;
    padding:0 20px;
}

/*=========================================
HEADER
=========================================*/

.teg-checkout-header{
    text-align:center;
    margin-bottom:60px;
}

.checkout-badge{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 18px;
    background:#eef4ff;
    color:#173F90;
    border:1px solid #dce6ff;
    border-radius:40px;
    font-size:14px;
    font-weight:600;
}

.checkout-title{
    font-size:48px;
    margin:18px 0 12px;
    font-weight:800;
    color:#111;
}

.checkout-description{
    font-size:18px;
    color:#666;
}/*=========================================
LAYOUT
=========================================*/

.teg-checkout-layout{
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:40px;
    align-items:start;
}

.checkout-card,
.checkout-summary-card{

    background:#fff;
    border-radius:22px;
    padding:35px;
    box-shadow:0 15px 45px rgba(0,0,0,.08);

}

.checkout-card h2,
.checkout-summary-card h2{

    font-size:30px;
    margin-bottom:30px;

}/*=========================================
CHECKOUT FORM
=========================================*/

.woocommerce-checkout .form-row{
    margin-bottom:22px;
}

.woocommerce-checkout label{
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:600;
    color:#222;
}

.woocommerce-checkout input,
.woocommerce-checkout select,
.woocommerce-checkout textarea{

    width:100%;
    height:58px;

    padding:0 18px;

    border:1px solid #d9e0ec;
    border-radius:14px;

    background:#fff;

    font-size:16px;

    transition:.3s;

}

.woocommerce-checkout textarea{

    height:120px;
    padding-top:15px;

}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus{

    outline:none;

    border-color:#173F90;

    box-shadow:0 0 0 4px rgba(23,63,144,.10);

}

.woocommerce-checkout input::placeholder{

    color:#999;

}/*=========================================
PAYMENT
=========================================*/

#payment{

    background:#f8f9fc;
    border-radius:18px;
    padding:25px;
    margin-top:25px;

}

#payment ul{

    margin:0;
    padding:0;
    list-style:none;

}

#payment li{

    margin-bottom:15px;

}

#place_order{

    width:100% !important;

    height:60px;

    background:linear-gradient(135deg,#173F90,#2E61D2)!important;

    border:none!important;

    border-radius:14px!important;

    color:#fff!important;

    font-size:18px!important;

    font-weight:700!important;

    transition:.3s;

}

#place_order:hover{

    transform:translateY(-3px);

    box-shadow:0 18px 40px rgba(23,63,144,.28);

}/* =========================================
   TEG PREMIUM CHECKOUT DESIGN
   ========================================= */

:root {
    --teg-blue: #1746a2;
    --teg-blue-dark: #0d2f75;
    --teg-gold: #d6a900;
    --teg-text: #172033;
    --teg-muted: #667085;
    --teg-bg: #f5f7fb;
    --teg-border: #dfe5ef;
}

/* PAGE BACKGROUND */
body.woocommerce-checkout {
    background: var(--teg-bg) !important;
}

/* MAIN CHECKOUT */
.woocommerce-checkout .container {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 20px;
}

/* MAIN GRID */
.teg-checkout-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
    align-items: start;
}

/* =========================================
   LEFT CUSTOMER CARD
   ========================================= */

.teg-checkout-left .checkout-card {
    background: #fff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 12px 35px rgba(20, 45, 90, 0.08);
    border: 1px solid #edf0f5;
}

.teg-checkout-left .checkout-card > h2 {
    margin: 0 0 28px;
    font-size: 32px;
    font-weight: 800;
    color: var(--teg-text);
}

/* BILLING TITLE */
.woocommerce-billing-fields h3 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--teg-blue) !important;
    margin-bottom: 22px !important;
}

/* LABELS */
.woocommerce-checkout label {
    display: block;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--teg-text) !important;
    margin-bottom: 8px !important;
}

/* REQUIRED STAR */
.woocommerce-checkout label .required {
    color: #e53935 !important;
}

/* INPUTS */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100% !important;
    min-height: 54px;
    padding: 14px 16px !important;
    border: 1.5px solid var(--teg-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--teg-text) !important;
    font-size: 16px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all .25s ease;
}

/* FOCUS */
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--teg-blue) !important;
    box-shadow: 0 0 0 4px rgba(23, 70, 162, .10) !important;
}

/* FIELD SPACING */
.woocommerce-checkout .form-row {
    margin-bottom: 20px !important;
}

/* HIDE UNNECESSARY ADDRESS FIELDS */
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_postcode_field {
    display: none !important;
}

/* FIRST + LAST NAME */
.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_last_name_field {
    width: 48% !important;
    float: left !important;
}

.woocommerce-checkout #billing_last_name_field {
    float: right !important;
}

/* CLEAR FLOAT */
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_email_field {
    clear: both;
}

/* =========================================
   RIGHT ORDER SUMMARY
   ========================================= */

.teg-checkout-right .checkout-summary-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 12px 35px rgba(20, 45, 90, 0.10);
    border: 1px solid #edf0f5;
    position: sticky;
    top: 25px;
}

.teg-checkout-right .checkout-summary-card > h2 {
    margin: 0 0 25px;
    font-size: 30px;
    font-weight: 800;
    color: var(--teg-text);
}

/* PRODUCT */
.woocommerce-checkout-review-order-table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    width: 100%;
}

.woocommerce-checkout-review-order-table thead {
    display: none;
}

.woocommerce-checkout-review-order-table tbody tr {
    background: #f7f9fd;
}

.woocommerce-checkout-review-order-table td {
    border: none !important;
    padding: 16px !important;
    font-size: 15px;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 700;
    color: var(--teg-text);
}

.woocommerce-checkout-review-order-table .product-total {
    font-weight: 800;
    color: var(--teg-blue);
    text-align: right;
}

/* SUBTOTAL */
.woocommerce-checkout-review-order-table tfoot tr th,
.woocommerce-checkout-review-order-table tfoot tr td {
    border: none !important;
    padding: 15px 5px !important;
    font-size: 16px;
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    border-top: 1px solid #e5e9f0 !important;
    padding-top: 20px !important;
}

.woocommerce-checkout-review-order-table .order-total th {
    font-size: 21px !important;
    color: var(--teg-blue);
}

.woocommerce-checkout-review-order-table .order-total td {
    font-size: 21px !important;
    color: var(--teg-gold);
}

/* =========================================
   PAYMENT BOX
   ========================================= */

.woocommerce-checkout #payment {
    background: #f8faff !important;
    border: 1px solid #dce6f8 !important;
    border-radius: 18px !important;
    padding: 20px !important;
    margin-top: 22px;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment label {
    font-size: 16px !important;
    color: var(--teg-text) !important;
}

/* PAYMENT DESCRIPTION */
.woocommerce-checkout #payment .payment_box {
    background: #fff !important;
    border-radius: 12px !important;
    color: var(--teg-muted) !important;
    line-height: 1.6;
}

/* =========================================
   PLACE ORDER BUTTON
   ========================================= */

.woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 60px !important;
    border: none !important;
    border-radius: 14px !important;
    background: linear-gradient(
        135deg,
        var(--teg-blue),
        #2d63cf
    ) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    cursor: pointer;
    transition: all .25s ease;
    margin-top: 18px !important;
}

.woocommerce-checkout #place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(23, 70, 162, .25);
}

/* =========================================
   TERMS
   ========================================= */

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 13px;
    color: var(--teg-muted);
    line-height: 1.6;
    margin-top: 15px;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .woocommerce-checkout .container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .teg-checkout-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .teg-checkout-left .checkout-card,
    .teg-checkout-right .checkout-summary-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .teg-checkout-left .checkout-card > h2 {
        font-size: 25px;
        margin-bottom: 22px;
    }

    .teg-checkout-right .checkout-summary-card > h2 {
        font-size: 25px;
    }

    .teg-checkout-right .checkout-summary-card {
        position: static;
    }

    .woocommerce-checkout #billing_first_name_field,
    .woocommerce-checkout #billing_last_name_field {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce-checkout input.input-text,
    .woocommerce-checkout select,
    .woocommerce-checkout textarea {
        min-height: 52px;
        font-size: 15px !important;
    }

    .woocommerce-checkout-review-order-table td {
        padding: 12px 8px !important;
        font-size: 14px;
    }

    .woocommerce-checkout #place_order {
        min-height: 56px !important;
        font-size: 17px !important;
    }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 480px) {

    .woocommerce-checkout .container {
        padding: 0 10px;
    }

    .teg-checkout-left .checkout-card,
    .teg-checkout-right .checkout-summary-card {
        padding: 18px 14px;
        border-radius: 16px;
    }

    .teg-checkout-left .checkout-card > h2,
    .teg-checkout-right .checkout-summary-card > h2 {
        font-size: 23px;
    }

    .woocommerce-checkout-review-order-table {
        font-size: 13px;
    }
}