/* Scoped entirely to the Mate Scheduled Popup; never styles WooCommerce or the PWA. */
html.mate-popup-open,
body.mate-popup-open { overflow: hidden !important; }
.mate-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)) !important;
  background: rgba(12, 30, 24, .68) !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-sizing: border-box;
  opacity: 1;
  animation: matePopupFade .22s ease both;
}
.mate-popup-overlay *, .mate-popup-overlay *::before, .mate-popup-overlay *::after { box-sizing: border-box; }
.mate-popup-overlay.is-leaving { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mate-popup-dialog {
  --mate-popup-accent: #255C43;
  position: relative !important;
  display: block !important;
  background: #fffdf8 !important;
  color: #1e342a !important;
  width: min(100%, 455px) !important;
  max-width: 455px !important;
  max-height: 90vh !important;
  max-height: 90dvh !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border-radius: 26px !important;
  border: 1px solid rgba(31, 82, 56, .08) !important;
  box-shadow: 0 30px 85px rgba(0,0,0,.28) !important;
  -webkit-overflow-scrolling: touch;
  animation: matePopupRise .25s ease both;
}
.mate-popup-close {
  position: absolute !important;
  z-index: 3 !important;
  top: 12px !important;
  right: 12px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: rgba(244, 248, 243, .96) !important;
  color: #315b48 !important;
  border: 1px solid rgba(16, 69, 44, .12) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 14px rgba(4, 48, 28, .06);
  cursor: pointer !important;
  font: 300 30px/34px -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  text-align: center !important;
}
.mate-popup-close:hover, .mate-popup-close:focus-visible { background: #e6f0e7 !important; }
.mate-popup-image {
  width: 100% !important;
  height: auto !important;
  max-height: 240px !important;
  aspect-ratio: 16/9;
  display: block !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mate-popup-body { padding: 31px 31px 26px !important; }
.mate-popup-eyebrow {
  margin: 0 0 12px !important;
  color: var(--mate-popup-accent) !important;
  font: 750 11px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: .135em !important;
  text-transform: uppercase;
}
.mate-popup-title {
  margin: 0 0 12px !important;
  color: #1f342b !important;
  font: 750 clamp(25px, 5vw, 32px)/1.16 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
}
.mate-popup-message {
  margin: 0 0 23px !important;
  color: #596c5e !important;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font: 400 15px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
.mate-popup-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 53px !important;
  padding: 14px 20px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 14px !important;
  background: var(--mate-popup-accent) !important;
  color: #fff !important;
  font: 700 16px/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(19, 63, 37, .16) !important;
  overflow-wrap: anywhere;
  transition: filter .18s ease;
}
.mate-popup-action:hover, .mate-popup-action:focus-visible { color: #fff !important; filter: brightness(1.1); }
.mate-popup-foot {
  text-align: center !important;
  margin: 19px 0 0 !important;
  color: #82958a !important;
  font: 400 12px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
@media (max-width: 480px) {
  .mate-popup-dialog { border-radius: 22px !important; max-width: 420px !important; }
  .mate-popup-body { padding: 27px 22px 24px !important; }
  .mate-popup-title { font-size: 28px !important; }
  .mate-popup-image { max-height: 200px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .mate-popup-overlay, .mate-popup-dialog { animation: none !important; }
  .mate-popup-overlay.is-leaving { transition: none !important; }
}
@keyframes matePopupFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes matePopupRise { from { transform: translateY(16px) scale(.985); } to { transform: translateY(0) scale(1); } }
