.woocommerce-billing-fields__field-wrapper input {
    border-radius: 8px !important;
}

.woocommerce-billing-fields__field-wrapper input:focus {
    box-shadow: 0px 0px 8px rgba(151, 176, 181, 0.38);
}

#customer_details .col-1, 
#customer_details .col-2, 
.widget_shopping_cart_content-wrap,
#payment {
    background: #ffffff !important;
    border-radius: 16px; 
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03); 
    border: 1px solid #ededed; 
    margin-top: 16px;
    width: 100%;
    float: none; 
}

.woocommerce-checkout .woocommerce table.shop_table.woocommerce-checkout-review-order-table {
    margin-top: 0 !important;
}

.form-heading, h3, .cart-head {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F0F0F0;
    display: flex;
    align-items: center;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    text-transform: math-auto;
}

.woocommerce-checkout #payment div.payment_box input.input-text {
    border-radius: 8px !important;
}

.woocommerce-checkout #payment div.form-row {
    padding: 0 !important;
}

.input-text, select, .select2-selection {
    width: 100%;
    padding: 0 15px;
    border: 1px solid #E0E6ED;
    border-radius: 10px;
    background-color: #FAFBFC;
    font-size: 15px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: none;
}


.input-text:focus, select:focus, .select2-selection--single:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 127, 172, 0.1); 
    outline: none;
}


.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    border-color: #E0E6ED;
    background-color: #FAFBFC;
    border-radius: 10px;
}

.woocommerce-checkout #payment ul.payment_methods li {
    width: 49%;
}

.woocommerce-checkout #payment ul.payment_methods {
    gap: 6px;
}

.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tfoot th {
    margin-top: 0 !important;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; 
}


tr.woocommerce-shipping-totals td {
    display: block;
    width: 100%;
    padding: 0;
}


#shipping_method {
    padding: 0;
    margin: 0;
    list-style: none;
}

#shipping_method li {
    background: #fff;
    border: 1px solid #E0E6ED;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

#shipping_method li:has(input:checked), 
#shipping_method li.active { 
    border-color: var(--primary-color);
    background-color: #F0F7FF;
}

#shipping_method li input:checked + label {
    color: var(--primary-color);
    font-weight: bold;
}

#payment {
    background: #fff;
}

ul.wc_payment_methods {
    padding: 0;
    list-style: none;
    margin: 0;
}

.wc_payment_method {
    border: 1px solid #E0E6ED;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #fff;
    transition: all 0.2s ease;
    overflow: hidden; 
    padding: 16px;
}

.woocommerce-notices-wrapper .woocommerce-message {
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    outline: unset !important;
}

.woocommerce-notices-wrapper .woocommerce-message:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.wc_payment_method img {
    max-height: 24px;
    margin-left: 10px;
}

.payment_box {
    border-top: 1px solid #E0E6ED !important;
    padding: 15px 20px !important;
}
.payment_box p { 
    margin: 0; 
}

.wc_payment_method input:checked + label {
    color: var(--primary-color);
}

.woocommerce-checkout #payment ul.payment_methods li input {
    margin: 0 0.2em 0 0 !important;
}

.wc_payment_method:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 127, 172, 0.15);
    transform: translateY(-2px);
}


#place_order {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 120, 212, 0.2) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(110, 40, 167, 0.3);
}

form.checkout > div:last-child {
    position: sticky;
    top: 20px;
}

form.checkout {
    gap: 16px;
}

form.checkout > div {
    width: 49%;
}

.woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.woocommerce-mini-cart-item img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #eee;
}

.widget_shopping_cart_content-crossels.check.miniform {
    background: #ffffff !important;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #ededed;
    margin-top: 16px;
    width: 100%;
    float: none;
    margin-top: 40px;
}

.widget_shopping_cart_content-crossels.check.miniform .single_add_to_cart_button.button.alt {
    border-radius: 8px;
    background: var(--primary-color) !important;
}

.widget_shopping_cart_content-crossels.check.miniform .single_add_to_cart_button.button.alt:hover {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}

.woocommerce-error {
    border: 1px solid #ff4d4f;
    border-radius: 8px;
    background-color: #fff1f0;
    color: #a8071a;
    padding: 15px;
    margin-bottom: 20px;
}

.woocommerce-mini-cart-item a {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    font-size: 14px;
} 

.woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.woocommerce-mini-cart__total .amount {
    color: var(--primary-color);
    font-weight: 900;
}

.entity {
    background: #F0F7FF; 
    border: 1px dashed var(--primary-color);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

.entity h3 {
    border: none;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 16px;
}
.entity input {
    background: #fff;
    border-radius: 8px;
}

.related.products.mostsales .prod_card {
    flex-wrap: nowrap;
    flex-direction: column;
    border-radius: 8px;
}

.related.products.mostsales .prod_card .summary {
    width: 100%;
}

.related.products.mostsales .prod_card .single_add_to_cart_button {
    border-radius: 0 0 8px 8px;
    background-color: var(--primary-color) !important;
    transition: all 0.3s ease;
    border-color: var(--primary-color) !important;
}

.related.products.mostsales .prod_card .single_add_to_cart_button:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.related.products.mostsales .prod_card .summary .price {
    width: 56% !important;
}

.related.products.mostsales .slick-track {
    width: 100% !important;
}

.related.products.mostsales .prod_card.slick-slide {
    width: 100% !important;
}

.related .slick-initialized .slick-slide.prod_card div.images.woocommerce-product-gallery {
    width: 100% !important;
}

.mostsales.related .slick-initialized .slick-slide.prod_card .summary > p.stock {
    width: 40% !important;
}

.woocommerce .products ul::before {
    content: none !important;
}

@media (max-width: 1200px) {
    form.checkout > div {
        width: 100%;
    }

    .woocommerce-checkout #payment ul.payment_methods li {
        width: 100%;
    }

    .related.products.mostsales .prod_card .single_add_to_cart_button {
        font-size: 0.9rem;
    }
}