.endwrs-button-slot{margin:0 0 14px;width:100%}.endwrs-use-custom-button{border-radius:10px!important;padding:12px 18px!important}.endwrs-use-custom-button{background:var(--endwrs-color)!important;border-color:var(--endwrs-color)!important;color:#fff!important}.endwrs-open{min-height:44px;width:100%;display:flex!important;align-items:center;justify-content:center}.woocommerce-variation-add-to-cart .endwrs-button-slot{margin:10px 0 0;clear:both}.woocommerce-variation-add-to-cart .endwrs-open{width:100%}
.endwrs-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:18px}.endwrs-modal.is-open{display:flex}.endwrs-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}
.endwrs-dialog{position:relative;width:min(460px,100%);background:#fff;border-radius:20px;padding:28px;box-shadow:0 25px 70px rgba(0,0,0,.22);z-index:2;text-align:start}.endwrs-close{position:absolute;top:12px;inset-inline-end:14px;border:0;background:transparent;font-size:28px;cursor:pointer;z-index:3}.endwrs-modal-head{display:flex;align-items:center;gap:13px;padding-inline-end:32px;margin-bottom:8px}.endwrs-icon{width:50px;height:50px;flex:0 0 50px;border-radius:15px;display:grid;place-items:center;background:#ecfdf5;color:#177245;transform-origin:50% 18%}.endwrs-modal.is-open .endwrs-icon{animation:endwrs-bell-ring .9s cubic-bezier(.36,.07,.19,.97) .08s both}.endwrs-modal-head h3{margin:0!important;line-height:1.35}.endwrs-modal-intro{margin:4px 0 10px}.endwrs-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.endwrs-dialog h3{margin:15px 0 8px}.endwrs-dialog p{color:#64748b;line-height:1.7}.endwrs-dialog label{display:block;font-weight:600;margin:14px 0 6px}.endwrs-dialog input[type=text],.endwrs-dialog input[type=email]{width:100%;border:1px solid #dbe2ea;border-radius:10px;padding:11px 12px;margin-top:6px}.endwrs-submit{width:100%;margin-top:18px}.endwrs-hp{position:absolute!important;left:-99999px!important}.endwrs-message{margin-top:12px;font-size:14px}.endwrs-message.ok{color:#16744a}.endwrs-message.err{color:#b42318}.endwrs-submit.is-loading{opacity:.65;pointer-events:none}
.endwrs-success-view,.endwrs-already-view{display:none;text-align:center;padding:20px 4px 6px}.endwrs-success-view.is-visible,.endwrs-already-view.is-visible{display:block}.endwrs-success-art{position:relative;width:118px;height:112px;margin:0 auto 10px;display:grid;place-items:center;overflow:visible}.endwrs-success-check{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;background:#ecfdf5;color:#177245;opacity:0;transform:translateY(46px) scale(.8)}.endwrs-success-check svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.endwrs-success-check path{stroke-dasharray:18;stroke-dashoffset:18}.endwrs-success-view.is-visible .endwrs-success-check{animation:endwrs-success-rise-up .66s cubic-bezier(.2,.88,.32,1.18) forwards}.endwrs-success-view.is-visible .endwrs-check-short{animation:endwrs-check-from-bottom .23s ease-out .42s forwards}.endwrs-success-view.is-visible .endwrs-check-long{animation:endwrs-check-from-bottom .34s ease-out .55s forwards}.endwrs-spark{position:absolute;color:#f6b91a;line-height:1;opacity:0;transform:scale(.15) rotate(-12deg);pointer-events:none;filter:drop-shadow(0 1px 4px rgba(246,185,26,.28))}.endwrs-spark-one{top:2px;right:13px;font-size:18px}.endwrs-spark-two{top:34px;left:1px;font-size:14px}.endwrs-spark-three{right:0;bottom:10px;font-size:13px}.endwrs-success-view.is-visible .endwrs-spark-one{animation:endwrs-spark-pulse .82s ease-in-out .82s 3 forwards}.endwrs-success-view.is-visible .endwrs-spark-two{animation:endwrs-spark-pulse .82s ease-in-out 1.09s 3 forwards}.endwrs-success-view.is-visible .endwrs-spark-three{animation:endwrs-spark-pulse .82s ease-in-out 1.36s 3 forwards}.endwrs-success-view h3{font-size:22px;margin:0 0 9px}.endwrs-success-view p{max-width:360px;margin:0 auto 20px}.endwrs-success-close{min-width:130px}@keyframes endwrs-success-rise-up{0%{opacity:0;transform:translateY(46px) scale(.8)}52%{opacity:1;transform:translateY(5px) scale(.97)}76%{opacity:1;transform:translateY(-3px) scale(1.035)}100%{opacity:1;transform:translateY(0) scale(1)}}@keyframes endwrs-check-from-bottom{0%{stroke-dashoffset:18;opacity:.15}20%{opacity:1}100%{stroke-dashoffset:0;opacity:1}}@keyframes endwrs-spark-pulse{0%{opacity:.18;transform:scale(.45) rotate(-8deg)}28%{opacity:1;transform:scale(1.18) rotate(10deg)}62%{opacity:.72;transform:scale(.92) rotate(24deg)}100%{opacity:1;transform:scale(1) rotate(34deg)}}@keyframes endwrs-bell-ring{0%{transform:rotate(0) scale(.94)}12%{transform:rotate(13deg) scale(1.02)}25%{transform:rotate(-11deg) scale(1.03)}38%{transform:rotate(9deg)}51%{transform:rotate(-7deg)}64%{transform:rotate(4deg)}78%{transform:rotate(-2deg)}100%{transform:rotate(0) scale(1)}}@media(prefers-reduced-motion:reduce){.endwrs-modal.is-open .endwrs-icon{animation:none}.endwrs-success-view.is-visible .endwrs-success-check,.endwrs-success-view.is-visible .endwrs-success-check path,.endwrs-success-view.is-visible .endwrs-spark{animation:none}.endwrs-success-check{opacity:1;transform:none}.endwrs-success-check path{stroke-dashoffset:0;opacity:1}.endwrs-spark{display:none}}

.endwrs-already-icon{width:74px;height:74px;border-radius:50%;margin:0 auto 14px;display:grid;place-items:center;background:#eff6ff;color:#2563eb}.endwrs-already-icon svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.endwrs-already-view h3{font-size:22px;margin:0 0 9px}.endwrs-already-view p{max-width:370px;margin:0 auto 20px}

/* 0.1.10 modal motion refinements */
.endwrs-modal.is-open .endwrs-form-view .endwrs-icon{animation:endwrs-bell-periodic 4.6s ease-in-out .15s infinite;will-change:transform}
@keyframes endwrs-bell-periodic{0%,5%{transform:rotate(0) translateX(0)}7%{transform:rotate(11deg) translateX(1px)}10%{transform:rotate(-10deg) translateX(-1px)}13%{transform:rotate(8deg) translateX(1px)}16%{transform:rotate(-6deg) translateX(-1px)}19%{transform:rotate(3deg)}22%,100%{transform:rotate(0) translateX(0)}}
.endwrs-already-alert{position:relative;width:104px;height:96px;display:grid;place-items:center;margin:0 auto 12px}
.endwrs-already-icon{position:relative;z-index:2;margin:0;width:74px;height:74px;flex:0 0 74px;border-radius:50%;display:grid;place-items:center;background:#eff6ff;color:#2563eb;box-shadow:0 8px 22px rgba(37,99,235,.10);transform-origin:50% 18%}
.endwrs-already-icon svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.endwrs-already-glow{position:absolute;z-index:1;width:74px;height:74px;border-radius:50%;background:rgba(96,165,250,.13);opacity:0;transform:scale(.8)}
.endwrs-already-spark{position:absolute;z-index:3;color:#60a5fa;line-height:1;opacity:0;filter:drop-shadow(0 1px 4px rgba(96,165,250,.22));pointer-events:none}
.endwrs-already-spark-one{top:7px;right:5px;font-size:15px}
.endwrs-already-spark-two{bottom:10px;left:6px;font-size:11px}
.endwrs-already-view.is-visible .endwrs-already-icon{animation:endwrs-already-soft-ring 2.9s ease-in-out .05s infinite}
.endwrs-already-view.is-visible .endwrs-already-glow{animation:endwrs-already-soft-glow 2.9s ease-out .05s infinite}
.endwrs-already-view.is-visible .endwrs-already-spark-one{animation:endwrs-already-twinkle 2.9s ease-in-out .25s infinite}
.endwrs-already-view.is-visible .endwrs-already-spark-two{animation:endwrs-already-twinkle 2.9s ease-in-out .56s infinite}
@keyframes endwrs-already-soft-ring{0%,8%{transform:rotate(0) translateX(0)}12%{transform:rotate(7deg) translateX(1px)}17%{transform:rotate(-6deg) translateX(-1px)}22%{transform:rotate(4deg)}27%{transform:rotate(-2deg)}34%,100%{transform:rotate(0) translateX(0)}}
@keyframes endwrs-already-soft-glow{0%,8%{opacity:0;transform:scale(.82)}20%{opacity:.8;transform:scale(1.08)}36%{opacity:0;transform:scale(1.24)}100%{opacity:0;transform:scale(1.24)}}
@keyframes endwrs-already-twinkle{0%,10%{opacity:0;transform:scale(.5) rotate(-8deg)}20%{opacity:1;transform:scale(1.12) rotate(8deg)}31%{opacity:.45;transform:scale(.92) rotate(18deg)}42%,100%{opacity:0;transform:scale(.7) rotate(24deg)}}
@media(prefers-reduced-motion:reduce){.endwrs-modal.is-open .endwrs-form-view .endwrs-icon,.endwrs-already-view.is-visible .endwrs-already-icon,.endwrs-already-view.is-visible .endwrs-already-glow,.endwrs-already-view.is-visible .endwrs-already-spark{animation:none!important}.endwrs-already-glow{opacity:.28;transform:scale(1)}.endwrs-already-spark{opacity:.8;transform:none}}





/* =========================================================
   v0.1.19 — END Ghaf native store-button palette
   ========================================================= */

/*
 * END Ghaf exposes its real store button palette through --eg-button-*.
 * Use those exact variables. Do not use Blocksy variable names because
 * END Ghaf's current button system no longer depends on them.
 */
.endwrs-use-store-button{
  background:var(--eg-button-bg,#17365d)!important;
  border-color:var(--eg-button-bg,#17365d)!important;
  color:var(--eg-button-color,#fff)!important;
  -webkit-text-fill-color:var(--eg-button-color,#fff)!important;

  /* Match the normal END Ghaf / store button typography. */
  font-family:inherit!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:700!important;

  min-height:44px!important;
  padding:9px 16px!important;
  border-radius:var(--eg-button-radius,10px)!important;
  box-shadow:none!important;
  cursor:pointer!important;
  text-decoration:none!important;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .18s ease!important;
}

.endwrs-use-store-button:hover,
.endwrs-use-store-button:focus,
.endwrs-use-store-button:focus-visible{
  background:var(--eg-button-hover-bg,#0f477e)!important;
  border-color:var(--eg-button-hover-bg,#0f477e)!important;
  color:var(--eg-button-hover-color,#fff)!important;
  -webkit-text-fill-color:var(--eg-button-hover-color,#fff)!important;
}

.endwrs-use-store-button:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(15,71,126,.14)!important;
}

.endwrs-use-store-button:active{
  transform:translateY(0);
  box-shadow:none!important;
}

/* Modal submit and confirmation buttons retain their layout role,
   but their visual palette/typography is now the same as store buttons. */
.endwrs-submit.endwrs-use-store-button{
  width:100%!important;
  margin-top:18px!important;
}

.endwrs-success-close.endwrs-use-store-button{
  min-width:130px!important;
}

/* Page-product notification button remains full width, as before. */
.endwrs-open.endwrs-use-store-button{
  width:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Small phones: preserve store typography; only reduce horizontal padding. */
@media(max-width:480px){
  .endwrs-use-store-button{
    font-size:14px!important;
    padding-inline:14px!important;
  }
}


/* =========================================================
   v0.1.20 — notification modal desktop button typography
   ========================================================= */

/* Desktop modal action was optically smaller than the store's primary
   buttons. Keep mobile compact, but use a clearer desktop size. */
@media(min-width:768px){
  .endwrs-dialog .endwrs-submit,
  .endwrs-dialog .endwrs-success-close{
    font-size:16px!important;
    line-height:1.25!important;
    font-weight:700!important;
    min-height:46px!important;
  }
}

@media(max-width:767px){
  .endwrs-dialog .endwrs-submit,
  .endwrs-dialog .endwrs-success-close{
    font-size:14px!important;
    line-height:1.25!important;
  }
}


/* =========================================================
   v0.1.21 — guaranteed modal button hover
   ========================================================= */

/* Custom-color mode: create a clearly visible hover from the selected color. */
.endwrs-dialog .endwrs-submit.endwrs-use-custom-button,
.endwrs-dialog .endwrs-success-close.endwrs-use-custom-button{
  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease!important;
}

.endwrs-dialog .endwrs-submit.endwrs-use-custom-button:hover,
.endwrs-dialog .endwrs-submit.endwrs-use-custom-button:focus-visible,
.endwrs-dialog .endwrs-success-close.endwrs-use-custom-button:hover,
.endwrs-dialog .endwrs-success-close.endwrs-use-custom-button:focus-visible{
  background:color-mix(in srgb,var(--endwrs-color) 84%,#000)!important;
  border-color:color-mix(in srgb,var(--endwrs-color) 84%,#000)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:0 6px 16px color-mix(in srgb,var(--endwrs-color) 18%,transparent)!important;
}

/* Store-color mode: force the modal buttons to use the same store hover
   palette even if the theme has stronger modal/form button selectors. */
.endwrs-dialog .endwrs-submit.endwrs-use-store-button:hover,
.endwrs-dialog .endwrs-submit.endwrs-use-store-button:focus-visible,
.endwrs-dialog .endwrs-success-close.endwrs-use-store-button:hover,
.endwrs-dialog .endwrs-success-close.endwrs-use-store-button:focus-visible{
  background:var(--eg-button-hover-bg,#0f477e)!important;
  border-color:var(--eg-button-hover-bg,#0f477e)!important;
  color:var(--eg-button-hover-color,#fff)!important;
  -webkit-text-fill-color:var(--eg-button-hover-color,#fff)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 6px 16px rgba(15,71,126,.14)!important;
}
