.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    /* display: none; */
    width: 100%;
}

h3#ship-to-different-address span {
    font-size: 14px !important;
}

.woocommerce.wp-block-group.alignwide {
    max-width: 600px;
    margin: 0 auto;
}

div#customer_details .col-1 {
    width: 100%;
}

p#billing_first_name_field,
p#shipping_first_name_field {
    width: 100%;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

form.checkout.woocommerce-checkout p#billing_city_field,
form.checkout.woocommerce-checkout p#billing_state_field,
form.checkout.woocommerce-checkout p#billing_postcode_field,
form.checkout.woocommerce-checkout p#billing_phone_field,
form.checkout.woocommerce-checkout p#shipping_city_field,
form.checkout.woocommerce-checkout p#shipping_state_field {
    width: 48%;
}

p#order_comments_field {
    margin-top: 20px;
}

textarea#order_comments {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: solid 1px #ddd;
    border-radius: 10px;
}

input#coupon_code {
    width: 100%;
    padding: 14px;
    border: solid 1px #ddd;
    border-radius: 10px;
}

form#woocommerce-checkout-form-coupon p.form-row.form-row-first {
    width: 77%;
}

form#woocommerce-checkout-form-coupon button.button {
    background: #161f33;
    color: #fff;
    padding: 13px;
    border: none;
    border-radius: 10px;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
    margin-left: 5px;
}

/* .woocommerce-form-coupon-toggle .woocommerce-info::before {
    content: "🎟️";
    margin-right: 5px;
    font-size: 16px;
} */

.fw-shipping-row.fw-total-row span.label {
    display: none;
}

div#order_review {
    font-family: "Anek Bangla", sans-serif !important;
}

ul#shipping_method {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

ul#shipping_method li {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

ul#shipping_method li label {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.woocommerce-checkout .woocommerce-notices-wrapper {
    display: none;
}

/* ========================================================
   WooCommerce Order Review Redesign
   ======================================================== */

.fw-order-review {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid #f0f0f0;
}

#order_review_heading {
    margin-bottom: 24px;
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.fw-cart-items-list {
    margin-bottom: 25px;
}

.fw-cart-item {
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    transition: all 0.3s ease;
}

.fw-cart-item:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.fw-cart-item-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fw-cart-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #eee;
}

.fw-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fw-cart-item-details {
    flex-grow: 1;
    overflow: hidden;
}

.fw-product-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.fw-product-price {
    font-size: 12px;
    color: #888;
}

.fw-cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 2px;
}

.qty-btn {
    border: none;
    background: transparent;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 50%;
    padding: 0;
}

.qty-btn:hover {
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qty-val {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

.remove-item a {
    color: #f44336;
    font-size: 16px;
    transition: transform 0.2s;
    display: block;
}

.remove-item a:hover {
    transform: scale(1.1);
    color: #d32f2f;
}

.fw-order-totals {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.fw-total-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    justify-content: space-between;
}

.fw-total-row .value {
    font-weight: 600;
    color: #333;
    /* width: 100%; */
}

.fw-total-row.main-total {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 2px solid #f0f0f0;
    font-size: 18px;
    font-weight: 800;
    color: #2196F3;
}

.fw-total-row.main-total .label {
    color: #2563eb;
}

.fw-total-row.main-total .value {
    color: #2563eb;
}

/* Hide original table specifically if it reappears */
.woocommerce-checkout-review-order-table:not(.fw-order-review) {
    display: none !important;
}

.pvc-product-title h2.elementor-heading-title.elementor-size-default {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 60px;
}




/* checkout.css */

/* Container and Card Style */
.woocommerce-billing-fields {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    /* font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; */
    max-width: 600px;
    /* Adjust based on your layout */
    margin: 20px auto;
}

/* Headings */
.woocommerce-billing-fields h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Field Layout */
.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

/* Labels */
.woocommerce-billing-fields label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
    text-decoration: none;
}

/* Inputs, Selects, and Textareas */
.woocommerce-billing-fields input.input-text,
.woocommerce-shipping-fields input.input-text,
.woocommerce-billing-fields select,
.select2-container--default .select2-selection--single {
    width: 100%;
    height: 48px;
    padding: 10px 15px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px;
    color: #333 !important;
    outline: none;
    transition: border-color 0.2s;
}

.woocommerce-shipping-fields label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox {
    display: flex;
    gap: 10px;
}

.woocommerce-billing-fields input.input-text:focus {
    border-color: #3b82f6;
    background-color: #fff;
}

/* Select2 Specific Styling to match inputs */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    padding: 0;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

/* Responsive Grid (Optional: for side-by-side fields) */
@media (min-width: 768px) {

    .form-row-first,
    .form-row-last {
        /* width: 48%; */
        float: left;
    }

    .form-row-last {
        float: right;
    }

    .form-row-wide {
        clear: both;
        width: 100%;
    }
}


#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: #f9fafb;
    border-radius: 5px;
}

ins {
    text-decoration: none;
}

.woocommerce-checkout.woocommerce-page main#content {
    padding: 20px;
}

.woocommerce-checkout.woocommerce-page main#content .page-header {
    display: none;
}


/* ========================================================
   WooCommerce Payment Methods Redesign
   ======================================================== */

#payment.woocommerce-checkout-payment {
    background: #ffffff !important;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    margin-top: 30px;
}

/* Remove default dots and styling */
ul.wc_payment_methods.payment_methods.methods {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Individual Payment Method Card */
li.wc_payment_method {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

li.wc_payment_method:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

/* Style the Radio and Label */
li.wc_payment_method label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    cursor: pointer;
    font-weight: 600;
    color: #334155;
    font-size: 15px;
    margin: 0 !important;
}

li.wc_payment_method input[type="radio"] {
    /* margin-right: 12px; */
    transform: scale(1.2);
    accent-color: #2563eb;
}

/* Handle Payment Gateway Logos */
li.wc_payment_method label img {
    max-height: 28px !important;
    width: auto !important;
    margin-left: auto;
    object-fit: contain;
}

/* The Expansion Box (Instructions) */
.payment_box {
    background: #f1f5f9 !important;
    border-radius: 10px;
    padding: 20px !important;
    margin-top: 15px !important;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    position: relative;
    border: none !important;
    width: 100%;
}

.payment_box:before {
    display: none !important;
    /* Remove default WC arrow */
}

.payment_box b {
    color: #2563eb;
}

/* Total Amount Display in Payment Box */
.bdpg-total-amount {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: #1e293b;
    border: 1px dashed #2563eb;
}

/* Input Fields for bKash/Nagad/Rocket */
.bdpg-user__acc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.bdpg-user__field label {
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.bdpg-user__field input.widefat {
    width: 100% !important;
    height: 45px !important;
    padding: 10px 15px !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

.bdpg-user__field input.widefat:focus {
    border-color: #2563eb !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Place Order Button Container */
.form-row.place-order {
    padding: 20px 0 0 0 !important;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
}

#place_order {
    width: 100%;
    background-color: #161f33;
    color: #ffffff;
    border: none;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: "Anek Bangla", sans-serif !important;
    box-shadow: 0 8px 20px rgb(13 32 75 / 20%);
    text-transform: none;
}

#place_order:hover {
    background: #1f2d4b;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .bdpg-user__acc {
        grid-template-columns: 1fr;
    }
}

.woocommerce-privacy-policy-text p {
    font-size: 12px !important;
}

.fw-shipping-row.fw-total-row .value {
    width: 100%;
}

@media (max-width:768px) {
    .woocommerce.wp-block-group.alignwide {
        padding: 10px;
    }

    .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
        font-size: 11px;
    }

    p#billing_address_1_field,
    p#shipping_address_1_field,
    p#shipping_postcode_field,
    form#woocommerce-checkout-form-coupon p.form-row.form-row-first {
        width: 100%;
    }

    .woocommerce-billing-fields label {
        font-size: 11px;
    }

    .woocommerce-billing-fields__field-wrapper p {
        margin-bottom: 10px;
    }

    li.wc_payment_method label {
        width: 90%;
    }

    li.wc_payment_method label {
        font-size: 12px;
    }

}