/* EBW Digital Store checkout popup — v1.0.1 */
.wmz-ffsm .wmz-ffsm-package:hover,
.wmz-ffsm .wmz-ffsm-package:focus-visible,
.wmz-ffsm .wmz-ffsm-package[aria-pressed="true"] {
  background: linear-gradient(145deg, #174f91 0%, #245b98 100%) !important;
  border-color: #7eafff !important;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(7, 45, 104, .22) !important;
}
.wmz-ffsm .wmz-ffsm-package:hover *,
.wmz-ffsm .wmz-ffsm-package:focus-visible *,
.wmz-ffsm .wmz-ffsm-package[aria-pressed="true"] * {
  color: #fff !important;
}
.wmz-ffsm .wmz-ffsm-package:hover .wmz-ffsm-diamond,
.wmz-ffsm .wmz-ffsm-package:focus-visible .wmz-ffsm-diamond,
.wmz-ffsm .wmz-ffsm-package[aria-pressed="true"] .wmz-ffsm-diamond {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.wmz-ffsm .wmz-ffsm-package[aria-pressed="true"]:after {
  background: #fff !important;
  color: #174f91 !important;
}

.ebw-dsp-overlay {
  position: fixed; inset: 0; z-index: 999999;
  display: none; align-items: center; justify-content: center;
  padding: 18px; background: rgba(4, 15, 38, .72);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.ebw-dsp-overlay.is-open { display: flex; }
.ebw-dsp-dialog {
  position: relative; width: min(780px, 100%); max-height: min(92vh, 900px);
  overflow: auto; overscroll-behavior: contain; border: 1px solid #dce7f7;
  border-radius: 20px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.ebw-dsp-header {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center;
  justify-content: space-between; gap: 15px; padding: 18px 22px;
  border-bottom: 1px solid #e5edf8; background: rgba(255,255,255,.98);
}
.ebw-dsp-heading { min-width: 0; }
.ebw-dsp-kicker { display: block; margin-bottom: 3px; color: #075bff !important; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ebw-dsp-title { margin: 0 !important; color: #061b55 !important; font-size: clamp(18px, 3vw, 25px) !important; font-weight: 900 !important; line-height: 1.25 !important; }
.ebw-dsp-price { display: block; margin-top: 4px; color: #075bff !important; font-size: 15px; font-weight: 900; }
.ebw-dsp-close {
  appearance: none !important; -webkit-appearance: none !important;
  flex: 0 0 auto; display: grid !important; place-items: center !important;
  width: 44px !important; min-width: 44px !important; height: 44px !important;
  padding: 0 !important; border: 1px solid #d5e2f5 !important; border-radius: 12px !important;
  background: #f2f6ff !important; color: #102c60 !important;
  font-family: Arial, sans-serif !important; font-size: 28px !important;
  font-weight: 400 !important; line-height: 1 !important; text-align: center !important;
  box-shadow: none !important; opacity: 1 !important; cursor: pointer;
}
.ebw-dsp-close span { display: block; color: #102c60 !important; font: inherit !important; line-height: 1 !important; }
.ebw-dsp-close:hover,
.ebw-dsp-close:focus-visible {
  background: #e4edff !important; color: #061b55 !important;
  border-color: #9dbbff !important; box-shadow: 0 3px 12px rgba(7,91,255,.12) !important;
}
.ebw-dsp-close:hover span,
.ebw-dsp-close:focus-visible span { color: #061b55 !important; }
.ebw-dsp-body { padding: 20px; }
.ebw-dsp-body .wmz-ffsm-checkout { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ebw-dsp-body .wmz-ffsm-checkout h3 { display: none !important; }

/* Always-visible submit button: prevent theme/plugin hover-only color conflicts. */
.ebw-dsp-body .wmz-ffsm-submit,
.ebw-dsp-body button.wmz-ffsm-submit,
.ebw-dsp-body input.wmz-ffsm-submit[type="submit"] {
  display: flex !important; align-items: center !important; justify-content: center !important;
  width: 100% !important; min-height: 52px !important; padding: 14px 20px !important;
  border: 1px solid #075bff !important; border-radius: 11px !important;
  background: linear-gradient(110deg, #075bff, #1680ff) !important;
  background-color: #075bff !important; color: #fff !important;
  -webkit-text-fill-color: #fff !important; font-weight: 900 !important;
  text-align: center !important; opacity: 1 !important; visibility: visible !important;
  box-shadow: 0 8px 20px rgba(7,91,255,.2) !important; cursor: pointer !important;
}
.ebw-dsp-body .wmz-ffsm-submit:hover,
.ebw-dsp-body .wmz-ffsm-submit:focus,
.ebw-dsp-body .wmz-ffsm-submit:focus-visible,
.ebw-dsp-body .wmz-ffsm-submit:active {
  background: linear-gradient(110deg, #064dcc, #086be5) !important;
  background-color: #064dcc !important; color: #fff !important;
  -webkit-text-fill-color: #fff !important; border-color: #064dcc !important;
}
.ebw-dsp-body .wmz-ffsm-submit:disabled {
  opacity: .65 !important; cursor: not-allowed !important;
}
.ebw-dsp-body .wmz-ffsm-disclaimer { font-size: 11px; }
body.ebw-dsp-lock { overflow: hidden !important; }

@media (max-width: 600px) {
  .ebw-dsp-overlay { align-items: flex-end; padding: 0; }
  .ebw-dsp-dialog { width: 100%; max-height: 94dvh; border-radius: 18px 18px 0 0; }
  .ebw-dsp-header { padding: 15px 16px; }
  .ebw-dsp-body { padding: 16px; }
  .ebw-dsp-body .wmz-ffsm-fields { grid-template-columns: 1fr !important; }
  .ebw-dsp-body .wmz-ffsm-full { grid-column: auto !important; }
}
