/* ───────── מרכז הסאונד · WooCommerce layer (cart, checkout, My Account) ─────────
   Templates carry the design markup inline; this file styles what WooCommerce generates
   (form rows, notices, select2, payment boxes, order tables) and the few state-dependent
   bits that inline styles can't express (selected cards, invalid fields). */

/* helpers */
wc-order-attribution-inputs{display:none}
.ms-vh{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;border:0!important;opacity:0}
.ms-wc-page input[type=number]::-webkit-inner-spin-button,.ms-wc-page input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* ---------- notices ---------- */
.woocommerce-notices-wrapper:empty{display:none}
.ms-wc-page .woocommerce > .woocommerce-notices-wrapper,
form.woocommerce-checkout > .woocommerce-NoticeGroup,
.ms-wc-page .woocommerce > .woocommerce-message,.ms-wc-page .woocommerce > .woocommerce-error,.ms-wc-page .woocommerce > .woocommerce-info,
.ms-wc-page .woocommerce-form-coupon-toggle{max-width:1200px;margin:20px auto -12px;padding:0 32px}
.woocommerce-MyAccount-content .woocommerce-notices-wrapper,.woocommerce-order .woocommerce-notices-wrapper{margin:0;padding:0}
.woocommerce-error,.woocommerce-message,.woocommerce-info{list-style:none;margin:0 0 10px;padding:14px 18px;border-radius:12px;font-size:14px;line-height:1.55;display:flex;flex-direction:column;gap:4px;background:#f4f3f0;color:#141416}
.woocommerce-error{background:#fdecec;color:#8f1015}
.woocommerce-message{background:#eaf4ee;color:#1f5c3c}
.woocommerce-error li{list-style:none;margin:0}
.woocommerce-error::before,.woocommerce-message::before,.woocommerce-info::before{display:none}
.woocommerce-message a,.woocommerce-info a,.woocommerce-error a{font-weight:600;text-decoration:underline}
.woocommerce-message .button,.woocommerce-info .button{float:left;text-decoration:none;font-weight:600}
.woocommerce-NoticeGroup .woocommerce-error{margin:0}

/* ---------- form rows (woocommerce_form_field) ---------- */
.ms-fg{display:grid;gap:14px;align-items:start}
.ms-fg2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ms-fg4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ms-fg .form-row{margin:0;padding:0;display:flex;flex-direction:column;gap:6px;min-width:0;float:none;width:auto}
.ms-fg2 .form-row{grid-column:span 1}
.ms-fg4 .form-row{grid-column:span 2}
.ms-fg .form-row-wide,.ms-fg .notes,.ms-fg #order_comments_field{grid-column:1/-1}
.ms-fg .form-row.ms-c1{grid-column:span 1}
.ms-fg .form-row.ms-c2{grid-column:span 2}
.ms-fg .form-row.ms-c3{grid-column:span 3}
.ms-fg .form-row.ms-c4{grid-column:1/-1}
.ms-fg2 .form-row.ms-c2,.ms-fg2 .form-row.ms-c3{grid-column:1/-1}
.ms-fg .form-row.ms-hide,.ms-fg .form-row[style*="display: none"]{display:none!important}
.ms-fg .form-row label,.ms-wc-page .form-row > label:not(.checkbox):not(.woocommerce-form__label-for-checkbox){font-size:13px;font-weight:500;line-height:1.4;color:#141416;display:block;margin:0}
.ms-fg .form-row label .required,.ms-fg .form-row label .optional{display:none}
.ms-fg .form-row .woocommerce-input-wrapper{display:block;width:100%}
.ms-fg .form-row input.input-text,.ms-fg .form-row select,.ms-fg .form-row textarea,.ms-wc-page .woocommerce-form-row input.input-text,.ms-wc-page .woocommerce-ResetPassword input.input-text{width:100%;box-sizing:border-box;height:50px;border-radius:11px;border:1.5px solid #e6e5e1;background:#fff;font:inherit;font-size:15px;padding:0 14px;color:#141416;outline:none;text-align:right;transition:border-color .15s,background .15s}
.ms-fg .form-row textarea{height:auto;min-height:96px;padding:12px 14px;line-height:1.5;resize:vertical}
.ms-fg .form-row input.input-text:focus,.ms-fg .form-row select:focus,.ms-fg .form-row textarea:focus,.ms-wc-page .woocommerce-form-row input.input-text:focus{border-color:#141416}
.ms-fg .form-row input[dir=ltr]{direction:ltr;text-align:right}
.ms-fg .form-row select{-webkit-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,#6b6b70 50%),linear-gradient(135deg,#6b6b70 50%,transparent 50%);background-position:18px 22px,13px 22px;background-size:5px 5px;background-repeat:no-repeat;padding-left:34px}
.ms-fg .form-row .description{font-size:12px;color:#6b6b70}
.ms-fg .form-row strong{font-weight:600;font-size:15px}

/* invalid (ours + WooCommerce inline validation) */
.ms-fg .form-row.ms-invalid input.input-text,.ms-fg .form-row.ms-invalid select,.ms-fg .form-row.ms-invalid textarea,
.ms-fg .form-row.woocommerce-invalid input.input-text,.ms-fg .form-row.woocommerce-invalid select{border-color:#c0161d;background:#fff7f7}
.ms-err{font-size:12px;color:#c0161d;display:flex;align-items:center;gap:5px;line-height:1.4}
.ms-fg .form-row .checkout-inline-error-message{font-size:12px;color:#c0161d;margin:0}
.ms-fg .form-row.ms-invalid .checkout-inline-error-message{display:none}

/* select2 / selectWoo (country / state) */
.ms-fg .select2-container{width:100%!important}
.ms-fg .select2-container .select2-selection--single{height:50px;border-radius:11px;border:1.5px solid #e6e5e1;background:#fff;display:flex;align-items:center}
.ms-fg .select2-container .select2-selection--single .select2-selection__rendered{line-height:47px;padding:0 14px 0 34px;font-size:15px;color:#141416}
.ms-fg .select2-container .select2-selection--single .select2-selection__arrow{height:47px;left:8px;right:auto}
.ms-fg .select2-container--open .select2-selection--single,.ms-fg .select2-container--focus .select2-selection--single{border-color:#141416}
.select2-dropdown{border:1.5px solid #141416!important;border-radius:11px!important;overflow:hidden;font-family:var(--ms-font)}
.select2-results__option{padding:10px 14px;font-size:14px}
.select2-container--default .select2-results__option--highlighted[aria-selected],.select2-container--default .select2-results__option--highlighted[data-selected]{background:#141416!important;color:#fff!important}
.select2-search--dropdown .select2-search__field{border:1.5px solid #e6e5e1!important;border-radius:9px;height:40px;padding:0 10px!important}

/* ---------- option cards (shipping methods / payment methods / pickup branches) ---------- */
.ms-opt{border:1.5px solid #e6e5e1;background:#fff;position:relative}
.ms-opt .ms-ring,.ms-pay .ms-ring{border:1.5px solid #b9b8b4}
.ms-opt .ms-ring > span,.ms-pay .ms-ring > span{background:transparent;transition:background .15s}
.ms-opt .ms-ico{background:#f4f3f0}
.ms-opt.is-on,.ms-opt:has(input:checked){border-color:#141416;background:#f7f6f3}
.ms-opt.is-on .ms-ring,.ms-opt:has(input:checked) .ms-ring,.ms-pay.is-on .ms-ring,.ms-pay:has(> input:checked) .ms-ring{border-color:#141416}
.ms-opt.is-on .ms-ring > span,.ms-opt:has(input:checked) .ms-ring > span,.ms-pay.is-on .ms-ring > span,.ms-pay:has(> input:checked) .ms-ring > span{background:#141416}
.ms-opt.is-on .ms-ico,.ms-opt:has(input:checked) .ms-ico{background:#fff}
.ms-opt:hover,.ms-pay:hover{border-color:#141416}
.ms-opt:has(input:focus-visible),.ms-pay:has(> input:focus-visible),.ms-store:has(input:focus-visible){outline:2px solid var(--ms-red);outline-offset:2px}
.ms-pay{border:1.5px solid #e6e5e1;background:#fff;margin:0;list-style:none}
.ms-pay.is-on,.ms-pay:has(> input:checked){border-color:#141416;background:#f7f6f3}
.ms-pay .ms-pay-logos img{max-height:24px;width:auto;display:block}
.wc_payment_methods > li:only-child .ms-ring{display:none}
.ms-store{border:1px solid #e6e5e1}
.ms-store.is-on,.ms-store:has(input:checked){border-color:#141416}
.ms-wc-page .payment_box{margin:0 16px 14px;padding:14px;border-radius:11px;background:#fff;font-size:13px;line-height:1.55;color:#2a2a2e}
.ms-wc-page .payment_box::before{display:none}
.ms-wc-page .payment_box p{margin:0 0 8px}.ms-wc-page .payment_box p:last-child{margin:0}
.ms-wc-page .payment_box fieldset{border:0;padding:0;margin:0}
.ms-wc-page .payment_box .form-row{margin:0 0 10px;display:flex;flex-direction:column;gap:6px}
.ms-wc-page .payment_box input.input-text,.ms-wc-page .payment_box select{height:46px;border-radius:10px;border:1.5px solid #e6e5e1;padding:0 12px;font:inherit;font-size:15px;box-sizing:border-box;width:100%}
.ms-wc-page .payment_box .wc-saved-payment-methods{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:8px}
.ms-wc-page .payment_box .wc-saved-payment-methods li{display:flex;align-items:center;gap:8px}

/* place order */
#place_order.ms-place:hover{filter:brightness(.92)}
#place_order.ms-place:disabled{opacity:.6;cursor:wait}
.woocommerce-privacy-policy-text{font-size:12px;color:#6b6b70;line-height:1.55}
.woocommerce-privacy-policy-text p{margin:0}
.woocommerce-privacy-policy-text a{text-decoration:underline}
.woocommerce-terms-and-conditions{max-height:220px;overflow:auto;padding:14px;border-radius:12px;background:#f7f6f3;font-size:13px;margin-bottom:12px}
.woocommerce-terms-and-conditions-wrapper{display:flex;flex-direction:column;gap:12px}
.ms-terms label a{color:#141416}
.ms-terms.woocommerce-invalid label{color:#c0161d}

/* order review / payment while updating */
.ms-wc-page .blockUI.blockOverlay{border-radius:18px;background:rgba(255,255,255,.6)!important;opacity:1!important}
.woocommerce-checkout-review-order-table .ms-item-meta dl,.ms-item-meta dl{margin:0;display:flex;flex-wrap:wrap;gap:2px 6px}
.ms-item-meta dt,.ms-item-meta dd{margin:0;display:inline}
.ms-item-meta dd p{margin:0;display:inline}
.ms-notes summary::-webkit-details-marker{display:none}
.woocommerce-shipping-fields .shipping_address{margin-top:12px}
#ship-to-different-address input{flex:none}

/* ---------- cart ---------- */
.ms-wc-page .ms-qty-locked{font-weight:600}

/* ---------- account ---------- */
.ms-chip{background:#fff;color:#141416;border-color:#e6e5e1}
.ms-chip[aria-pressed=true]{background:#141416;color:#fff;border-color:#141416}
[data-acc][aria-expanded=true] [data-acc-chev]{transform:rotate(180deg)}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}

/* order details (view order / pay page): WooCommerce tables as design cards */
.woocommerce-order-details,.woocommerce-customer-details,.ms-wc-page .order_details{background:#fff;border-radius:18px;padding:22px;margin:0 0 16px}
.woocommerce-order-details__title,.woocommerce-column__title{margin:0 0 12px;font-size:17px;font-weight:600}
.ms-wc-page table.shop_table{width:100%;border-collapse:collapse;font-size:14px}
.ms-wc-page table.shop_table th,.ms-wc-page table.shop_table td{padding:12px 0;border-bottom:1px solid #f0efeb;text-align:right;vertical-align:top}
.ms-wc-page table.shop_table thead th{font-size:12px;color:#6b6b70;font-weight:500}
.ms-wc-page table.shop_table tfoot th{font-weight:500;color:#4a4a4f}
.ms-wc-page table.shop_table tfoot tr:last-child th,.ms-wc-page table.shop_table tfoot tr:last-child td{font-weight:700;font-size:16px;color:#141416;border-bottom:0}
.ms-wc-page table.shop_table td:last-child,.ms-wc-page table.shop_table th:last-child{text-align:left}
.ms-wc-page table.shop_table .wc-item-meta{list-style:none;margin:4px 0 0;padding:0;font-size:12px;color:#6b6b70}
.ms-wc-page table.shop_table .wc-item-meta p{display:inline;margin:0}
.woocommerce-customer-details address{font-style:normal;font-size:14px;line-height:1.7;color:#4a4a4f;border:0;padding:0}
.woocommerce-customer-details .woocommerce-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.woocommerce-customer-details .woocommerce-customer-details--phone,.woocommerce-customer-details .woocommerce-customer-details--email{margin:4px 0 0}
.ms-order-details .order-again{margin:0}
.ms-wc-page .order-again .button,.ms-wc-page .woocommerce-button.button{text-decoration:none}

/* lost / reset password + pay page */
.woocommerce-ResetPassword,.ms-wc-page #order_review:not(.woocommerce-checkout-review-order){background:#fff;border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:14px}
.woocommerce-ResetPassword p{margin:0}
.woocommerce-ResetPassword .form-row{display:flex;flex-direction:column;gap:6px}
.ms-wc-page .woocommerce-ResetPassword .button,.ms-wc-page #order_review #place_order:not(.ms-place),.ms-wc-page .woocommerce-form-login .button{height:48px;padding:0 22px;border-radius:11px;border:0;background:#141416;color:#fff;font:inherit;font-weight:600;cursor:pointer}
.ms-wc-page #order_review .wc_payment_methods{list-style:none;margin:0 0 14px;padding:0;display:flex;flex-direction:column;gap:10px}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .ms-co-head > div{gap:20px!important}
  .ms-wc-page .woocommerce > .woocommerce-notices-wrapper,form.woocommerce-checkout > .woocommerce-NoticeGroup{padding:0 24px}
}
@media (max-width:640px){
  .ms-co-head > div{height:64px!important;gap:0!important;padding:0 12px!important}
  .ms-co-head ol{gap:6px!important}
  .ms-co-head ol li{gap:6px!important}
  .ms-co-head ol li > a,.ms-co-head ol li > span:first-child{font-size:13px!important;gap:6px!important}
  .ms-co-head ol li > span:last-child{width:14px!important}
  .ms-fg2,.ms-fg4{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .ms-fg .form-row,.ms-fg .form-row.ms-c2,.ms-fg .form-row.ms-c3,.ms-fg2 .form-row{grid-column:1/-1}
  .ms-fg4 .form-row.ms-c1{grid-column:span 1}
  .ms-wc-page .woocommerce > .woocommerce-notices-wrapper,form.woocommerce-checkout > .woocommerce-NoticeGroup{padding:0 12px;margin-top:12px}
  .woocommerce-customer-details .woocommerce-columns{grid-template-columns:minmax(0,1fr)}
  .ms-wc-page .payment_box{margin:0 12px 12px}
  .ms-opt{min-height:64px!important;padding:12px!important;gap:10px!important}
  .ms-opt .ms-ico{width:38px!important;height:38px!important}
  .ms-wc-page main[data-g="side"] form{margin:0}
}
.woocommerce-message:focus,.woocommerce-error:focus,.woocommerce-info:focus,[tabindex="-1"]:focus:not(:focus-visible){outline:none}
@media (max-width:640px){[data-cart-wish] [data-wl-label]{display:none}}
@media (max-width:640px){[data-ci-actions]{gap:10px!important}}
