/* =========================================
   WOOCOMMERCE CHECKOUT — MODERN CLEAN UI
========================================= */

/* ===== Layout ===== */

.woocommerce-checkout .col-1,
.woocommerce-checkout .col-2 {
    flex: 1;
    min-width: 320px;
}

/* ===== Titles ===== */

.woocommerce-checkout h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
}

/* ===== Labels ===== */

.floating-labels .form-row > label:not(.woocommerce-form__label-for-checkbox):not(.checkbox) {
    display: block !important;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.inner_coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coupon-error-notice {
    width: 100%;
    margin-top: 5px;
}

/* =========================================
   INPUTS
========================================= */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce .select2-container--default .select2-selection--single {

    width: 100%;

    background: #fff !important;

    border: 1px solid #ddd !important;
    border-radius: 1px !important;

    padding: 16px 18px !important;

    font-size: 14px;
    font-weight: 400;
    color: #111;

    box-shadow: none !important;
    outline: none !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

/* Focus */

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.select2-container--default.select2-container--focus
.select2-selection--single {

    border-color: #111 !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}

/* Textarea */

.woocommerce form textarea {
    min-height: 120px;
    resize: vertical;
}

/* =========================================
   SELECT2
========================================= */

.woocommerce .select2-container--default .select2-selection--single {
    min-height: 54px;
    display: flex;
    align-items: center;
}

.woocommerce .select2-selection__rendered {
    color: #111 !important;
    line-height: normal !important;
    padding-left: 0 !important;
}

.woocommerce .select2-selection__arrow {
    height: 100% !important;
    right: 14px !important;
}

.select2-dropdown {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =========================================
   ORDER TABLE
========================================= */

.shop_table {
    border: none !important;
}

.shop_table th,
.shop_table td {
    padding: 16px 0 !important;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

/* Total */

.order-total .amount {
    font-size: 18px;
    font-weight: 700;
    color:var(--main-color);
}

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

#payment {
    background: #fff !important;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
}

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

#place_order {
    width: 100%;

    background: #111 !important;
    color: #fff !important;

    border: none !important;
    border-radius: 0px !important;

    padding: 8px !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    transition:
        background .2s ease,
        transform .15s ease,
        opacity .2s ease;
}

#place_order:hover {
    background: #222 !important;
    transform: translateY(-1px);
}

/* =========================================
   COUPON
========================================= */

.woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f7f7f7;
    border: none;
    border-radius: 12px;
    padding: 16px;
}

/* =========================================
   SHIPPING METHODS — SHOPIFY STYLE
========================================= */

#shipping_method {
    display: flex;
    flex-direction: column;
    gap: 14px;

    margin: 18px 0 0;
    padding: 0;
}

#shipping_method li {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Hide native radio */

#shipping_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Card */

#shipping_method label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height:40px;

    padding: 16px 20px 16px 56px;

    background: #fff;

    border: 1px solid #d9d9d9;
    border-radius:0px;

    cursor: pointer;

    position: relative;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Custom radio */

#shipping_method label::before {
    content: "";

    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;

    border-radius: 50%;
    border: 2px solid #bbb;

    background: #fff;

    transition: all .2s ease;
}

/* Dot */

#shipping_method label::after {
    content: "";

    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%) scale(0);

    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: #111;

    transition: transform .18s ease;
}

/* Hover */

#shipping_method label:hover {
    border-color: #111;
}

/* Selected */

#shipping_method input[type="radio"]:checked + label,
#shipping_method input[type="hidden"] + label {

}

/* Selected radio */

#shipping_method input[type="radio"]:checked + label::before,
#shipping_method input[type="hidden"] + label::before {
    border-color: #111;
}

#shipping_method input[type="radio"]:checked + label::after,
#shipping_method input[type="hidden"] + label::after {
    transform: translateY(-50%) scale(1);
}

/* Price */

#shipping_method .amount {
    margin-left: auto;
    padding-left: 12px;

    font-size: 15px;
    font-weight: 700;
    color: #111;

    white-space: nowrap;
}

/* =========================================
   CHECKOUT GRID FIX
========================================= */

/* clearfix */

.woocommerce-billing-fields::after,
.woocommerce-shipping-fields::after,
.woocommerce-address-fields::after,
.woocommerce form .form-row::after {
    content: "";
    display: block;
    clear: both;
}

/* shipping fields */

.woocommerce-shipping-fields {
    clear: both;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

/* 3 columns */

.woocommerce form .form-row-third {

    float: left;

    width: calc(33.333% - 10px);

    margin-right: 15px;
    margin-bottom: 18px;

    clear: none;

    box-sizing: border-box;

    position: relative;
    z-index: 2;
}

/* remove margin */

.woocommerce form .form-row-third:last-child {
    margin-right: 0;
}

/* INPUTS */

.woocommerce form .form-row-third input,
.woocommerce form .form-row-third select,
.woocommerce form .form-row-third .select2-container {

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    box-sizing: border-box;
}

/* select2 */

.woocommerce form .form-row-third .select2-container {
    display: block;
}

/* state field */

#billing_state_field,
#shipping_state_field {
    z-index: 20;
}

/* select2 dropdown */

.select2-container--open {
    z-index: 999999 !important;
}
/* MOBILE */

@media (max-width: 768px) {

    .woocommerce form .form-row-third {

        width: 100%;

        float: none;

        margin-right: 0;
        margin-bottom: 16px;
    }
}
/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px) {

    .woocommerce-checkout {

    }
.woocommerce-form-coupon-toggle.et-checkout-coupon-title {
    margin-top: 30px;
}

#payment {
    background:transparent !important;
    border: 0px solid #eee;
    /* border-radius: 16px; */
    /* padding: 24px; */
    margin-top: 24px;padding: 0px;
}

    .woocommerce-checkout .col2-set {
        flex-direction: column;
        gap: 20px;
    }

    .woocommerce-checkout h3 {
        font-size: 20px;
    }

    .woocommerce form .form-row-third {
        width: 100%;
        margin-right: 0;
        float: none;
    }

    #shipping_method label {
        min-height: 64px;
        padding: 14px 16px 14px 52px;
    }

    #place_order {
        font-size: 16px !important;
    }
}