/* GAMA storefront UX, 2026-10-27 */
#gama-buybar{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:9990;background:#fff;box-shadow:0 2px 24px #0003;border:1px solid #ddd;border-radius:12px;padding:12px 18px;display:flex;align-items:center;gap:18px;max-width:620px;width:calc(100% - 32px);direction:rtl}
#gama-buybar[hidden]{display:none}#gama-buybar button,.gama-consent button{font:inherit;cursor:pointer;min-height:44px;border-radius:7px;padding:10px 18px;border:1px solid #333;background:white;color:#222}#gama-buybar button{background:#ad3a70;color:white;border:0;flex:1;font-weight:700}#gama-buybar span{font-weight:700;white-space:nowrap}.gama-buybar-active body{padding-bottom:100px}
.gama-consent{position:fixed;inset:0;background:#0006;z-index:2147483646;display:grid;place-items:center;padding:16px;direction:rtl;color:#222;font:16px/1.6 Arial,sans-serif}.gama-consent[hidden]{display:none}.gama-consent-panel{background:#fff;border-radius:16px;max-width:580px;width:100%;padding:26px;box-shadow:0 12px 60px #0004;max-height:85vh;overflow:auto}.gama-consent h2{font-size:23px;margin:0 0 10px;color:#222}.gama-consent p{margin:0 0 15px}.gama-consent a{color:#8b2756;text-decoration:underline}.gama-consent-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.gama-consent button{flex:1}.gama-consent button[data-choice=all]{background:#222;color:white}.gama-consent label{display:flex;gap:10px;align-items:flex-start;margin:14px 0}.gama-consent input{width:22px;height:22px;flex-shrink:0}.gama-cookie-settings{display:block;margin:15px auto;padding:8px 16px;background:transparent;border:1px solid #aaa;border-radius:5px;color:inherit;font:inherit;cursor:pointer;min-height:44px}.gama-action-label{margin-inline-start:6px;font-family:Arial,sans-serif;font-size:13px}
@media(max-width:767px){
 #gama-buybar{bottom:0;left:0;transform:none;width:100%;max-width:none;border-radius:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:12px}
 .gama-buybar-active #getbutton-whatsapp{bottom:calc(92px + env(safe-area-inset-bottom))!important;left:16px!important;right:auto!important;width:48px!important;height:48px!important}
 #getbutton-whatsapp{width:48px!important;height:48px!important}
 #checkout-cart .cart-table .table-responsive,.quick-checkout-wrapper .checkout-cart .table-responsive,.quick-checkout-wrapper .section-cart .table-responsive{overflow:visible!important}
 #checkout-cart .cart-table table,.gama-cart-cards{width:100%!important;min-width:0!important;display:block!important;border:0!important}
 #checkout-cart .cart-table thead,.gama-cart-cards thead{display:none!important}
 #checkout-cart .cart-table tbody,.gama-cart-cards tbody{display:block!important;width:100%!important}
 #checkout-cart .cart-table tbody>tr,.gama-cart-cards tbody>tr{display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:10px;direction:rtl;padding:16px!important;margin:0 0 14px!important;background:#fff;border:1px solid #ddd!important;border-radius:12px;width:100%!important;box-sizing:border-box}
 #checkout-cart .cart-table td,.gama-cart-cards td{display:block!important;width:auto!important;min-width:0!important;max-width:none!important;border:0!important;padding:0!important;white-space:normal!important;text-align:right!important;overflow-wrap:anywhere}
 #checkout-cart .cart-table .td-image,.gama-cart-cards .td-image{grid-column:1;grid-row:1 / span 2}#checkout-cart .cart-table .td-image img,.gama-cart-cards .td-image img{width:68px!important;height:68px!important;object-fit:contain}
 #checkout-cart .cart-table .td-name,.gama-cart-cards .td-product{grid-column:2;font-size:15px;line-height:1.5}
 #checkout-cart .cart-table .td-model,.gama-cart-cards .td-model{display:none!important}
 #checkout-cart .cart-table .td-qty,.gama-cart-cards .td-qty{grid-column:1 / -1;width:100%!important;margin-top:8px}
 #checkout-cart .cart-table .td-qty:before,.gama-cart-cards .td-qty:before{content:'כמות';display:block;font-weight:700;margin-bottom:8px}
 #checkout-cart .cart-table .input-group,.gama-cart-cards .input-group{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;max-width:none!important;width:100%!important}
 #checkout-cart .cart-table .stepper,.gama-cart-cards .stepper{display:flex!important;align-items:center!important;position:relative!important;width:138px!important;height:46px!important;flex-shrink:0}
 #checkout-cart .cart-table .stepper button,.gama-cart-cards .stepper button{position:static!important;min-width:44px!important;min-height:44px!important;height:44px!important;display:block!important;transform:none!important;font-size:18px!important}
 #checkout-cart .cart-table .stepper input,.gama-cart-cards .stepper input{width:48px!important;height:44px!important;padding:0!important;font-size:16px!important;text-align:center!important;min-width:0!important}
 #checkout-cart .cart-table .input-group-btn,.gama-cart-cards .input-group-btn{display:flex!important;flex:1!important;width:auto!important;gap:6px!important;position:static!important}
 #checkout-cart .cart-table .input-group-btn button,.gama-cart-cards .input-group-btn button{min-height:44px!important;min-width:70px!important;padding:8px!important;display:flex!important;align-items:center;justify-content:center;position:static!important;border-radius:6px!important}
 #checkout-cart .cart-table .td-price,.gama-cart-cards .td-price{grid-column:1 / -1;font-size:14px}#checkout-cart .cart-table .td-price:before,.gama-cart-cards .td-price:before{content:'מחיר ליחידה: ';color:#666}
 #checkout-cart .cart-table .td-total,.gama-cart-cards .td-total{grid-column:1 / -1;font-size:17px;font-weight:700}#checkout-cart .cart-table .td-total:before,.gama-cart-cards .td-total:before{content:'סה״כ: '}
 .gama-no-scroll:before,.gama-no-scroll:after{display:none!important}.gama-no-scroll{overflow:visible!important}
 .gama-consent-panel{padding:20px}.gama-consent-actions{flex-direction:column}
}

/* Keep theme icon overlays inside their own action button. */
.gama-cart-cards .input-group-btn button i,#checkout-cart .cart-table .input-group-btn button i{position:static!important;inset:auto!important;transform:none!important;width:auto!important;height:auto!important;pointer-events:none!important;font-size:15px!important;line-height:1!important}
.gama-cart-cards .input-group-btn button *,#checkout-cart .cart-table .input-group-btn button *{pointer-events:none!important}
@media(max-width:767px){.gama-cart-cards .stepper button,#checkout-cart .cart-table .stepper button{flex:0 0 44px!important}.gama-cart-cards .stepper input,#checkout-cart .cart-table .stepper input{flex:0 0 48px!important}.gama-cart-cards .input-group-btn .btn-primary,#checkout-cart .cart-table .input-group-btn .btn-update{background:#333!important;color:#fff!important}.gama-cart-cards .input-group-btn .btn-danger,#checkout-cart .cart-table .input-group-btn .btn-remove{background:#fff!important;color:#a52a3b!important;border:1px solid #a52a3b!important}}

@media(max-width:767px){.gama-cart-cards .stepper,#checkout-cart .cart-table .stepper{padding:0!important;box-sizing:border-box!important;overflow:visible!important;min-width:138px!important}.gama-cart-cards .stepper input,#checkout-cart .cart-table .stepper input{float:none!important;text-indent:0!important}.gama-buybar-active .uwy .userway_buttons_wrapper{bottom:calc(100px + env(safe-area-inset-bottom))!important}.gama-buybar-active #getbutton-whatsapp{position:fixed!important;bottom:calc(100px + env(safe-area-inset-bottom))!important;left:16px!important;z-index:9991!important}}

@media(max-width:767px){html.gama-buybar-active body .uwy #userwayAccessibilityIcon{position:fixed!important;bottom:100px!important;right:16px!important;left:auto!important;top:auto!important}}

/* Side cart: readable product cards and touch controls. */
.cart-content .cart-products{background:#fff!important;color:#222!important;padding:16px!important}
.cart-content .cart-products table,.cart-content .cart-products tbody{display:block!important;width:100%!important;border:0!important}
.cart-content .cart-products tr{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;gap:10px!important;direction:rtl!important;padding:14px 0!important;border-bottom:1px solid #ddd!important;position:relative!important}
.cart-content .cart-products td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;white-space:normal!important;color:#222!important;opacity:1!important;text-align:right!important}
.cart-content .cart-products .td-image{grid-column:1;grid-row:1 / span 2}.cart-content .cart-products .td-image img{width:68px!important;height:68px!important;object-fit:contain!important}
.cart-content .cart-products .td-name{grid-column:2!important}.cart-content .cart-products .td-name a{color:#222!important;opacity:1!important;font-size:15px!important;line-height:1.5!important;text-decoration:none!important;display:block!important}
.cart-content .cart-products .td-qty{grid-column:1 / -1!important}.cart-content .cart-products .td-total{grid-column:2!important;font-size:16px!important;font-weight:700!important;display:block!important}
.cart-content .cart-products .td-remove{grid-column:1 / -1!important;text-align:left!important}
.cart-content .cart-products .cart-remove{position:static!important;inset:auto!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:auto!important;height:auto!important;min-height:44px!important;min-width:90px!important;padding:8px 12px!important;border:1px solid #a52a3b!important;border-radius:6px!important;background:#fff!important;color:#a52a3b!important;font-size:14px!important}
.cart-content .cart-products .cart-remove:before{display:none!important}.cart-content .cart-products .cart-remove i{position:static!important;pointer-events:none!important;transform:none!important;font-size:16px!important}.cart-content .cart-products .cart-remove span{pointer-events:none!important;color:#a52a3b!important}
.gama-mini-controls{display:flex!important;align-items:center!important;gap:8px!important;direction:rtl!important;color:#222!important}.gama-mini-controls label{margin:0 0 0 auto!important;font:700 14px Arial!important;color:#222!important}.gama-mini-controls button{position:static!important;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;border:1px solid #777!important;background:#f6f6f6!important;color:#222!important;border-radius:6px!important;font:24px/1 Arial!important;padding:0!important;transform:none!important;display:inline-block!important}.gama-mini-controls input{position:static!important;width:54px!important;min-width:54px!important;height:44px!important;padding:0!important;text-align:center!important;font:16px Arial!important;color:#222!important;background:#fff!important;border:1px solid #777!important;border-radius:6px!important;float:none!important;-moz-appearance:textfield}.gama-mini-controls input::-webkit-inner-spin-button{appearance:none}
.cart-content .cart-totals{background:#f5f5f5!important;color:#222!important;padding:16px!important}.cart-content .cart-totals td{color:#222!important;font-size:14px!important;white-space:normal!important}.cart-content .cart-totals .td-total-text{white-space:nowrap!important;font-weight:700!important;direction:ltr!important}.cart-content .cart-buttons{display:flex!important;flex-direction:column!important;gap:10px!important}.cart-content .cart-buttons .btn{min-height:46px!important;display:flex!important;justify-content:center!important;align-items:center!important;border:1px solid #333!important;border-radius:6px!important;font-size:16px!important}.cart-content .cart-buttons .btn-cart{background:#fff!important;color:#222!important}.cart-content .cart-buttons .btn-checkout{background:#ad3a70!important;color:#fff!important;border-color:#ad3a70!important}.cart-content .cart-buttons .btn span{color:inherit!important;opacity:1!important}
@media(max-width:767px){.mobile-cart-content-container{width:calc(100vw - 24px)!important;max-width:440px!important;height:100vh!important;height:100dvh!important;background:#fff!important;display:flex!important;flex-direction:column!important}.mobile-cart-content-container .mobile-wrapper-header{flex:0 0 56px!important;min-height:56px!important}.mobile-cart-content-wrapper{flex:1!important;min-height:0!important;height:auto!important;overflow:hidden!important;background:#fff!important}.mobile-cart-content-wrapper>ul{height:100%!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;margin:0!important;padding:0!important}.mobile-cart-content-wrapper .cart-products{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.mobile-cart-content-wrapper .cart-totals{position:static!important;flex:0 0 auto!important;margin:0!important;padding:14px 14px calc(14px + env(safe-area-inset-bottom))!important}.mobile-cart-content-container-open #getbutton-whatsapp,.mobile-cart-content-container-open #gama-buybar{visibility:hidden!important;pointer-events:none!important}.mobile-cart-content-container-open .uwy{visibility:hidden!important;pointer-events:none!important}}

.cart-content .cart-products .td-name a{white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important;overflow:visible!important;text-overflow:clip!important;height:auto!important;max-height:none!important}
.cart-content .cart-totals table,.cart-content .cart-totals tbody,.cart-content .cart-totals tr,.cart-content .cart-totals td,.cart-content .cart-totals .cart-buttons{background:#f5f5f5!important}
.mobile-cart-content-wrapper.cart-content .cart-totals td{background:#f5f5f5!important;color:#222!important;padding:8px 4px!important}
.mobile-cart-content-wrapper.cart-content .cart-buttons a.btn-cart,.mobile-cart-content-wrapper.cart-content .cart-buttons a.btn-cart span{color:#222!important;border-color:#333!important}

@media(max-width:767px){html.mobile-cart-content-container-open body .uwy #userwayAccessibilityIcon,html.mobile-cart-content-container-open body .uwy .userway_buttons_wrapper{display:none!important;visibility:hidden!important}}
