/*=========PAGE - CHECKOUT - CUSTOM=========*/
#custom-checkout .woocommerce,
#custom-checkout #customer_details,
#custom-checkout .custom-checkout-shipping-box,
#custom-checkout .woocommerce-billing-fields__field-wrapper,
#custom-checkout .woocommerce-shipping-fields__field-wrapper,
#custom-checkout form.woocommerce-checkout{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
#custom-checkout form.woocommerce-checkout{
    gap: 50px;
}
/*--------------------------------*/
#custom-checkout .custom-checkout-toggle-box,
#custom-checkout #customer_details,
#custom-checkout .custom-checkout-order-box {
    width: calc(50% - 25px);
}
#custom-checkout .custom-checkout-shipping-box,
#custom-checkout .woocommerce-shipping-fields,
#custom-checkout .woocommerce-additional-fields,
#custom-checkout .woocommerce .woocommerce-notices-wrapper {
    width: 100%;
}
#custom-checkout .custom-checkout-toggle-box,
#custom-checkout .woocommerce-billing-fields__field-wrapper,
#custom-checkout .woocommerce-shipping-fields,
#custom-checkout .woocommerce-additional-fields,
#custom-checkout .woocommerce-checkout-review-order-table,
#custom-checkout .woocommerce-checkout-payment {
    padding: 0;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: none !important;
    border: none;
}
/*--------------------------------*/
#custom-checkout form select,
#custom-checkout form input[type="text"],
#custom-checkout form input[type="number"],
#custom-checkout form input[type="tel"],
#custom-checkout form input[type="password"],
#custom-checkout form textarea,
#custom-checkout form .select2-selection {
    min-height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.15);
}
#custom-checkout form input[name="billing_phone_digt_countrycode"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#custom-checkout form label {
    font-size: 13px;
    line-height: 1.5em;
    color: #aaa;
    font-weight: 400;
    text-align: right;
}
#custom-checkout .select2-selection__arrow {
    top: 0;
    bottom: 0;
    margin: auto;
}
/*--------------------------------*/
#custom-checkout #billing_country_field,
#custom-checkout #shipping_country_field {
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: none !important;
}
#custom-checkout .form-row {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
#custom-checkout .form-row-wide {
    width: 100% !important;
}
#custom-checkout form .select2-selection__placeholder,
#custom-checkout form #select2-billing_state-container,
#custom-checkout form #select2-billing_city-container {
    width: 100%;
}
#custom-checkout .form-row-first,
#custom-checkout .form-row-last,
#custom-checkout #billing_state_field,
#custom-checkout #billing_city_field,
#custom-checkout #billing_address_1_field,
#custom-checkout #billing_address_2_field,
#custom-checkout #shipping_state_field,
#custom-checkout #shipping_city_field,
#custom-checkout #shipping_address_1_field,
#custom-checkout #shipping_address_2_field {
    width: calc(50% - 10px);
    clear: inherit;
}
#custom-checkout .form-row-first,
#custom-checkout #billing_state_field,
#custom-checkout #billing_address_1_field,
#custom-checkout #shipping_state_field,
#custom-checkout #shipping_address_1_field {
    float: right;
}
#custom-checkout .form-row-last,
#custom-checkout #billing_city_field,
#custom-checkout #billing_address_2_field,
#custom-checkout #shipping_city_field,
#custom-checkout #shipping_address_2_field {
    float: left;
}
/*--------------------------------*/
#custom-checkout .woocommerce-billing-fields >  h3,
#custom-checkout #order_review_heading {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}
#custom-checkout #ship-to-different-address label,
#custom-checkout .woocommerce-form-login-toggle .woocommerce-info,
#custom-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    font-size: 15px;
    color: #000;
    font-weight: 400;
}
#custom-checkout .custom-checkout-toggle-box .woocommerce-info::after {
    display: none !important;
}
#custom-checkout .custom-checkout-toggle-box .woocommerce-info a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    font-size: 14px;
    color: dodgerblue;
    font-weight: 400;
    margin-right: 10px;
}
/*--------------------------------*/
#custom-checkout .woocommerce-form-coupon,
#custom-checkout .woocommerce-form-login {
    padding: 0;
    border: none;
    border-radius: 0;
    margin: 10px 0 0;
    border-top: 1px solid #ddd;
    padding-top: 10px;
}
#custom-checkout .woocommerce-form-coupon > p,
#custom-checkout .woocommerce-form-login > p {
    font-size: 13px;
    line-height: 1.5em;
    color: #aaa;
    margin-bottom: 10px;
    text-align: justify;
}
#custom-checkout .woocommerce-form-coupon button[type="submit"],
#custom-checkout .woocommerce-form-login .woocommerce-form-login__submit {
    background-color: var(--e-global-color-secondary);
    color: #fff;
    font-size: 14px;
    font-weight: normal;
    padding: 13px 15px;
    border-radius: 11px;
    margin: 0;
    width: 100%;
}
/*--------------------------------*/
#custom-checkout form {
    width: 100%;
}
#custom-checkout .custom-checkout-toggle-box .woocommerce-info {
    margin: 0;
    border: none;
    background-color: rgba(0,0,0,0);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
}
#custom-checkout .custom-checkout-toggle-box .woocommerce-info::before {
    display: none;
}
#custom-checkout .custom-checkout-toggle-box .woocommerce-info a::after {
    content: url(image/arrow-2.svg);
    width: 10px;
    height: 10px;
    display: inline-block;
    transform: rotate(-90deg);
}
#custom-checkout .woocommerce-billing-fields__field-wrapper,
#custom-checkout .woocommerce-shipping-fields__field-wrapper {
    align-items: stretch;
}
#custom-checkout .buyer-sms-notify {
    margin-top: 15px;
}
#custom-checkout .buyer-sms-notify,
#custom-checkout #ship-to-different-address {
    line-height: 15px;
}
#custom-checkout .buyer-sms-notify label,
#custom-checkout #ship-to-different-address label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
#custom-checkout .buyer-sms-notify input[type="checkbox"],
#custom-checkout #ship-to-different-address input[type="checkbox"] {
    width: 15px;
    height: 15px;
    background-color: #eee;
    border-radius: 3px;
    position: relative;
    margin: 0;
}
#custom-checkout .buyer-sms-notify input[type="checkbox"]::before,
#custom-checkout #ship-to-different-address input[type="checkbox"]::before {
    display: none;
    content: "";
    background-color: dodgerblue;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 8px;
    height: 8px;
    margin: auto;
    border-radius: 2px;
}
#custom-checkout .buyer-sms-notify input[type="checkbox"]:checked::before,
#custom-checkout #ship-to-different-address input[type="checkbox"]:checked::before {
    display: block;
}
#custom-checkout .shipping_address {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}
#custom-checkout .woocommerce-checkout-review-order-table th,
#custom-checkout .woocommerce-checkout-review-order-table td {
    border: none;
    font-weight: 400;
    font-size: 13px;
    padding: 0;
    background-color: rgba(0,0,0,0);
}
#custom-checkout .woocommerce-checkout-review-order-table th {
    color: #aaa;
}
#custom-checkout .woocommerce-checkout-review-order-table tbody tr:first-child th,
#custom-checkout .woocommerce-checkout-review-order-table tbody tr:first-child td,
#custom-checkout .woocommerce-checkout-review-order-table tr.cart-subtotal th,
#custom-checkout .woocommerce-checkout-review-order-table tr.cart-subtotal td,
#custom-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
#custom-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td,
#custom-checkout .woocommerce-checkout-review-order-table tr.order-total th,
#custom-checkout .woocommerce-checkout-review-order-table tr.order-total td {
    border-top: 1px dashed #ddd;
    padding-top: 5px;
    padding-bottom: 5px;
}
#custom-checkout .woocommerce-checkout-review-order-table thead th,
#custom-checkout .woocommerce-checkout-review-order-table thead td {
    padding-bottom: 5px;
}
#custom-checkout .woocommerce-checkout-review-order-table tr.order-total th,
#custom-checkout .woocommerce-checkout-review-order-table tr.order-total td {
    padding-bottom: 0;
}
#custom-checkout .woocommerce-checkout-payment {
    border: none;
    box-shadow: 0 0 20px -5px rgba(0,0,0,0.15);
}
#custom-checkout .payment_methods {
    padding: 0 !important;
    border: none !important;
}
#custom-checkout .payment_methods .wc_payment_method label img {
    width: 25px;
    margin: 0 10px 0 0;
}
#custom-checkout .payment_methods .wc_payment_method .payment_box {
    background-color: #eee;
    border-radius: 10px;
    font-size: 13px;
    padding: 10px;
    margin: 10px 0;
}
#custom-checkout .payment_methods .wc_payment_method .payment_box::before {
    border-bottom-color: #eee;
}
#custom-checkout .woocommerce-checkout-payment .place_order {
    padding: 0;
    margin-top: 20px;
}
#custom-checkout .woocommerce-checkout-payment button#place_order {
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.15); 
    width: min(300px, 100%);
    margin: auto;
    background-color: limegreen;
    font-size: 17px;
    font-weight: 700;
}

@media only screen and (max-width: 767px) {
    #custom-checkout .custom-checkout-toggle-box,
    #custom-checkout #customer_details,
    #custom-checkout .custom-checkout-order-box {
        width: 100% !important;
    }
    #custom-checkout .custom-checkout-toggle-box,
    #custom-checkout .woocommerce-billing-fields__field-wrapper,
    #custom-checkout .woocommerce-shipping-fields,
    #custom-checkout .woocommerce-additional-fields,
    #custom-checkout .woocommerce-checkout-review-order-table,
    #custom-checkout .woocommerce-checkout-payment {
        padding: 10px;
    }
    #custom-checkout .woocommerce-billing-fields__field-wrapper,
    #custom-checkout .woocommerce-shipping-fields__field-wrapper {
        gap: 5px;
    }
    #custom-checkout .form-row-first,
    #custom-checkout .form-row-last,
    #custom-checkout #billing_state_field,
    #custom-checkout #billing_city_field,
    #custom-checkout #billing_address_1_field,
    #custom-checkout #billing_address_2_field,
    #custom-checkout #shipping_state_field,
    #custom-checkout #shipping_city_field,
    #custom-checkout #shipping_address_1_field,
    #custom-checkout #shipping_address_2_field {
        width: calc(50% - 5px);
    }
    #custom-checkout #ship-to-different-address label,
    #custom-checkout .woocommerce-form-login-toggle .woocommerce-info,
    #custom-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
        font-size: 13px;
    }
    #custom-checkout .custom-checkout-toggle-box .woocommerce-info a {
        font-size: 13px;
    }
}
@media only screen and (max-width: 360px) {
    #custom-checkout .form-row-first,
    #custom-checkout .form-row-last,
    #custom-checkout #billing_state_field,
    #custom-checkout #billing_city_field,
    #custom-checkout #billing_address_1_field,
    #custom-checkout #billing_address_2_field,
    #custom-checkout #shipping_state_field,
    #custom-checkout #shipping_city_field,
    #custom-checkout #shipping_address_1_field,
    #custom-checkout #shipping_address_2_field {
        width: 100%;
    }
    #custom-checkout .custom-checkout-toggle-box .woocommerce-info a {
        width: 100%;
        margin: 0;
    }
}