.size-combination-widget { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.size-combination-widget .variations { display: grid; gap: 18px; }
.size-combination-widget .ics-attribute-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.size-combination-widget legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.size-combination-widget .size-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
.size-combination-widget .size-button { width: auto; max-width: 100%; padding: 8px 14px; border: 1px solid #d1d5db; border-radius: 5px; background: #fff; color: #262626; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.size-combination-widget .size-button.active { border-color: var(--e-global-color-primary, #222); background: var(--e-global-color-primary, #222); color: #fff; }
.size-combination-widget .size-button:focus-visible { outline: 2px solid var(--e-global-color-primary, #222); outline-offset: 3px; }
.size-combination-widget .size-button:disabled { opacity: .4; cursor: not-allowed; }
.size-combination-widget.ics-options-enhanced select.ics-attribute-select,
.size-combination-widget .ics-native-variation-output,
.size-combination-widget .wc-no-matching-variations { display: none !important; }
.size-combination-widget .ics-selection-status { margin: 0; font-size: .875em; }
.size-combination-widget .ics-selection-status:empty { display: none; }
.custom-add-to-cart-button { max-width: 100%; }
.custom-add-to-cart-button:disabled { opacity: .5; cursor: not-allowed; }
.ics-cart-error { color: #b42318; font-size: .875em; }
.ics-inquiry-success { color: #166534; font-size: .875em; }
.ics-inquiry-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 160px; max-width: 100%; box-sizing: border-box; }
.ics-inquiry-actions .ics-inquiry-quantity { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 26px; margin: 0; padding: 0; font-size: 14px; line-height: 20px; white-space: nowrap; box-sizing: border-box; }
.ics-inquiry-actions .ics-inquiry-quantity input[type="number"] { flex: 0 1 80px; width: 80px; min-width: 0; max-width: 100%; height: 26px; margin: 0; padding: 2px 8px; border-width: 1px; font-size: 14px; line-height: 20px; box-sizing: border-box; -moz-appearance: textfield; appearance: textfield; }
.ics-inquiry-actions input[type="number"]::-webkit-inner-spin-button,
.ics-inquiry-actions input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Override Elementor's button dimensions only inside the custom inquiry controls. */
.elementor .elementor-widget-custom_add_to_cart .ics-inquiry-actions > .custom-add-to-cart-button[data-product-type="ics_custom"],
.ics-inquiry-actions > .custom-add-to-cart-button[data-product-type="ics_custom"] { display: flex; align-items: center; justify-content: center; width: 100%; height: 30px; min-height: 0; margin: 0; padding: 4px 12px; border-width: 1px; line-height: 20px; box-sizing: border-box; }
.ics-inquiry-actions .custom-add-to-cart-button .button-content { justify-content: center; }
.elementor .elementor-widget-custom_add_to_cart:has(.ics-inquiry-actions) { width: 160px; max-width: 100%; min-width: 0; flex: 0 0 160px; align-self: flex-start; }
/* Match the two neighboring widgets without depending on Elementor template IDs. */
.single-product .e-con:has(> .elementor-widget-dynamic_price):has(> .elementor-widget-custom_add_to_cart .ics-inquiry-actions) { --align-items: flex-start; }
.single-product .e-con:has(> .elementor-widget-custom_add_to_cart .ics-inquiry-actions) > .elementor-widget-dynamic_price { flex: 1 1 0; width: auto; min-width: 0; align-self: flex-start; }
.single-product .elementor-widget-dynamic_price:has(.dynamic-price-widget[data-product-type="ics_custom"]) > .elementor-widget-container { padding-top: 0; }
.dynamic-price-widget[data-product-type="ics_custom"] .price-range { display: block; min-height: 60px; text-align: left; }
.dynamic-price-widget[data-product-type="ics_custom"] .ics-product-price { width: 100%; justify-content: flex-start; column-gap: 8px; row-gap: 4px; }
.dynamic-price-widget[data-product-type="ics_custom"] .ics-product-price ins { flex-basis: 100%; }
@media (max-width: 767px) {
    .elementor .elementor-widget-custom_add_to_cart:has(.ics-inquiry-actions) { width: 100%; flex: 0 0 auto; }
    .elementor .elementor-widget-custom_add_to_cart .ics-inquiry-actions { width: 100%; }
    .single-product .e-con:has(> .elementor-widget-custom_add_to_cart .ics-inquiry-actions) > .elementor-widget-dynamic_price { flex: 0 0 auto; width: 100%; }
}
/* Use Elementor's card layout to align catalog buttons along each row's bottom edge. */
.elementor-3340 .elementor-wc-products ul.products.elementor-grid {
    align-items: stretch;
}
.elementor-3340 .elementor-wc-products ul.products.elementor-grid li.product {
    --button-align-display: flex;
    --button-align-direction: column;
    --button-align-justify: space-between;
}
/* Match the Products template's full-width catalog buttons for custom products. */
.elementor-3340 .products .product .product_type_ics_custom {
    display: block;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.ics-product-price { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5em; }
.ics-product-price del { opacity: .6; font-size: .85em; }
.ics-product-price ins { background: none; text-decoration: none; font-weight: 600; }
.ics-product-price .ics-discount-badge { display: inline-block; padding: .2em .5em; border-radius: 4px; background: #fce8e6; color: #9f2419; font-size: .7em; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.dynamic-price-widget .price-range.ics-price-pending,
[data-field="woo_price"].ics-price-pending { visibility: hidden; }
