/* ES Pricing Block — front-end styles */

*, *::before, *::after { box-sizing: border-box; }

.es-pricing {
  /* Accent color — overridden per-site by an inline <style> from the plugin */
  --esp-accent:     #FE5000;
  --esp-accent-rgb: 254,80,0;

  font-family: 'Open Sans', sans-serif;
  color: #515151;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

/* ---- CONTROLS ---- */
.es-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.es-toggle {
  display: inline-flex;
  background: #ebebeb;
  border-radius: 50px;
  padding: 4px;
}

.es-toggle-btn {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 22px;
  border: none;
  background: transparent;
  border-radius: 46px;
  cursor: pointer;
  color: #666;
  transition: background .2s, color .2s, box-shadow .2s;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.es-toggle-btn.active {
  background: var(--esp-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(var(--esp-accent-rgb),.35);
}

.es-save-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  border-radius: 20px;
  padding: 2px 8px;
  line-height: 1.5;
  background: var(--esp-accent);
  color: #fff;
  transition: background .2s, color .2s;
}

.es-toggle-btn.active .es-save-chip {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.es-who {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #515151;
}

.es-who-select {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #515151;
  padding: 9px 36px 9px 16px;
  border: 2px solid #ddd;
  border-radius: 50px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
}

.es-who-select:focus { border-color: var(--esp-accent); }

/* ---- DISCOUNT CALLOUT ---- */
.es-discount-note {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--esp-accent);
  min-height: 22px;
  margin-bottom: 18px;
}

/* ---- CARDS GRID ---- */
.es-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 44px;
}

.es-card {
  background: #f5f5f5;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  transition: transform .2s, box-shadow .2s;
}

.es-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
  z-index: 1;
}

.es-card-header {
  background: #2d2d2d;
  color: #fff;
  padding: 16px 12px 14px;
  text-align: center;
  border-bottom: 3px solid var(--esp-accent);
}

.es-card-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 5px;
  line-height: 1.3;
}

.es-card-name {
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  line-height: 1.2;
}

.es-card-price {
  background: #fff;
  padding: 16px 10px 14px;
  text-align: center;
  border-bottom: 1px solid #ebebeb;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.es-original {
  font-size: 11px;
  color: #bbb;
  text-decoration: line-through;
  margin-bottom: 1px;
  line-height: 1.2;
}

.es-amount {
  font-family: 'Lato', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
  display: flex;
  align-items: flex-start;
}

.es-amount sup {
  font-size: 16px;
  font-weight: 700;
  margin-top: 5px;
  margin-right: 1px;
}

.es-amount .cents {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
}

.es-period {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.es-annual-total {
  font-size: 11px;
  font-weight: 700;
  color: var(--esp-accent);
  margin-top: 3px;
}

.es-annual-total-orig {
  font-size: 10px;
  color: #bbb;
  text-decoration: line-through;
  margin-top: 1px;
}

.es-contact-cta {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.25;
  color: #1a1a1a;
}

.es-card-features {
  list-style: none;
  padding: 14px 12px 16px;
  margin: 0;
  flex: 1;
}

.es-card-features li {
  font-size: 11.5px;
  line-height: 1.45;
  padding: 3px 0;
  color: #515151;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.es-card-features li::before {
  content: '\2714';
  color: var(--esp-accent);
  font-size: 9.5px;
  flex-shrink: 0;
  margin-top: 2px;
}

.es-card-features li strong { font-weight: 700; }

/* ---- VARIANTS ---- */
.es-card-free .es-card-header  { background: #555; border-bottom-color: #888; }
.es-card-free .es-amount       { font-size: 30px; color: #888; }
.es-card-free .es-period       { color: #bbb; }

/* ---- HIGHLIGHT ---- */
/* Specificity (0,3,0) beats .es-card-free/.es-card-enterprise (0,2,0) */
.es-card.es-card-highlight {
  border: 2px solid var(--esp-accent);
}

.es-card.es-card-highlight .es-card-header {
  background: var(--esp-accent);
  border-bottom-color: rgba(0,0,0,.15);
}

/* ---- LOWLIGHT ---- */
.es-card.es-card-lowlight .es-card-header {
  background: #555;
  border-bottom-color: #888;
}

.es-card-enterprise {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
}

.es-card-enterprise .es-card-header {
  background: #111;
  min-width: 200px;
  border-bottom: none;
  border-right: 3px solid var(--esp-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 28px;
}

.es-card-enterprise .es-card-price {
  min-width: 160px;
  border-bottom: none;
  border-right: 1px solid #ebebeb;
  padding: 24px 28px;
}

.es-card-enterprise .es-card-features {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 2px 32px;
  padding: 20px 32px;
  flex: 1;
}

.es-card-enterprise .es-card-features li { min-width: 210px; }

/* ---- CTA ---- */
.es-cta-wrap {
  text-align: center;
  padding: 10px 0 30px;
}

.es-cta-btn {
  display: inline-block;
  background: var(--esp-accent);
  color: #fff !important;
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  padding: 18px 56px;
  border-radius: 4px;
  text-decoration: none !important;
  transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(var(--esp-accent-rgb),.4);
}

.es-cta-btn:hover {
  background: #4b4b4b;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
  transform: translateY(-2px);
}

.es-cta-note {
  margin-top: 13px;
  font-size: 13px;
  color: #aaa;
}

.es-discount-asterisk {
  margin-top: 20px;
  font-size: 12px;
  color: #aaa;
  text-align: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .es-cards { grid-template-columns: repeat(2, 1fr); }

  .es-card-enterprise { flex-direction: column; }

  .es-card-enterprise .es-card-header {
    border-right: none;
    border-bottom: 3px solid var(--esp-accent);
    padding: 18px 20px;
  }

  .es-card-enterprise .es-card-price {
    border-right: none;
    border-bottom: 1px solid #ebebeb;
  }

  .es-controls {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

@media (max-width: 500px) {
  .es-cards { grid-template-columns: 1fr; }
}

/* ---- MAGNIFIC POPUP sizing (scoped to our CTA only) ---- */
.es-pricing-popup.mfp-bg { opacity: .7; }

.es-pricing-popup .mfp-iframe-holder .mfp-content {
  max-width: 90%;
  width: 90%;
}

/* Override the default padding-bottom aspect-ratio trick with a fixed vh height */
.es-pricing-popup .mfp-iframe-scaler {
  padding-top: 0 !important;
  height: 85vh;
}

.es-pricing-popup .mfp-iframe-scaler iframe {
  height: 100%;
  position: static;
}

.es-pricing-popup .mfp-close {
  top: -36px;
  right: -6px;
}
