/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Citizen avatar controls and saved photo. */
.moti-citizen-avatar-photo {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

.citizen-pencil .moti-citizen-avatar-trigger {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
}

.moti-citizen-avatar-trigger:focus-visible {
  outline: 2px solid #195ad0;
  outline-offset: 2px;
}

.moti-citizen-avatar-dialog {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(12px, 4dvh, 26px);
  border: 2px solid #a775e3;
  border-radius: 18px;
  background: #fff5e8;
  color: #241836;
  font: 16px/1.35 Polin, sans-serif;
  text-align: start;
}

.moti-citizen-avatar-dialog::backdrop { background: #241836bb; }
.moti-citizen-avatar-dialog h2 { font-size: 22px; margin: 0 0 12px; }
.moti-citizen-avatar-dialog input { display: block; max-width: 100%; margin: 6px 0 10px; }
.moti-citizen-avatar-dialog p { margin: 0 0 8px; }
.moti-citizen-avatar-status:empty { display: none; }
.moti-citizen-avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.moti-citizen-avatar-actions button { min-height: 44px; padding: 6px 12px; border-radius: 20px; }
.moti-citizen-avatar-actions button[hidden] { display: none; }

/* Parent subscription: only wrapper and interaction behaviour. */
.subscription-panel .elementor-widget-image,.subscription-panel .elementor-widget-button{font-size:0;line-height:0}
.subscription-panel > .elementor-widget-image,.subscription-panel > .elementor-widget-heading:not(:has(h1)){pointer-events:none}
.subscription-content > *{min-width:0}
.subscription-panel [data-unavailable] a{cursor:default;opacity:.65}
.subscription-content .elementor-heading-title{overflow-wrap:anywhere}
.subscription-feedback:has(.elementor-heading-title:empty){display:none}
.parent-subscription .parents-room{overflow:clip}

/* Parents gate: native dialog shell and form height controls absent in Elementor. */
#moti-parents-gate {
  box-sizing:border-box;
  position:fixed;
  width:var(--pg-width,min(440px,calc(100vw - 24px)));
  max-width:calc(100vw - 24px);
  max-height:var(--pg-max-height,calc(100dvh - var(--wp-admin--admin-bar--height,0px) - 24px));
  inset:var(--pg-top,calc(var(--wp-admin--admin-bar--height,0px) + 12px)) 0 var(--pg-bottom,12px);
  margin:auto;
  overflow:auto;
  overscroll-behavior:contain;
  padding:0;
  border:0;
  background:transparent;
  color:#241836;
}
#moti-parents-gate::backdrop { background:#241836bf; }
#moti-parents-gate .parents-gate-form input {
  min-height:clamp(30px,calc(47px * var(--pg-unit,1)),47px);
  padding:calc(7px * var(--pg-unit,1)) calc(12px * var(--pg-unit,1));
  box-shadow:inset 0 2px 2px #0002;
}
#moti-parents-gate .parents-gate-form button {
  min-height:clamp(30px,calc(45px * var(--pg-unit,1)),45px);
  background-image:linear-gradient(180deg,#9fc0ff,#195ad0);
  box-shadow:0 4px 4px #0004;
}
#moti-parents-gate .parents-gate-panel .elementor-widget-image { font-size:0;line-height:0; }
#moti-parents-gate .parents-gate-message:has(.elementor-heading-title:empty),
#moti-parents-gate .parents-gate-feedback:empty { display:none; }
#moti-parents-gate .parents-gate-feedback { color:#a12c2c;font:14px/1.25 Heebo,sans-serif;text-align:center;margin-top:10px; }
#moti-parents-gate [aria-invalid="true"] { outline:2px solid #a12c2c; }
#moti-parents-gate [aria-busy="true"] { opacity:.7; }

/* Customer service wrappers */
/* Widget wrapper line boxes have no Elementor layout control. */
.customer-service-panel .elementor-widget-image,.customer-service-panel .elementor-widget-button{font-size:0;line-height:0}
.customer-service-panel > .elementor-widget-image,.customer-service-panel > .elementor-widget-heading:not(:has(h1)){pointer-events:none}
.service-content > *{min-width:0}
.service-content .elementor-heading-title{overflow-wrap:anywhere}
.customer-service .parents-room{overflow:clip}
.service-topic:not(.is-selected) .elementor-button{background:#fff;color:#241836;box-shadow:inset 0 2px 2px #00000026}
.service-topic.is-selected .elementor-button{background:linear-gradient(#9fc0ff,#195ad0);color:#fff;box-shadow:0 2px 1px #0004}
.service-topic a:focus-visible,.service-post-link:focus-visible{outline:2px solid #241836;outline-offset:2px}
.customer-service-form .elementor-message{font-size:calc(14 * var(--cs-unit,1px));line-height:1.15;overflow-wrap:anywhere}
.service-status:empty{display:none}
.customer-service-form .elementor-field-type-html{direction:rtl;text-align:right}
.customer-service-form textarea{resize:none}
.service-email a,.service-phone a{color:inherit}

/* Service form field geometry */
.customer-service-form .elementor-field-textual{min-height:0;padding:calc(15 * var(--cs-unit,1px)) calc(20 * var(--cs-unit,1px))}.customer-service-panel .customer-service-form .elementor-form .elementor-button{min-height:0;background:linear-gradient(#9fc0ff,#195ad0);box-shadow:0 4px 2px #0004}.customer-service-form .elementor-button:disabled{opacity:.65}
/* Membership selection behavior: visual values remain in native Elementor controls. */
.selection-panel .elementor-widget-image,.selection-panel .elementor-widget-button{font-size:0;line-height:0}
.selection-panel>.elementor-widget-image,.selection-panel> .elementor-widget-heading{pointer-events:none}
.selection-panel [hidden],.selection-panel:not([data-period="year"])>.selection-year,.selection-panel[data-period="year"]>.selection-month{display:none!important}
.selection-card.is-expanded .selection-summary,.selection-card.is-collapsed .selection-more{display:none!important}
.selection-cards>*{min-width:0}
.selection-room,.selection-panel{isolation:isolate}
.selection-panel .selection-join [aria-disabled="true"]{cursor:default}
.selection-panel a:focus-visible{outline:2px solid #195ad0;outline-offset:3px}
body:has(.membership-selection) #elementor-popup-modal-591{display:none!important}
/* Reuse the one shared fullscreen host as an actual header flex item. */
body:has(.membership-selection) .outerHeader{flex-wrap:nowrap}
body:has(.membership-selection) .outerHeader>.userOuterContainer{max-width:calc(100% - var(--mc-header-hit,44px))}
body:has(.membership-selection) .outerHeader>.selection-fullscreen-slot{position:static!important;inset:auto!important;display:flex!important;flex:0 0 var(--mc-header-hit,44px);width:var(--mc-header-hit,44px);height:var(--mc-header-hit,44px);order:-1;margin-inline-end:auto;pointer-events:auto}
.selection-fullscreen-slot .site-fullscreen-controls{display:contents!important;position:static!important;inset:auto!important}
.selection-fullscreen-slot .site-fullscreen-button{position:static!important;inset:auto!important;display:block!important;margin:0}
.selection-fullscreen-slot .site-fullscreen-button,.selection-fullscreen-slot .elementor-button{width:var(--mc-header-hit,44px);height:var(--mc-header-hit,44px);min-width:var(--mc-header-hit,44px);min-height:var(--mc-header-hit,44px);pointer-events:auto}
.selection-fullscreen-slot a.elementor-button{padding:0;display:grid;place-items:center}
.selection-fullscreen-slot .elementor-button-text{font-size:0}
.selection-fullscreen-slot .elementor-button-text::before{content:'⛶';font-size:calc(var(--mc-header-hit,44px) * .54545);line-height:1}

/* Empty header wrappers must not intercept the page controls beneath them. */
body:has(.membership-selection) .outerHeader .userOuterContainer,body:has(.membership-selection) .outerHeader .userNameContainer{pointer-events:none}
body:has(.membership-selection) .outerHeader a,body:has(.membership-selection) .outerHeader button,body:has(.membership-selection) .outerHeader .elementor-widget-image{pointer-events:auto}

/* Membership type is emitted by WooCommerce, not inferred from product names. */
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.cart_item.moti-k-membership td.product-name::before{content:"מנוי"!important}
.selection-panel .selection-join button:focus-visible{outline:2px solid #195ad0;outline-offset:3px}

/* Generated WooCommerce summaries have no native Elementor layout controls.
   Only carts containing the staging membership get these flow corrections. */
body.moti-membership-preview-checkout .elementor .checkout-scene #order_review{
 position:absolute!important;left:calc(50% - 664 * var(--u))!important;top:calc(50% - 120 * var(--u))!important;
 width:calc(364 * var(--u))!important;height:calc(490 * var(--u));display:flex;flex-direction:column;
 gap:calc(12 * var(--u));overflow-y:auto;overflow-x:hidden;z-index:3;
}
body.moti-membership-preview-checkout #order_review table.woocommerce-checkout-review-order-table{
 position:static!important;inset:auto!important;width:100%!important;margin:0!important;flex:none;
}
body.moti-membership-preview-checkout .checkout-scene #order_review table tbody{max-height:calc(130 * var(--u))!important}
body.moti-membership-preview-checkout .checkout-scene #order_review table tfoot tr{height:auto!important;min-height:calc(36 * var(--u));gap:calc(8 * var(--u))}
body.moti-membership-preview-checkout .checkout-scene #order_review table tfoot th,
body.moti-membership-preview-checkout .checkout-scene #order_review table tfoot td{line-height:1.25!important}
body.moti-membership-preview-checkout #order_review #payment{
 position:static!important;inset:auto!important;width:100%!important;flex:none;
}
body.moti-membership-preview-checkout #order_review #payment #place_order{position:static!important;inset:auto!important;width:100%!important}
body.moti-membership-preview-checkout #order_review>p[role="status"],.moti-test-banner{
 font-family:Polin,sans-serif;font-size:calc(13 * var(--u));line-height:1.35;color:#241836;margin:0;
}
body.moti-membership-preview-cart .cart-scene .cart_totals{
 display:flex;flex-direction:column;gap:calc(10 * var(--u));max-height:calc(330 * var(--u));overflow-y:auto;overflow-x:hidden;
}
body.moti-membership-preview-cart .cart_totals table.shop_table{flex:none;margin:0!important}
body.moti-membership-preview-cart .cart_totals .wc-proceed-to-checkout{
 position:static!important;inset:auto!important;width:100%!important;flex:none;
}
body.moti-membership-preview-cart .cart_totals #moti-coupon-slot{
 position:static!important;inset:auto!important;width:100%!important;flex:none;
}
body.moti-membership-preview-cart .cart_totals table.shop_table tr{height:auto!important;min-height:calc(40 * var(--u));gap:calc(8 * var(--u))}

body.moti-membership-preview-cart #elementor-popup-modal-591,body.moti-membership-preview-checkout #elementor-popup-modal-591{display:none!important}
html:has(body.moti-membership-preview-cart),html:has(body.moti-membership-preview-checkout){overflow-x:clip}
