:root {
  --emlp-purple: #4d155f;
  --emlp-purple-dark: #260a31;
  --emlp-purple-soft: #7a2d8e;
  --emlp-gold: #f5c736;
  --emlp-gold-soft: #ffe789;
  --emlp-cream: #fffaf0;
  --emlp-ink: #2c2331;
}

.emlp-popup,
.emlp-reopen {
  font-family: inherit;
  box-sizing: border-box;
}

.emlp-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  width: min(430px, calc(100vw - 32px));
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,249,232,.98));
  border: 2px solid rgba(245,199,54,.95);
  box-shadow: 0 24px 70px rgba(28,5,38,.38), 0 8px 24px rgba(77,21,95,.18);
  color: var(--emlp-ink);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(32px) scale(.96);
  pointer-events: none;
  transition: opacity .38s ease, transform .38s cubic-bezier(.2,.75,.25,1), visibility .38s;
}

.emlp-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.emlp-popup *,
.emlp-reopen * { box-sizing: border-box; }

.emlp-header {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 22px 58px 21px 22px;
  background: linear-gradient(135deg, var(--emlp-purple-dark) 0%, var(--emlp-purple) 55%, #6f2382 100%);
  color: #fff;
}

.emlp-brand-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--emlp-gold);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,231,137,.54);
  box-shadow: inset 0 0 22px rgba(255,255,255,.08);
}

.emlp-brand-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.emlp-kicker { display:block; margin-bottom:5px; color:var(--emlp-gold-soft); font-size:11px; font-weight:900; letter-spacing:.18em; }
.emlp-header h2 { margin:0; color:#fff; font-size:25px; line-height:1.13; font-weight:850; letter-spacing:-.025em; }

.emlp-close {
  position:absolute;
  z-index:5;
  top:15px;
  right:15px;
  width:38px;
  height:38px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(255,231,137,.65);
  background:rgba(22,5,29,.40);
  color:var(--emlp-gold-soft);
  cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
.emlp-close:hover,.emlp-close:focus-visible{background:rgba(255,255,255,.16);transform:rotate(6deg) scale(1.06);outline:none}
.emlp-close svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}

.emlp-body { position:relative; z-index:2; padding:22px; }
.emlp-message { margin:0 0 16px; color:#5b5061; font-size:15px; line-height:1.55; }
.emlp-benefits { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.emlp-benefits span { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:999px; background:#f4eef7; color:#4d155f; font-size:12px; font-weight:750; }
.emlp-benefits svg{width:15px;height:15px;fill:none;stroke:#b37c00;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

.emlp-plans { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.emlp-plan { position:relative; min-width:0; display:flex; flex-direction:column; gap:5px; min-height:148px; padding:17px 15px 14px; border-radius:17px; text-decoration:none !important; transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.emlp-plan:hover,.emlp-plan:focus-visible{transform:translateY(-3px);outline:none}
.emlp-plan-monthly{background:#fff;border:1.5px solid #d8c9dd;color:var(--emlp-purple)!important}
.emlp-plan-monthly:hover,.emlp-plan-monthly:focus-visible{border-color:#9d62ad;box-shadow:0 10px 24px rgba(77,21,95,.13)}
.emlp-plan-annual{background:linear-gradient(145deg,#4d155f,#2a0b35);border:1.5px solid var(--emlp-gold);color:#fff!important;box-shadow:0 12px 26px rgba(77,21,95,.23)}
.emlp-plan-annual:hover,.emlp-plan-annual:focus-visible{box-shadow:0 16px 34px rgba(77,21,95,.34)}
.emlp-plan-label{font-size:13px;font-weight:800;letter-spacing:.03em;opacity:.88}
.emlp-plan strong{display:block;font-size:27px;line-height:1.08;font-weight:900;color:inherit}
.emlp-plan strong .woocommerce-Price-amount{color:inherit}
.emlp-plan strong small{font-size:12px;font-weight:700;opacity:.75;margin-left:2px}
.emlp-saving{align-self:flex-start;padding:4px 8px;border-radius:999px;background:var(--emlp-gold);color:#34103d;font-size:11px;font-weight:900}
.emlp-best{position:absolute;top:-10px;right:10px;padding:5px 9px;border-radius:999px;background:var(--emlp-gold);color:#32103c;font-size:9px;font-weight:950;letter-spacing:.10em;box-shadow:0 5px 12px rgba(0,0,0,.15)}
.emlp-plan-action{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:auto;padding-top:7px;border-top:1px solid currentColor;font-size:12px;font-weight:850;opacity:.94}
.emlp-plan-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.emlp-fineprint{margin:14px 0 7px;text-align:center;color:#756a79;font-size:11px;line-height:1.4}
.emlp-later{display:block;margin:0 auto;padding:6px 12px;border:0;background:transparent;color:#5c4863;font-size:12px;font-weight:700;text-decoration:underline;cursor:pointer}
.emlp-later:hover,.emlp-later:focus-visible{color:var(--emlp-purple);outline:none}

.emlp-glow{position:absolute;z-index:1;border-radius:50%;filter:blur(2px);pointer-events:none}
.emlp-glow-one{width:120px;height:120px;right:-55px;top:95px;background:radial-gradient(circle,rgba(245,199,54,.24),transparent 68%)}
.emlp-glow-two{width:130px;height:130px;left:-70px;bottom:-70px;background:radial-gradient(circle,rgba(112,33,132,.18),transparent 70%)}

.emlp-reopen {
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:999998;
  display:flex;
  align-items:center;
  gap:8px;
  padding:11px 15px;
  border-radius:999px;
  border:2px solid var(--emlp-gold);
  background:linear-gradient(135deg,var(--emlp-purple),var(--emlp-purple-dark));
  color:#fff;
  box-shadow:0 12px 30px rgba(35,7,44,.27);
  cursor:pointer;
  font-weight:800;
  font-size:13px;
  transform:translateY(18px);
  opacity:0;
  transition:opacity .25s ease,transform .25s ease;
}
.emlp-reopen.is-visible{opacity:1;transform:translateY(0)}
.emlp-reopen svg{width:20px;height:20px;fill:none;stroke:var(--emlp-gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.emlp-reopen:hover,.emlp-reopen:focus-visible{transform:translateY(-2px);outline:none;box-shadow:0 15px 34px rgba(35,7,44,.35)}

@media (max-width: 600px) {
  .emlp-popup { right:12px; bottom:12px; width:calc(100vw - 24px); max-height:calc(100vh - 24px); overflow:auto; border-radius:20px; }
  .emlp-header{padding:18px 52px 17px 17px;gap:11px}
  .emlp-brand-icon{width:48px;height:48px;flex-basis:48px;border-radius:15px}
  .emlp-brand-icon svg{width:33px;height:33px}
  .emlp-header h2{font-size:21px}
  .emlp-body{padding:17px}
  .emlp-message{font-size:14px;margin-bottom:13px}
  .emlp-benefits{margin-bottom:14px}
  .emlp-plans{grid-template-columns:1fr;gap:10px}
  .emlp-plan{min-height:119px;padding:15px}
  .emlp-plan strong{font-size:25px}
  .emlp-reopen{right:12px;bottom:12px}
}

@media (prefers-reduced-motion: reduce) {
  .emlp-popup,.emlp-plan,.emlp-close,.emlp-reopen{transition:none!important}
}
