.wooecom_instant_order_form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px 20px; border: 1px solid #d9d9d9; padding: 15px; margin-bottom: -1px; }
.wooecom_information_title { width: 100%; margin: 0; }

/* --- MODERN FIELD WRAPPERS WITH SOLID ICON BLOCKS --- */
.wooecom_field_wrapper {
    position: relative;
    width: calc(50% - 10px);
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    background-color: #f3f4f6;
    border: 1px solid transparent;
    overflow: hidden;
    transition: all 0.3s ease;
}
.wooecom_field_wrapper.full_width {
    width: 100%;
}

.wooecom_field_icon_box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1f2937;
    color: #ffffff;
    width: 50px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.wooecom_field_icon_box i {
    font-size: 16px;
}

.wooecom_field_wrapper > input, 
.wooecom_field_wrapper > select, 
.wooecom_field_wrapper > textarea { 
    width: 100% !important; 
    border: none !important; 
    outline: none !important; 
    border-radius: 0 !important; 
    padding: 14px 15px !important; 
    line-height: 1.5em !important; 
    height: auto !important; 
    box-sizing: border-box;
    background-color: transparent !important;
    color: #111827;
}

/* Fix RTL for the seamless block */
.rtl .wooecom_field_wrapper > input, 
.rtl .wooecom_field_wrapper > select, 
.rtl .wooecom_field_wrapper > textarea { 
    text-align: right;
}

#apply_coupon:hover { color: #0766e0 !important; background: #ffffff !important; border-color: #0766e0 !important; }
#apply_coupon { color: #ffffff !important; transition: all .3s ease; border: 1px solid transparent; width: calc(127% - 20px); display: flex; align-items: center; gap: 10px; justify-content: center; border-radius: 5px; padding: 18px; outline: none !important; position: relative; }
.wooecom_checkout { width: calc(80% - 20px); display: flex; align-items: center; gap: 10px; justify-content: center; border-radius: 5px; padding: 18px; outline: none !important; position: relative; }
.wooecom_checkout.loading { pointer-events: none !important; }

/* QUANTITY FIX FOR RTL - Forces Left-to-Right */
.wooecom_quantity { width: 20%; display: flex; align-items: center; direction: ltr !important; justify-content: center; }
.wooecom_quantity>input[type="number"] { width: 40px; padding: 5px; text-align: center; font-weight: 600; color: #000; }
#wooecom_fixed_shipping_fe { display: none; }

.wooecom_quantity input::-webkit-outer-spin-button, .wooecom_quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wooecom_quantity input[type="number"] { -moz-appearance: textfield; }

.wooecom_plus, .wooecom_minus { width: 30px; text-align: center; cursor: pointer; border: 1px solid #d9d9d9; background: #f5f5f5; border-radius: 3px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.wooecom_plus:hover, .wooecom_minus:hover { background: #fff; color: #000; }

.wooecom_order_summary { width: 100%; background: #ffffff; }
.wooecom_order_summary_head { display: flex; align-items: center; justify-content: space-between; background: #e9e9e9; padding: 15px; border: 1px solid #d9d9d9; margin-bottom: -1px; user-select: none; cursor: pointer; }
.wooecom_order_summary_head>i { transform: rotate(0); transition: all 0.4s ease; }
.wooecom_order_summary.active .wooecom_order_summary_head>i { transform: rotate(180deg); }

.wooecom_price_table { display: none; position: relative; }
.wooecom_price_table table { margin-bottom: 0px; }
.wooecom_order_summary.active .wooecom_price_table { display: block; }
.wooecom_quantity>input { border: none !important; background: transparent !important; outline: none !important; }
.wooecom_plus { border-left: 1px solid #d9d9d9; }
.wooecom_minus { border-right: 1px solid #d9d9d9; }

/* Perfect RTL/LTR alignment for table columns */
.wooecom_price_table>table td:first-child { text-align: start; }
.wooecom_price_table>table td:last-child { text-align: end; }

/* --- MOBILE SQUEEZE FIX --- */
.wooecom_price_table>table td:last-child:not([colspan]) {
    width: 1%;
}

.wooecom_price_table>table td { border: none; padding: 15px; }
.wooecom_price_table>table { border-collapse: collapse; border: 1px solid #d9d9d9; width: 100%; background: #ffffff; }
.wooecom_price_table>table tr { border-bottom: 1px solid #d9d9d9; }

.wooecom_btn_loader { width: 20px; height: 20px; border-radius: 50%; display: none; box-sizing: border-box; animation: rotation 1s linear infinite; }
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.wooecom_attributes { width: 100%; }
.wooecom_single_attr label input { display: none !important; }
.wooecom_single_attr { margin: 10px 0 !important; display: flex; align-items: center; gap: 5px; }
.wooecom_single_attr label span { display: inline-block !important; border: 1px solid #d9d9d9 !important; padding: 3px 5px !important; border-radius: 3px !important; cursor: pointer !important; font-size: 13px !important; }
.wooecom_single_attr label input:checked+span { background: transparent !important; color: #000 !important; border-color: #000 !important; }
.wooecom_single_attr label { margin-bottom: 0px !important; }
span.wooecom_attr_label { font-size: 15px !important; min-width: 50px !important; display: inline-block !important; }

.wooecom_footer_icons { display: none; align-items: stretch; font-size: 18px; gap: 10px; }
.wooecom_footer_icons a { display: inline-block; text-decoration: none !important; }
.wooecom_footer_icons i { width: 46px; height: 46px; border: 1px solid #d9d9d9; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.wooecom_footer_icons i.fa-phone { font-size: 18px; }

.wooecom_sticky_footer { position: fixed; bottom: 0; left: 0; width: 100%; padding: 20px; background: #fff; z-index: 5000; border-top: 1px solid #d9d9d9; display: flex; align-items: stretch; justify-content: center; gap: 10px; display: none; margin-bottom: 0px !important; }
.wooecom_buy_now { display: block; padding: 10px 35px; border-radius: 5px; text-decoration: none !important; text-align: center; width: 250px; }
span.wooecom_order_qty { background: #d9d9d9; color: #000; display: inline-block; padding: 3px 5px; border-radius: 5px; line-height: 1em; font-size: 10px; position: relative; font-weight: 600; top: -1px; margin-inline-end: 4px; }

.wooecom_order_loader { width: 20px; height: 20px; border: 2.5px solid #fff; border-bottom-color: transparent; border-radius: 50%; display: inline-block; box-sizing: border-box; animation: rotation 1s linear infinite; }
.order_loader_container { width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); position: absolute; left: 0; top: 0; z-index: 1; display: none; align-items: center; justify-content: center; }

ul.wooecom_shipping_methods { list-style: none; margin: 0; padding: 0; }
.wooecom_row_total_price>td { font-weight: bold !important; color: #000 !important; }
.wooecom_order_summary_title { display: flex; align-items: center; gap: 10px; font-weight: bold !important; text-transform: capitalize; }
.wooecom_shipping_methods li label { display: flex; align-items: center; gap: 5px; justify-content: flex-start; }

span.wooecom_free_shipping { background: #d9d9d9 !important; color: #fff !important; padding: 2px 8px !important; border-radius: 5px !important; display: inline-block !important; }

.wooecom_single_attr label input:checked+span.wooecom_color_palette { position: relative; }
.wooecom_single_attr label input:checked+span.wooecom_color_palette::before { content: ""; position: absolute; width: calc(100% + 6px); height: calc(100% + 6px); border-radius: 5px; border: 1px solid #000; left: -3px; top: -3px; }

/* Clean Remove Cart Item Button Styles */
.wooecom_remove_cart_item { color: #ef4444; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fee2e2; transition: all 0.2s ease; flex-shrink: 0; }
.wooecom_remove_cart_item:hover { background: #ef4444; color: #ffffff; transform: scale(1.1); }

/* RTL Enhancements */
.rtl .wooecom_shipping_methods li label { display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 5px; }

#wooecom_state { appearance: none !important; -moz-appearance: none !important; -webkit-appearance: none !important; -ms-progress-appearance: none !important; background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat right 15px top 55%; }
.rtl #wooecom_state { background: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E") no-repeat left 15px top 55%; }

.wooecom_coupon_discount_row { display: none; }
.toast-center-center { top: 50%; right: 0; transform: translateY(-50%); }
.form-hide-for-desktop { display: none !important; }
#coupon_code { height: 40px; width: 200px; }
.custom-coupon-btn button { height: 40px; line-height: 0; }
.disabled-btn { cursor: not-allowed !important; opacity: 0.7 !important; }
.coupon-field { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }

.wooecom_disabled, .ip_block, .cookie_block { position: relative; }
.wooecom_disabled::before, .ip_block::before, .cookie_block::before { content: ""; left: 0; top: 0; position: absolute; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.4); cursor: not-allowed; z-index: 1000; }

.wooecom_notice { margin: 0; width: 100%; background: #d35c62; color: #fff; padding: 10px; position: relative; border-radius: 8px; }
.wooecom_notice::before { content: "\f05a"; font: var(--fa-font-solid); margin-right: 10px; }
.wooecom_notice.hidden { display: none; }

.wooecom_variations { margin: 0; padding: 0 !important; list-style: none; display: flex; flex-direction: column; gap: 20px; width: 100%; }
.wooecom_variations>li { display: flex; align-items: center; gap: 5px; flex-wrap: wrap !important; gap: 8px; }

.variation_title { position: relative; }
.variation_title input { display: none; }
.variation_title input+label { position: relative; padding-left: 40px; cursor: pointer; font-weight: 400; }
.variation_title input+label::before { content: ""; width: 27px; height: 27px; position: absolute; border-radius: 50%; border: 1px solid #d9d9d9; left: 0; top: 50%; transform: translateY(-50%); }
.variation_title input+label::after { content: ""; position: absolute; left: 7px; height: 13px; width: 13px; top: 50%; border-radius: 50%; transform: translateY(-50%); background: #d9d9d9; opacity: 0; }
.variation_title input+label:hover::after, .variation_title input:checked+label::after { opacity: 1; }

.wooecom_hidden { display: none !important; }

/* Modern UI Styles */
ul.wooecom_variations.modern_ui { display: flex; flex-direction: column; }
.attribute_modern_ui { display: flex; align-items: center; gap: 10px; }
.attribute_modern_ui>h4 { margin-right: 10px; font-size: 14px; color: #000; font-weight: 500; line-height: 1.4em; min-width: 60px; }
.attribute_inner>input { display: none; }
.attribute_inner>label { border: 1px solid #d9d9d9; font-size: 14px; color: #000; border-radius: 3px; padding: 3px 8px; line-height: 1.4em; background: #fff; box-shadow: 0 0 0 0; transition: all 0.4s ease; cursor: pointer; }
.attribute_inner>label:hover { background: #f9f9f9; }
.attribute_inner>input:checked+label { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8); }
.attribute_inner.attr_color>label { border: 1px solid #d9d9d9; font-size: 0px; color: transparent; display: block; width: 24px; height: 24px; }
.wooecom_variations.modern_ui .variation_selection { display: none; }
li.attribute_modern_ui .attribute_inner > label{ line-height: 2.2em; }

/* RTL Styles */
.rtl .variation_title input+label { padding-left: 0px; padding-right: 40px; }
.rtl .variation_title input+label::before { content: ""; width: 27px; height: 27px; position: absolute; border-radius: 50%; border: 1px solid #d9d9d9; left: unset; right: 0; top: 50%; transform: translateY(-50%); }
.rtl .variation_title input+label::after { content: ""; position: absolute; left: unset; right: 7px; height: 13px; width: 13px; top: 50%; border-radius: 50%; transform: translateY(-50%); background: #d9d9d9; opacity: 0; }
.rtl .variation_title input+label:hover::after, .rtl .variation_title input:checked+label::after { opacity: 1; }
.rtl ul.wooecom_shipping_methods { display: flex; flex-direction: column; align-items: flex-start; }
.rtl .wooecom_notice::before { margin-right: 0; margin-left: 10px; }
.wooecom_placeholder { display: block; width: 100%; }

@media (max-width: 767px) {
  .wooecom_footer_icons { display: flex; align-items: stretch; gap: 10px; }
  .wooecom_buy_now { width: calc(100% - 112px) !important; }
  .wooecom_checkout { width: calc(65% - 20px) !important; }
  .wooecom_field_wrapper { width: 100% !important; }
  .wooecom_quantity { width: 35% !important; }
  
  .wooecom_instant_order_form.wooecom_mobile_horizontal > #wooecom_name_wrapper,
  .wooecom_instant_order_form.wooecom_mobile_horizontal > #wooecom_phone_wrapper,
  .wooecom_instant_order_form.wooecom_mobile_horizontal > #wooecom_state_wrapper,
  .wooecom_instant_order_form.wooecom_mobile_horizontal > #wooecom_city_wrapper { width: calc(50% - 10px) !important; }
}

/* --- SETTING: DESKTOP VERTICAL FIELDS --- */
@media (min-width: 768px) {
    .wooecom_instant_order_form.wooecom_desktop_vertical > .wooecom_field_wrapper {
        width: 100% !important;
    }
}

/* --- DYNAMIC BUTTON PRICE TAGS --- */
.wooecom_checkout.wooecom_btn_has_price,
.wooecom_add_to_cart_btn.wooecom_btn_has_price {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
}

.wooecom_btn_price_tag {
    font-weight: 700;
    font-size: 15px;
    margin-inline-start: auto;
    pointer-events: none;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.15); 
    padding: 5px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Prevent nested WooCommerce tags from overflowing out of the tag */
.wooecom_btn_price_tag .woocommerce-Price-amount,
.wooecom_btn_price_tag bdi {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.wooecom_btn_price_tag .woocommerce-Price-currencySymbol {
    margin-inline-start: 4px;
}
/* ===================================================== */
/* ACTION BUTTONS BLOCK (Quantity + Order + Add to Cart)  */
/* Sizes come from CSS variables set in dynamic CSS.      */
/* ===================================================== */
.wooecom_actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
.wooecom_actions_row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
.wooecom_actions .wooecom_actions_row > .wooecom_quantity {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 110px;
    min-height: var(--wooecom-btn-h, 54px);
    gap: 8px;
    margin: 0 !important;
}
.wooecom_actions .wooecom_actions_row > .wooecom_action_btn {
    flex: 1 1 0 !important;
    min-width: 0;
}
/* Quantity on its own row */
.wooecom_actions.wooecom_actions_qty_full .wooecom_actions_row { flex-direction: column; }
.wooecom_actions.wooecom_actions_qty_full .wooecom_actions_row > .wooecom_quantity,
.wooecom_actions.wooecom_actions_qty_full .wooecom_actions_row > .wooecom_action_btn {
    flex: 0 0 auto !important;
    width: 100% !important;
}
#wooecom_instant_order .wooecom_actions .wooecom_action_btn {
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--wooecom-btn-h, 54px) !important;
    padding: 0 18px !important;
    margin: 0 !important;
    font-size: var(--wooecom-btn-fs, 16px) !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    border-radius: var(--wooecom-btn-radius, 8px) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box !important;
    cursor: pointer;
    text-decoration: none !important;
    float: none !important;
}
#wooecom_instant_order .wooecom_actions .wooecom_action_btn.wooecom_btn_has_price { justify-content: space-between !important; }
.wooecom_actions .wooecom_btn_text_group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wooecom_actions .wooecom_btn_price_tag { font-size: calc(var(--wooecom-btn-fs, 16px) - 1px); }
.wooecom_actions .wooecom_whatsapp_order_btn { background: #25D366 !important; color: #ffffff !important; border: 1px solid transparent !important; }

/* ===================================================== */
/* ORDER SUMMARY - readable on every screen size          */
/* ===================================================== */
.wooecom_price_table > table { table-layout: auto !important; width: 100% !important; max-width: 100% !important; }
.wooecom_summary_product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wooecom_summary_product .wooecom_summary_img,
.wooecom_summary_product img {
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin: 0 !important;
}
.wooecom_summary_name { min-width: 0; overflow-wrap: anywhere; word-break: break-word; line-height: 1.45; }
.wooecom_price_table td .wooecom_price { white-space: nowrap; }
.wooecom_price_table td.product_price { white-space: nowrap; }
.wooecom_price_table td.shipping_price { white-space: normal; }
.wooecom_summary_hint { font-size: 13px; color: #777; white-space: normal; display: inline-block; line-height: 1.4; }

@media (max-width: 480px) {
    .wooecom_price_table > table td { padding: 10px !important; font-size: 13px; }
    .wooecom_price_table td.product_price { white-space: normal; text-align: end; }
    .wooecom_price_table td.product_price .wooecom_order_qty { margin-bottom: 4px; }
    .wooecom_price_table td.product_price .wooecom_price { display: block; }
    .wooecom_summary_product { gap: 8px; }
    .wooecom_summary_product .wooecom_summary_img,
    .wooecom_summary_product img { width: 32px !important; height: 32px !important; max-width: 32px !important; }
    .wooecom_row_total_price > td.total_price .wooecom_price {
        font-size: 17px !important;
        padding: 5px 12px !important;
        white-space: nowrap !important;
    }
    .wooecom_row_total_price > td:first-child { font-size: 14px !important; }
}

/* Checkout page with [wooecom_checkout]: hide the theme's WooCommerce coupon link/form (the WooEcom form has its own coupon box) */
body:has(.wooecom_cart_mode) .woocommerce-form-coupon-toggle,
body:has(.wooecom_cart_mode) form.checkout_coupon,
body:has(.wooecom_cart_mode) .woocommerce-form-coupon { display: none !important; }

/* Coupon Apply button follows "Buttons corner radius (px)" (the coupon field keeps its own style) */
#wooecom_instant_order #apply_coupon { border-radius: var(--wooecom-btn-radius, 6px) !important; }
.wooecom_actions .wooecom_coupon_input_container { margin: 0 !important; }

/* =====================================================================
   VARIATION SWATCHES (modern) - clean design
   Sizes, paddings and radius still come from the WooEcom settings.
   ===================================================================== */
ul.wooecom_variations.modern_ui { gap: 14px; margin: 4px 0 8px !important; padding: 0 !important; list-style: none !important; }
li.attribute_modern_ui { flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
li.attribute_modern_ui > h4 { flex: 0 0 100%; display: flex; align-items: center; gap: 6px; margin: 0 0 2px !important; color: #111827; font-weight: 700; min-width: 0; }
li.attribute_modern_ui .wooecom_attr_chosen { font-weight: 500; color: #6b7280; }
li.attribute_modern_ui .attribute_inner { position: relative; display: inline-flex; }

/* Text options (S, M, L...) */
li.attribute_modern_ui .attribute_inner > label {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; margin: 0;
    border: 1.5px solid #e5e7eb; background: #ffffff; color: #111827; font-weight: 600;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}
li.attribute_modern_ui .attribute_inner > label:hover { border-color: #9ca3af; background: #ffffff; transform: translateY(-1px); }
li.attribute_modern_ui .attribute_inner > input:checked + label { border-color: #111827; box-shadow: inset 0 0 0 1px #111827; background: #f9fafb; }

/* Color and image options: ring around the chosen one */
li.attribute_modern_ui .attribute_inner.attr_color > label,
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch > label { min-width: 0; border: 1px solid rgba(0, 0, 0, .14); }
li.attribute_modern_ui .attribute_inner.attr_color > label { color: transparent !important; font-size: 0 !important; text-decoration: none !important; }
/* Color and image swatches are exactly the "Color/Image Box Size" (the text padding setting does not stretch them) */
li.attribute_modern_ui .attribute_inner.attr_color > label,
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch > label { padding: 0 !important; box-sizing: border-box !important; }
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch > label { color: transparent !important; text-decoration: none !important; }
li.attribute_modern_ui .attribute_inner.attr_color > label:hover,
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch > label:hover { transform: scale(1.07); border-color: rgba(0, 0, 0, .25); }
li.attribute_modern_ui .attribute_inner.attr_color > input:checked + label,
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch > input:checked + label { border-color: transparent; box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111827; }

/* Not available / out of stock: faded + small red X badge */
li.attribute_modern_ui .attribute_inner.wooecom_unavailable > label { opacity: .5; }
li.attribute_modern_ui .attribute_inner.wooecom_unavailable:not(.attr_color):not(.wooecom_image_swatch) > label {
    border-style: dashed; color: #6b7280; background: #f9fafb;
    text-decoration: line-through; text-decoration-color: #e11d48; text-decoration-thickness: 1.5px;
}
li.attribute_modern_ui .attribute_inner.attr_color.wooecom_unavailable > label,
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch.wooecom_unavailable > label { position: relative; overflow: hidden; filter: grayscale(.45); }
li.attribute_modern_ui .attribute_inner.attr_color.wooecom_unavailable > label::after,
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch.wooecom_unavailable > label::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top right, transparent calc(50% - 1.5px), #e11d48 calc(50% - 1.5px), #e11d48 calc(50% + 1.5px), transparent calc(50% + 1.5px));
}
li.attribute_modern_ui .attribute_inner.wooecom_unavailable::after {
    content: '\00D7'; position: absolute; top: -6px; inset-inline-end: -6px; z-index: 2; pointer-events: none;
    width: 16px; height: 16px; border-radius: 50%; background: #e11d48; color: #ffffff;
    font: 700 13px/16px Arial, sans-serif; text-align: center; box-shadow: 0 0 0 2px #ffffff;
}
li.attribute_modern_ui .attribute_inner.wooecom_unavailable > label:hover { opacity: .7; transform: none; }
li.attribute_modern_ui .attribute_inner.wooecom_unavailable > input:checked + label { opacity: .85; border-color: #e11d48; box-shadow: inset 0 0 0 1px #e11d48; }
li.attribute_modern_ui .attribute_inner.attr_color.wooecom_unavailable > input:checked + label,
li.attribute_modern_ui .attribute_inner.wooecom_image_swatch.wooecom_unavailable > input:checked + label { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #e11d48; }

/* Attribute not chosen yet when ordering */
li.attribute_modern_ui.wooecom_attr_missing > h4 .wooecom_attr_label { color: #e11d48; }
li.attribute_modern_ui.wooecom_attr_missing .attribute_inner > label { border-color: #fca5a5; animation: wooecom_attr_shake .4s ease; }
@keyframes wooecom_attr_shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* "Clear" button: small pill with a round X */
li.wooecom_reset_row { list-style: none !important; margin: -2px 0 0 !important; padding: 0 !important; }
.wooecom_reset_variations {
    display: inline-flex !important; align-items: center; gap: 7px; width: auto !important; min-height: 0 !important; height: auto !important;
    margin: 0 !important; padding: 5px 12px !important; padding-inline-start: 6px !important;
    background: #f3f4f6 !important; border: 1px solid #e5e7eb !important; border-radius: 999px !important; box-shadow: none !important;
    color: #374151 !important; font-size: 13px !important; font-weight: 600 !important; line-height: 1.2 !important;
    text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.wooecom_reset_icon {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 18px; height: 18px; border-radius: 50%; background: #9ca3af; color: #ffffff;
    font-size: 14px; font-weight: 700; line-height: 1; transition: background-color .15s ease;
}
.wooecom_reset_variations:hover { background: #fef2f2 !important; border-color: #fecaca !important; color: #b91c1c !important; }
.wooecom_reset_variations:hover .wooecom_reset_icon { background: #e11d48; }
.wooecom_reset_variations:focus-visible { outline: 2px solid #e11d48 !important; outline-offset: 2px; }

/* =====================================================================
   CART PRODUCTS AT THE TOP OF THE FORM (option)
   ===================================================================== */
.wooecom_top_cart { flex: 0 0 100%; width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 10px 12px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; }
.wooecom_top_cart_title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.wooecom_top_cart_count { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #f1f5f9; color: #334155; font-size: 12px; line-height: 22px; text-align: center; letter-spacing: 0; }
ul.wooecom_top_cart_list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
li.wooecom_top_cart_item { display: flex; align-items: center; gap: 8px; padding: 8px 0; margin: 0 !important; list-style: none !important; border-top: 1px dashed #e5e7eb; }
li.wooecom_top_cart_item:first-child { border-top: 0; }
.wooecom_top_cart_item .wooecom_top_cart_img { flex: 0 0 auto; width: 36px !important; height: 36px !important; max-width: 36px !important; object-fit: cover; border-radius: 6px; border: 1px solid #e2e8f0; margin: 0 !important; }
.wooecom_top_cart_name { flex: 1 1 auto; min-width: 0; font-size: 13px; color: #334155; line-height: 1.4; overflow-wrap: anywhere; }
.wooecom_top_cart_qty { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #64748b; }
.wooecom_top_cart_price { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: #111827; white-space: nowrap; }
.wooecom_top_cart_item .wooecom_remove_cart_item { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #fee2e2; color: #e11d48 !important; font-size: 11px; text-decoration: none !important; }
.wooecom_top_cart_item .wooecom_remove_cart_item:hover { background: #e11d48; color: #ffffff !important; }
