.khs-picker{border:1px solid #e5e7eb;border-radius:14px;padding:20px;margin:18px 0;background:#fff;color:#222;clear:both}.khs-picker h3{font-size:1.2rem;margin:0 0 16px}.khs-picker .khs-group-label{display:block;font-weight:700;margin-bottom:8px}.khs-picker select{display:block;width:100%;max-width:440px;min-height:45px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#222}.khs-picker .khs-field{border:0;padding:0;margin:20px 0 0;min-width:0}.khs-picker .khs-field[hidden],.khs-picker .khs-summary[hidden]{display:none!important}.khs-picker legend{font-weight:700;margin-bottom:10px;padding:0}.khs-picker .khs-choices{display:flex;gap:9px;flex-wrap:wrap}.khs-picker .khs-option{cursor:pointer;position:relative;margin:0}.khs-picker .khs-option input{position:absolute;opacity:0;width:1px;height:1px}.khs-picker .khs-option span{display:inline-flex;min-width:55px;justify-content:center;align-items:center;border:1px solid #d1d5db;border-radius:9px;padding:10px 14px;background:#fafafa;color:#222;font-weight:600;transition:.15s}.khs-picker .khs-option input:checked+span{background:#D97706;color:white;border-color:#D97706}.khs-picker .khs-option input:focus-visible+span{outline:3px solid #2563eb;outline-offset:3px}.khs-picker .khs-summary{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:14px;margin-top:20px;line-height:2}.khs-picker .khs-summary strong{display:block}.khs-picker .khs-price{font-weight:700}.khs-picker .khs-hint{font-size:.88rem;color:#64748b;margin:15px 0 0}@media(max-width:600px){.khs-picker{padding:14px}.khs-picker .khs-option span{min-width:48px;padding:10px}}

#khs-elementor-fallback{display:block!important;visibility:visible!important;opacity:1!important;max-width:100%;clear:both;margin:18px 0}#khs-elementor-fallback .khs-shortcode-form{display:block!important}#khs-elementor-fallback .single_add_to_cart_button{display:inline-block!important;visibility:visible!important;opacity:1!important;margin:12px 0;padding:12px 22px;background:#d51c55;color:white;border:0;border-radius:7px;cursor:pointer}#khs-elementor-fallback .quantity{margin:10px 0}

/* Keep the size selector and purchase controls in the left-hand product details column. */
.woocommerce div.product .summary .khs-picker,.elementor-widget-woocommerce-product-price ~ #khs-elementor-fallback .khs-picker{width:100%;box-sizing:border-box;clear:none;margin:16px 0}
.woocommerce div.product .summary #khs-elementor-fallback{width:100%;box-sizing:border-box;margin:12px 0}
.woocommerce div.product .summary form.cart{max-width:100%;box-sizing:border-box}

.khs-validation-error:not([hidden]){display:block;color:#b42318;background:#fff1f0;border:1px solid #f5b5b0;border-radius:8px;padding:10px 12px;margin-top:12px;font-weight:600;text-align:right}

.khs-confirm-size{margin-top:16px;background:#ed1944;color:#fff;border:0;border-radius:8px;padding:12px 18px;cursor:pointer;font-weight:700}.khs-confirm-size:disabled{opacity:.5;cursor:not-allowed}.khs-confirm-status{font-size:13px;color:#14532d;margin:8px 0}.khs-confirm-status:empty{display:none}

/* White label in enabled, disabled, hover, focus and active states. */
.khs-picker button.khs-confirm-size,
.khs-picker button.khs-confirm-size:disabled,
.khs-picker button.khs-confirm-size:hover,
.khs-picker button.khs-confirm-size:focus,
.khs-picker button.khs-confirm-size:active,
.khs-picker button.khs-confirm-size:visited {color:#fff!important;-webkit-text-fill-color:#fff!important;}

/* Khosh Saligheh brand red: prices in the mattress size selector. */
.khs-picker .khs-price,
.khs-picker .khs-price strong,
.khs-picker .khs-price ins,
.khs-picker .khs-price .woocommerce-Price-amount,
.khs-picker .khs-price-range,
.khs-picker .khs-summary .khs-price {
  color:#ed1944 !important;
  -webkit-text-fill-color:#ed1944 !important;
}
.khs-picker .khs-price del,
.khs-picker .khs-price del .woocommerce-Price-amount {
  color:#858585 !important;
  -webkit-text-fill-color:#858585 !important;
}
/* Keep selection and confirmation indicators legible without changing their meaning. */
.khs-picker .khs-price {direction:rtl;text-align:right;}

/* v1.5.0: Single-product headline price (Elementor and WooCommerce), brand red. */
body.single-product .elementor-widget-woocommerce-product-price .price,
body.single-product .elementor-widget-woocommerce-product-price .price .amount,
body.single-product .elementor-widget-woocommerce-product-price .price .khs-price-range,
body.single-product .summary > .price,
body.single-product .summary > .price .amount,
body.single-product .summary .woocommerce-Price-amount,
body.single-product .summary .khs-price-range {
 color:#ed1944 !important;
 -webkit-text-fill-color:#ed1944 !important;
}
body.single-product .elementor-widget-woocommerce-product-price .price del,
body.single-product .elementor-widget-woocommerce-product-price .price del .amount,
body.single-product .summary .price del,
body.single-product .summary .price del .amount {
 color:#858585 !important;
 -webkit-text-fill-color:#858585 !important;
}

/* v1.5.1: brand color on the visible single-product headline price. */
body.single-product .elementor-widget-woocommerce-product-price .price,
body.single-product .elementor-widget-woocommerce-product-price .price :not(del):not(del *),
body.single-product .elementor-widget-woocommerce-product-price .woocommerce-Price-amount,
body.single-product .woocommerce div.product .summary p.price,
body.single-product .woocommerce div.product .summary span.price,
body.single-product .woocommerce div.product .summary .price :not(del):not(del *),
body.single-product div.product .summary .price,
body.single-product div.product .summary .price :not(del):not(del *) {
 color:#ed1944 !important;
 -webkit-text-fill-color:#ed1944 !important;
}
body.single-product .elementor-widget-woocommerce-product-price del,
body.single-product .elementor-widget-woocommerce-product-price del *,
body.single-product div.product .summary .price del,
body.single-product div.product .summary .price del * {
 color:#858585 !important;
 -webkit-text-fill-color:#858585 !important;
}

/* v1.5.2: responsive purchase controls */
form.cart .khs-purchase-row {display:flex!important;flex-wrap:wrap;align-items:center;gap:10px;direction:rtl;clear:both;margin:12px 0;width:100%;}
form.cart .khs-purchase-row .khs-qty {display:flex!important;align-items:center;justify-content:center;gap:0;float:none!important;margin:0!important;padding:0!important;border:1px solid #d1d5db;border-radius:8px;height:44px;box-sizing:border-box;position:relative;flex:0 0 auto;overflow:hidden;background:#fff;}
form.cart .khs-qty .khs-qty-input {position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none;padding:0!important;margin:0!important;}
form.cart .khs-qty .khs-qty-step {display:flex!important;align-items:center;justify-content:center;width:36px;height:42px;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:#f8f8f8!important;color:#ed1944!important;font-size:22px;cursor:pointer;}
form.cart .khs-qty .khs-qty-step:disabled {opacity:.4;cursor:default;}
form.cart .khs-qty .khs-qty-display {min-width:32px;text-align:center;color:#222;font-weight:600;}
form.cart .khs-purchase-row .single_add_to_cart_button {float:none!important;margin:0!important;min-height:44px;height:44px;box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;padding:0 12px!important;white-space:nowrap;font-size:14px;}
@media(max-width:767px){form.cart .khs-purchase-row .single_add_to_cart_button {flex:1 1 auto;font-size:13px;padding:0 8px!important;}form.cart .khs-qty .khs-qty-step{width:32px;}}

/* v1.5.7: compact responsive dimension choices */
.khs-picker .khs-field{margin:12px 0 0;}
.khs-picker .khs-field legend{margin-bottom:6px;}
.khs-picker .khs-field .khs-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(36px,1fr));gap:4px;}
.khs-picker .khs-field .khs-option{min-width:0;display:block;}
.khs-picker .khs-field .khs-option span{display:flex;width:100%;min-width:0;min-height:34px;padding:4px 2px;border-radius:5px;font-size:13px;line-height:1.4;}
.khs-picker .khs-option input:checked+span{background:#D97706;border-color:#D97706;color:#fff;}
@media(max-width:600px){.khs-picker .khs-field .khs-choices{grid-template-columns:repeat(auto-fit,minmax(36px,1fr));gap:4px;}.khs-picker .khs-field .khs-option span{min-height:36px;}}

.khs-picker .khs-field legend .khs-measure-icon{display:inline-block!important;width:78px!important;height:48px!important;object-fit:contain;vertical-align:middle;margin:0 0 0 6px;max-width:30%;}
@media(max-width:600px){.khs-picker .khs-field legend .khs-measure-icon{width:65px!important;height:40px!important;}}
