/* Popup cart — isolated, does not restyle Woo pages */
.eh-cm[hidden] { display: none !important; }
.eh-cm {
  position: fixed;
  inset: 0;
  z-index: 100050;
}
.eh-cm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}
.eh-cm-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: auto;
  border-radius: 22px;
  background: #111;
  color: #eee;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.eh-cm-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.eh-cm-grid {
  display: grid;
}
@media (min-width: 820px) {
  .eh-cm-grid {
    grid-template-columns: 280px 1fr;
    min-height: 520px;
  }
}
.eh-cm-side {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.35rem 1.4rem;
  background: #171717;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (min-width: 820px) {
  .eh-cm-side {
    border-bottom: 0;
    border-right: 1px solid rgba(255,255,255,.06);
  }
}
.eh-cm-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ff8a80;
  font-weight: 700;
}
.eh-cm-side h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  letter-spacing: -.03em;
}
.eh-cm-side-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .7rem .8rem;
  margin-bottom: .55rem;
  border-radius: 12px;
  background: #111;
  font-size: .9rem;
}
.eh-cm-side-line span:first-child {
  min-width: 0;
  line-height: 1.35;
}
.eh-cm-side-line span:last-child {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 650;
}
.eh-cm-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 1.05rem;
}
.eh-cm-total strong { white-space: nowrap; }
.eh-cm-perks {
  list-style: none;
  margin: auto 0 0;
  padding: 1.2rem 0 0;
  color: #9f9f9f;
  font-size: .86rem;
}
.eh-cm-perks li {
  margin: .35rem 0;
}
.eh-cm-perks li::before {
  content: "✓ ";
  color: #6fdd8b;
}
.eh-cm-main {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.5rem;
  min-height: 420px;
}
.eh-cm-main [data-eh-cm-view][hidden] {
  display: none !important;
}
.eh-cm-main [data-eh-cm-view="cart"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 360px;
}
.eh-cm-items { flex: 1; }
.eh-cm-main [data-eh-cm-view="cart"] .eh-cm-cta {
  margin-top: auto;
}
.eh-cm-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: .75rem;
  align-items: center;
  padding: .7rem .75rem;
  margin-bottom: .65rem;
  border-radius: 14px;
  background: #1a1a1a;
}
.eh-cm-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.eh-cm-item-name { font-weight: 650; }
.eh-cm-item-price { color: #aaa; font-size: .85rem; white-space: nowrap; }
.eh-cm-qty {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .45rem;
  border-radius: 999px;
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
}
.eh-cm-qty button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
}
.eh-cm-rm {
  border: 0;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 1.1rem;
}
.eh-cm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.45rem;
  flex: 1;
  min-height: 280px;
  color: #9a9a9a;
}
.eh-cm-empty[hidden] { display: none !important; }
.eh-cm-empty-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 0.35rem;
  border-radius: 999px;
  background: #1c1c1c;
  color: #ddd;
}
.eh-cm-empty strong {
  color: #fff;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.eh-cm-catalog {
  display: inline-flex;
  margin-top: 0.7rem;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  background: #e10600;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}
.eh-cm-catalog:hover { background: #c10500; }
.eh-cm-cta[hidden] { display: none !important; }
.eh-cm-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.1rem;
  padding: .95rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #e10600;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}
.eh-cm-cta:disabled { opacity: .55; cursor: wait; }
.eh-cm-back {
  border: 0;
  background: #1c1c1c;
  color: #ddd;
  border-radius: 999px;
  padding: .4rem .85rem;
  margin-bottom: .9rem;
  cursor: pointer;
}
.eh-cm-main h3 {
  margin: 0 0 .35rem;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.eh-cm-hint { margin: 0 0 1rem; color: #999; font-size: .92rem; }
.eh-cm-form label {
  display: block;
  margin: 0 0 .85rem;
  font-size: .82rem;
  color: #bbb;
}
.eh-cm-form input,
.eh-cm-form textarea {
  display: block;
  width: 100%;
  margin-top: .35rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #0c0c0c;
  color: #fff;
  font: inherit;
}
.eh-cm-form input::placeholder,
.eh-cm-form textarea::placeholder { color: #666; }
.eh-cm-form input.is-demo {
  color: #8a8a8a;
  caret-color: #e10600;
}

@media (max-width: 819px) {
  .eh-cm {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }
  .eh-cm-dialog {
    width: 100%;
    height: var(--eh-cm-h, 100dvh);
    max-height: var(--eh-cm-h, 100dvh);
    margin: 0;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .eh-cm-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .eh-cm-side {
    flex: 0 0 auto;
    padding: 1rem 1rem 0.55rem;
  }
  .eh-cm-perks { display: none; }
  .eh-cm-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0.7rem 1rem calc(12px + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
  }
  .eh-cm-main [data-eh-cm-view="cart"]:not([hidden]),
  .eh-cm-main [data-eh-cm-view="checkout"]:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .eh-cm-items,
  .eh-cm-form {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .eh-cm-cta {
    position: sticky;
    bottom: 0;
    flex: 0 0 auto;
    width: 100%;
    margin-top: 0.65rem;
    padding: 0.9rem 1rem;
    z-index: 4;
    box-shadow: 0 -10px 18px rgba(17,17,17,.85);
  }
  .eh-cm-x { top: 8px; right: 8px; }
}
.eh-cm-row {
  display: grid;
  gap: .75rem;
}
@media (min-width: 640px) {
  .eh-cm-row { grid-template-columns: 1fr 1fr; }
}
.eh-cm-check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  color: #bbb;
  font-size: .86rem;
}
.eh-cm-check input { width: auto; margin-top: .2rem; }
.eh-cm-check a { color: #fff; }
.eh-cm-err { color: #ff8a80; }
body.eh-cm-open { overflow: hidden; }

/* Header phone + cart: larger, no overlap on mobile */
.site-header .header-icon-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
}
.site-header .header-icon {
  width: 24px;
  height: 24px;
}
.site-header .eh-header-cart .count {
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 0.7rem;
}
@media (max-width: 899px) {
  .site-header .header-actions { gap: 0.2rem; }
  .site-header .header-icon-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
  .site-header .header-icon {
    width: 22px;
    height: 22px;
  }
  .site-header .logo {
    max-width: min(132px, calc(100vw - 10.8rem));
  }
}

.header-phone-btn.is-ringing,
.site-header a[href^="tel:"].is-ringing,
.header-icon-btn.is-ringing,
.eh-header-cart.is-nudge,
.header-cart.is-nudge,
.site-header a[href*="/cart"].is-nudge {
  color: #e10600 !important;
  border-radius: 999px;
  border: 1px solid rgba(225, 6, 0, 0.85) !important;
  box-shadow: 0 0 0 6px rgba(225, 6, 0, 0.18) !important;
  animation: ehIconRing 0.2s ease-in-out 8, ehIconGlow 0.9s ease-in-out 2 !important;
}
.header-phone-btn.is-ringing .header-icon,
.site-header a[href^="tel:"].is-ringing .header-icon,
.eh-header-cart.is-nudge .header-icon,
.header-cart.is-nudge .header-icon,
.site-header a[href*="/cart"].is-nudge .header-icon {
  color: #e10600 !important;
}
@keyframes ehIconRing {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-14deg) scale(1.04); }
  50% { transform: rotate(14deg) scale(1.06); }
  75% { transform: rotate(-8deg) scale(1.03); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes ehIconGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(225, 6, 0, 0.28); }
}

.eh-cm-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}

.eh-cm-main [data-eh-cm-view="done"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-height: 360px;
  padding: 1.2rem 0.5rem;
}
.eh-cm-thanks-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e10600;
}
.eh-cm-main [data-eh-cm-view="done"] h3 {
  margin: 0 0 0.85rem;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}
.eh-cm-thanks-text {
  max-width: 22rem;
  margin: 0 auto 1.4rem;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
}
.eh-cm-cta-center {
  width: auto;
  min-width: 11rem;
  margin: 0 auto;
  align-self: center;
}

.eh-cm-thanks-name {
  margin: 0 0 0.4rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}
.eh-cm-main [data-eh-cm-view="done"] h3 {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.eh-cm-thanks-text {
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255,255,255,.7);
}

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  display: none !important;
}

html.eh-hide-legacy-cart .eh-page-hero,
html.eh-hide-legacy-cart .woocommerce,
html.eh-hide-legacy-cart main.site-main,
html.eh-hide-legacy-cart .eh-cart-page,
body.eh-hide-legacy-cart .eh-page-hero,
body.eh-hide-legacy-cart .woocommerce,
body.eh-popup-cart .eh-page-hero,
body.woocommerce-cart .eh-page-hero,
body.woocommerce-cart .woocommerce:not(#eh-cart-modal),
body.woocommerce-cart .wc-empty-cart-message,
body.woocommerce-cart .cart-empty,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .wp-block-woocommerce-cart {
  display: none !important;
}
