/* ===============================
   BASE
================================*/
.woocommerce-page {
    background: #f5f5f5;
    font-family: 'Inter', sans-serif;
}

.woocommerce-cart table.shop_table {
    border: 2px solid #E5E7EB !important;
    background: #FFF !important;
    border-radius: 0px !important;
    box-shadow: 3px 3px 0 0 #D00000 !important;
}

.cart_totals {
    background: #fff;
    padding: 30px 25px !important;
    border-radius: 0px !important;
    box-shadow: 3px 3px 0 0 #D00000 !important;
    float: left !important;
    width: 100% !important;
}

.cart_totals h2 {
    margin: 0px 0 15px 0px !important
}

.cart_totals table.shop_table {
    border: none !important;
    box-shadow: none !important;
}

.cart_totals table th {
    padding: 14px 0px !important;
    border-top: 1px solid #eee !important;
}

.cart_totals table td {
    padding: 14px 0px !important;
}

.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: #D00000 !important;
    color: #fff !important;
    border-radius: 0 !important;
    padding: 0px 20px !important;
    font-weight: 600;
    border: none;
    height: 48px !important;
}

.woocommerce-cart table.shop_table td {
    padding: 14px 20px !important;
    border-top: 1px solid #eee !important;
}

#add_payment_method table.cart td.actions .coupon .input-text,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout table.cart td.actions .coupon .input-text {
    float: left;
    box-sizing: border-box;
    border: 1px solid #cfc8d8;
    padding: 6px 6px 5px;
    margin: 0 4px 0 0;
    outline: 0;
    border-radius: 0px !important;
    width: 150px !important;
    height: 48px !important;
}

.woocommerce-message {
    border: 1px solid #8fae1b !important;
    background: #FFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

a.button.wc-forward {
    background: #D00000 !important;
    color: #fff !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0px 20px !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: 22px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    border-radius: 0px !important;
    justify-content: center !important;
    margin-bottom: 0px !important;
}

.wc-proceed-to-checkout {
    padding: 10px 0px 0px 0px !important;
}

.woocommerce form .form-row-last,
.woocommerce-page form .form-row-last {
    float: unset !important;
    width: 50% !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
}

form#woocommerce-checkout-form-coupon {
    border-radius: 0px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 20px !important;
    border: none !important;
}

p.form-row.form-row-first {
    float: left !important;
    width: 50% !important;
}

.form-row.form-row-first input {
    height: 48px !important;
    margin-bottom: 0px !important;
    text-indent: 10px !important;
}

/* ===============================
   CONTAINER FIX
================================*/
.woocommerce {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* ===============================
   COMMON CARD
================================*/
.woo-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ===============================
   BUTTONS
================================*/
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: #D00000 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    border: none;
}

.woocommerce button.button:hover {
    background: #D00000;
}

/* ===============================
   CART TABLE
================================*/
.woocommerce-cart table.shop_table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce-cart table.shop_table th {

    color: #000000 !important;
    padding: 14px;
}

.woocommerce-cart table.shop_table td {
    padding: 14px;
    border-top: 1px solid #eee;
}

/* ===============================
   CART TOTALS
================================*/
.cart_totals {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
}

.cart_totals table th,
.cart_totals table td {
    background: #fff !important;
    color: #000;
    padding: 10px;
}

.cart_totals td {
    text-align: right;
}

/* ===============================
   CHECKOUT LAYOUT (FIXED)
================================*/
.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}



/* LEFT SIDE */
#customer_details {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.woocommerce-billing-fields,
.woocommerce-additional-fields {
    border-radius: 0px !important;
}

/* .woocommerce-billing-fields__field-wrapper p#billing_first_name_field {
    width: 100% !important;
} */

.woocommerce-billing-fields__field-wrapper {
    flex-flow: wrap !important;
}

.woocommerce-billing-fields__field-wrapper p.form-row {
    width: 100% !important;

}

#order_review td {
    text-align: left !important;
}

:where(.woocommerce) .select2-container .select2-dropdown,
:where(.woocommerce) .select2-container .select2-selection {
    border-radius: 0px !important;
    height: 44px !important;
    border: 1.841px solid #E5E7EB !important;
}

.woocommerce-billing-fields__field-wrapper p#billing_address_2_field .screen-reader-text {
    clip: unset !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    width: auto !important;
    word-wrap: normal !important;
    clip-path: border-box !important;
}

.woocommerce-billing-fields__field-wrapper p#billing_last_name_field {

    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

#billing_country_field,
#billing_address_1_field,
#billing_address_2_field,
#billing_city_field,
#billing_state_field,
#billing_postcode_field,
#billing_email_field {
    grid-column: unset !important;
}

.woocommerce-billing-fields__field-wrapper p#billing_last_name_field span.woocommerce-input-wrapper {
    display: block;
    width: 100% !important;
}

.woocommerce-billing-fields h3 {
    margin: 0px 0px 15px 0px !important;
    font-size: 24px !important;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 32px !important;
    /* 133.333% */
    letter-spacing: -0.874px !important;
    color: #000 !important;
}

.woocommerce-additional-fields h3 {
    margin: 0px 0px 15px 0px !important;
    font-size: 24px !important;
    font-style: normal;
    font-weight: 700 !important;
    line-height: 32px !important;
    /* 133.333% */
    letter-spacing: -0.874px !important;
    color: #000 !important;
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    width: 100% !important;
    height: 44px !important;
    border-radius: 0px !important;
    border: 1.841px solid #E5E7EB !important;
    box-shadow: none !important;
    outline: none !important;
    text-indent: 10px !important;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
    width: 100% !important;
    margin-bottom: 30px !important;
}

#order_review {
    border-radius: 0px !important;
    padding: 20px !important;
    box-shadow: none !important;
    border: none !important;
}

#order_review table {
    width: 100%;
    border: none !important;
}

.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    width: 100% !important;
    float: unset !important;
}

/* REMOVE EXTRA TITLE */
.woocommerce-checkout h3#order_review_heading {
    display: none;
}

/* ===============================
   BILLING + ADDITIONAL CARDS
================================*/
.woocommerce-billing-fields,
.woocommerce-additional-fields {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* FORM GRID */
.woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* FULL WIDTH FIELDS */
#billing_country_field,
#billing_address_1_field,
#billing_address_2_field,
#billing_city_field,
#billing_state_field,
#billing_postcode_field,
#billing_email_field {
    grid-column: span 2;
}

/* ===============================
   INPUTS
================================*/
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
}

.woocommerce input:focus,
.woocommerce textarea:focus {
    border-color: #D00000;
}

/* ===============================
   RIGHT SIDE (ORDER SUMMARY)
================================*/
#order_review {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

/* TABLE CLEAN */
#order_review table {
    width: 100%;
}

#order_review th,
#order_review td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    background: #fff !important;
}

#order_review td {
    text-align: right;
}

/* ===============================
   PAYMENT BOX
================================*/
#payment {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

/* ===============================
   PLACE ORDER
================================*/
#place_order {
    width: 100%;
    margin-top: 15px;
}

/* ===============================
   MOBILE FIX
================================*/
@media (max-width: 768px) {
    .woocommerce-checkout form.checkout {
        grid-template-columns: 1fr;
    }

    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    #order_review {
        position: relative;
        top: 0;
    }
}