/* ---------------------------------------------------------------------
 * Nav price-toggle pill
 * ------------------------------------------------------------------- */

/* The <a> itself gets no custom sizing: Enfold's own
   ".av-main-nav > li > a { height / line-height: 80px (90px on tablet) }"
   rule already applies (it's a plain <a>, like every sibling nav item), which
   is exactly what vertically centers the inner pill span in the nav row at
   every responsive breakpoint without us duplicating theme magic numbers. */
li.ee-pricetoggle-item { padding: 0 6px; }
.ee-pricetoggle-trigger { text-decoration: none; cursor: pointer; }
.ee-pricetoggle-trigger:focus-visible {
  outline: 2px solid #c02a26;
  outline-offset: 2px;
  border-radius: 999px;
}

.ee-pricetoggle-pill {
  display: inline-block;
  vertical-align: middle;
  padding: 6px 14px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  color: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  opacity: .85;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
/* Header pill: the nav's grey (#969696) at .85 on a #ebebeb border looked disabled.
   Darker text and border so it reads as a control, still quieter than the black CTAs.
   Medium weight: bold sat too heavy next to the fine-line cart/search icons. */
#top #header .ee-pricetoggle-pill { color: #747474; border-color: #d6d6d6; opacity: 1; font-weight: 500; }
/* Hover like the cart/search icons next to it: darker, no red tint. */
#top #header .ee-pricetoggle-trigger:hover .ee-pricetoggle-pill,
#top #header .ee-pricetoggle-trigger:focus-visible .ee-pricetoggle-pill {
  color: #000;
  border-color: #b5b5b5;
}

/* ---------------------------------------------------------------------
 * Modal
 * ------------------------------------------------------------------- */

.ee-pricetoggle-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 20, 20, .45);
  z-index: 100000;
}

.ee-pricetoggle-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100vw - 32px);
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  padding: 24px 24px 20px;
  z-index: 100001;
}
.ee-pricetoggle-overlay[hidden],
.ee-pricetoggle-modal[hidden] { display: none; }

.ee-pricetoggle-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.ee-pricetoggle-title { margin: 0; font-size: 18px; font-weight: 800; color: #161616; }
.ee-pricetoggle-close {
  border: 0; background: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: #7a7a7a; padding: 4px 6px; border-radius: 8px;
}
.ee-pricetoggle-close:hover { color: #161616; background: #f3f3f3; }
.ee-pricetoggle-close:focus-visible { outline: 2px solid #c02a26; outline-offset: 1px; }

.ee-pricetoggle-field {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid #ececec;
}
.ee-pricetoggle-field:last-of-type { border-bottom: 0; }
.ee-pricetoggle-field label { font-size: 14.5px; font-weight: 700; color: #3f3f3f; }

/* "#top" prefix: Enfold's "#top select" (base.css + shortcodes.css) sets
   margin-bottom: 20px (pushes the select above the label's center), width:
   100% and its old PNG arrow — same look as the basket's country select. */
#top .ee-pricetoggle-field select {
  flex: 0 0 auto;
  width: 200px;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 9px 36px 9px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 9px;
  box-shadow: none;
  font-family: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  color: #161616;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23565656' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  transition: border-color .15s;
}
#top .ee-pricetoggle-field select:hover { border-color: #b5b5b5; }
#top .ee-pricetoggle-field select:focus { border-color: #c02a26; outline: none; }
#top .ee-pricetoggle-field select:disabled {
  background-color: #f6f6f6;
  background-image: none;
  color: #9a9a9a;
  border-color: #ececec;
  cursor: not-allowed;
}

.ee-pricetoggle-switch-wrap { display: flex; align-items: center; gap: 10px; }

.ee-pricetoggle-switch {
  position: relative;
  width: 44px; height: 24px;
  border-radius: 999px;
  border: 0;
  background: #c02a26;
  cursor: pointer;
  padding: 0;
  flex: 0 0 auto;
}
.ee-pricetoggle-switch[aria-checked="false"] { background: #d8d8d8; }
.ee-pricetoggle-switch:disabled { background: #ececec; cursor: not-allowed; }
.ee-pricetoggle-switch:focus-visible { outline: 2px solid #c02a26; outline-offset: 2px; }
.ee-pricetoggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  transition: left .15s ease;
}
.ee-pricetoggle-switch[aria-checked="true"] .ee-pricetoggle-knob { left: 23px; }

.ee-pricetoggle-vat-percent { font-size: 14.5px; font-weight: 700; color: #161616; min-width: 2.5em; text-align: right; }

.ee-pricetoggle-attribution {
  margin: 18px 0 0;
  font-size: 11.5px;
  color: #9a9a9a;
  text-align: center;
}
.ee-pricetoggle-attribution a { color: #9a9a9a; text-decoration: underline; }
.ee-pricetoggle-attribution a:hover { color: #565656; }

@media (max-width: 480px) {
  .ee-pricetoggle-modal { padding: 20px 18px 16px; }
  #top .ee-pricetoggle-field select { width: 170px; }
}

/* ---------------------------------------------------------------------
 * [ee_price] shortcode
 * ------------------------------------------------------------------- */

/* The shortcode is dropped into arbitrary page markup (and these pages often
   have their own scoped "<some-wrapper> span { color/weight: ... }" rules
   left over from the old hand-written prices it replaces — see e.g.
   .ee-customization-pricing__price span on /customization/). Our spans would
   otherwise silently inherit whatever a host page's generic span selector
   says, so the handful of properties that define this component's own look
   are !important: a self-contained widget, not themeable per host page. */
.eef-price { display: inline-block; line-height: 1.3; }
.eef-price--inline { display: inline; }

/* Host pages style their own "span" children (e.g. .ee-training-format-card__price
   span { margin-left: 4px }), which would indent our spans — reset box spacing;
   the few margins this component uses are set below with higher specificity. */
.eef-price, .eef-price span { margin: 0 !important; padding: 0 !important; }

.eef-price-amount { font-weight: 800 !important; color: #161616 !important; }
.eef-price-prefix { font-weight: 400 !important; color: #565656 !important; }
.eef-price-suffix { font-weight: 400 !important; color: #7a7a7a !important; }
.eef-price-vat { font-weight: 400 !important; color: #9a9a9a !important; }

/* Sizes: fixed px values per size, set by ShortcodePrice as CSS variables
   (--eef-price-amount/-affix/-vat/-gap) on the element — the same size looks
   the same on every page, independent of the host's font size. */
.eef-price:not(.eef-price--inline) .eef-price-amount { font-size: var(--eef-price-amount) !important; line-height: 1.15 !important; }
.eef-price:not(.eef-price--inline) .eef-price-prefix,
.eef-price:not(.eef-price--inline) .eef-price-suffix { font-size: var(--eef-price-affix) !important; line-height: 1.15 !important; }
.eef-price:not(.eef-price--inline) .eef-price-vat { font-size: var(--eef-price-vat) !important; line-height: 1.3 !important; }

/* single: one line, VAT label in brackets after the price, a normal space apart
   (brackets in CSS, so ee-price-toggle.js can keep replacing the label text) */
.eef-price--single { white-space: nowrap; }
.eef-price--single .eef-price-vat::before { content: "("; }
.eef-price--single .eef-price-vat::after { content: ")"; }

/* double: amount+suffix on line 1 (never wraps), VAT label alone on line 2 */
.eef-price--double { display: block; }
.eef-price--double .eef-price-line { display: block; }
/* Each line carries its own content's font size, so its line box (and with it
   the distance between the lines) doesn't depend on the host's font size. */
.eef-price--double .eef-price-line--1 { white-space: nowrap; font-size: var(--eef-price-amount) !important; line-height: 1.15 !important; }
.eef-price.eef-price--double .eef-price-line--2 { margin-top: var(--eef-price-gap) !important; font-size: var(--eef-price-vat) !important; line-height: 1.3 !important; }

/* inline variant: blend into the surrounding running text instead of
   imposing its own size/weight/color (still !important, to beat the same
   kind of host-page span rules, but inheriting rather than hardcoding). */
.eef-price--inline .eef-price-amount,
.eef-price--inline .eef-price-suffix,
.eef-price--inline .eef-price-prefix { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }
