/* eSIMTweaks price-plugin skin — restyles the esim-price-comparison plugin output (country price pages,
   plan tables, calculators, coupon grids, FAQ …) in the homepage design. CSS only: the plugin's markup,
   scripts and data are untouched. Scoped to body.esx-epc; ?skin=0 on a draft shows it without. */

/* ───────── palette + type: the plugin reads these variables ───────── */
.esx-epc .epc {
  --epc-blue: #5a4fd8; --epc-blue-dark: #3f35b8; --epc-blue-soft: #f4f3fc;
  --epc-accent: #ff5fa8; --epc-accent-dark: #c2186b; --epc-accent-soft: #ffe1ef;
  --epc-ink: #1d1a4a; --epc-muted: #8580b0; --epc-line: #dcdaf0;
  --epc-surface: #ffffff; --epc-surface-2: #f4f3fc;
  --epc-radius: 18px; --epc-shadow: 6px 7px 0 #b8b3ff;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  color: var(--epc-ink);
}
.esx-epc .epc :is(p, li, td, th, span, div, a, button, input, select, label, small, strong, b) { font-family: inherit; }
.esx-epc .epc :is(h1, h2, h3, h4, .epc-hero-title, .epc-stat-num, .epc-afford-big, .epc-calc-gb, .epc-lb-num, .epc-cpn-off b, .epc-coupon-offer, .epc-feat-metric) {
  font-family: "Nunito", "Avenir Next", system-ui, sans-serif !important; font-style: italic; font-weight: 900 !important; letter-spacing: -.015em !important;
}
.esx-epc .epc :is(.epc-cell-code, .epc-code-chip, .epc-cpn-code, .epc-coupon-code > span, .epc-ch-code) { font-family: ui-monospace, "SF Mono", Menlo, monospace !important; }

/* ───────── every card shell: 3px ink line + lavender offset shadow ───────── */
.esx-epc .epc :is(.epc-cheapest, .epc-leaderboard, .epc-results, .epc-calc, .epc-coupon-card, .epc-deals, .epc-ptable,
  .epc-compat, .epc-afford, .epc-networks, .epc-reviews, .epc-faq, .epc-region-card, .epc-cpn-card, .epc-country-card) {
  border: 3px solid var(--epc-ink) !important; border-radius: var(--epc-radius) !important; box-shadow: var(--epc-shadow) !important; background: #fff !important;
}
.esx-epc .epc .epc-cpn-card { transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s cubic-bezier(.34,1.56,.64,1); }
.esx-epc .epc :is(.epc-cpn-card, .epc-country-card, .epc-region-card):hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 9px 11px 0 #b8b3ff !important; }
.esx-epc .epc .epc-card-icon { border: 2.5px solid var(--epc-ink); border-radius: 12px; background: var(--epc-accent) !important; box-shadow: 2px 3px 0 #b8b3ff; }
.esx-epc .epc .epc-card-head h3 { font-size: 21px !important; color: var(--epc-ink); }

/* ───────── hero ───────── */
.esx-epc .epc .epc-hero {
  background: linear-gradient(160deg, #1d1a4a 0%, #2a2566 100%) !important; border: 3px solid var(--epc-ink);
  border-radius: 22px; box-shadow: 9px 11px 0 #b8b3ff;
}
.esx-epc .epc .epc-hero::after { background: radial-gradient(90% 90% at 50% -20%, rgba(184,179,255,.28), transparent 60%); }
.esx-epc .epc .epc-hero-title { font-size: clamp(28px, 4vw, 44px) !important; line-height: 1.05; }
.esx-epc .epc .epc-hero-sub strong { color: #ffe1ef; }
.esx-epc .epc .epc-feat-card {
  border: 2.5px solid var(--epc-ink) !important; border-radius: 16px !important; box-shadow: 4px 5px 0 #ff5fa8 !important; background: #fff !important;
}
.esx-epc .epc .epc-feat-label { color: var(--epc-accent-dark) !important; font-weight: 900; }
.esx-epc .epc .epc-feat-metric { color: var(--epc-blue) !important; }

/* ───────── stat bar ───────── */
.esx-epc .epc .epc-statbar {
  border: 3px solid var(--epc-ink) !important; border-radius: var(--epc-radius) !important; box-shadow: var(--epc-shadow) !important; overflow: hidden; background: var(--epc-line);
}
.esx-epc .epc .epc-stat-num { color: var(--epc-blue) !important; font-size: 28px !important; }
.esx-epc .epc .epc-stat-lbl { color: var(--epc-muted) !important; font-weight: 800; letter-spacing: .06em; }

/* ───────── plan table: toolbar + filters + table as one ink panel ───────── */
.esx-epc .epc .epc-toolbar { border: 3px solid var(--epc-ink) !important; border-bottom: 0 !important; background: var(--epc-surface-2) !important; }
.esx-epc .epc .epc-filter-panel { border-left: 3px solid var(--epc-ink) !important; border-right: 3px solid var(--epc-ink) !important; background: #fff; }
.esx-epc .epc .epc-table-wrap { border: 3px solid var(--epc-ink) !important; box-shadow: var(--epc-shadow) !important; }
.esx-epc .epc .epc-table thead th { background: var(--epc-ink) !important; color: #fff !important; font-weight: 900 !important; font-style: italic; letter-spacing: .04em; }
.esx-epc .epc .epc-table tbody tr:nth-child(even) td { background: var(--epc-surface-2); }
.esx-epc .epc .epc-table tbody tr:hover td { background: var(--epc-accent-soft); }
.esx-epc .epc .epc-cell-price, .esx-epc .epc .epc-cell-ppgb { font-weight: 900; font-style: italic; color: var(--epc-ink); }
.esx-epc .epc .epc-esim-name { font-weight: 900; }
.esx-epc .epc .epc-logo { border: 2px solid var(--epc-ink); border-radius: 9px; background: #fff; }

/* ───────── controls ───────── */
.esx-epc .epc :is(.epc-select, input[type="number"], input[type="text"], input[type="email"], input[type="search"]) {
  border: 2.5px solid var(--epc-ink) !important; border-radius: 12px !important; box-shadow: 3px 4px 0 #b8b3ff; color: var(--epc-ink) !important; font-weight: 700;
}
.esx-epc .epc .epc-chip {
  border: 2px solid var(--epc-line) !important; border-radius: 999px !important; font-weight: 800; background: #fff; color: var(--epc-ink);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s;
}
.esx-epc .epc .epc-chip:hover { border-color: var(--epc-ink) !important; transform: translateY(-2px); }
.esx-epc .epc .epc-chip.is-active { background: var(--epc-ink) !important; border-color: var(--epc-ink) !important; color: #fff !important; }
.esx-epc .epc .epc-btn {
  border-radius: 12px !important; font-weight: 900 !important; font-style: italic;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s cubic-bezier(.34,1.56,.64,1), background .2s;
}
.esx-epc .epc .epc-btn--primary, .esx-epc .epc .epc-btn--deal {
  background: var(--epc-ink) !important; color: #fff !important; border: 3px solid var(--epc-ink) !important; box-shadow: 4px 5px 0 #b8b3ff !important;
}
.esx-epc .epc .epc-btn--primary:hover, .esx-epc .epc .epc-btn--deal:hover { background: var(--epc-blue) !important; transform: translate(-2px, -2px); box-shadow: 6px 7px 0 #b8b3ff !important; }
.esx-epc .epc .epc-btn--ghost { border: 2.5px solid var(--epc-ink) !important; color: var(--epc-ink) !important; background: #fff !important; }
.esx-epc .epc .epc-btn--load { background: #fff !important; color: var(--epc-ink) !important; border: 3px dashed var(--epc-blue) !important; }
.esx-epc .epc .epc-btn--load:hover { border-style: solid !important; box-shadow: 4px 5px 0 #b8b3ff !important; }
.esx-epc .epc .epc-btn--deal.is-copied { background: var(--epc-green) !important; border-color: var(--epc-green) !important; }
/* "Get Deal" pills in the table */
.esx-epc .epc .epc-pill {
  background: var(--epc-ink) !important; color: #fff !important; border: 2.5px solid var(--epc-ink); border-radius: 999px !important;
  font-weight: 900 !important; font-style: italic; box-shadow: 3px 4px 0 #b8b3ff !important;
}
.esx-epc .epc .epc-pill:hover { background: var(--epc-blue) !important; transform: translate(-2px, -2px); box-shadow: 5px 6px 0 #b8b3ff !important; }
/* copyable codes: dashed violet chip like the homepage */
.esx-epc .epc .epc-code-chip {
  border: 2px dashed var(--epc-blue) !important; background: var(--epc-blue-soft) !important; color: var(--epc-blue) !important; border-radius: 10px !important; font-weight: 900 !important;
}
.esx-epc .epc .epc-code-chip:hover { background: var(--epc-accent-soft) !important; border-color: var(--epc-accent) !important; color: #c2186b !important; transform: rotate(-2deg) scale(1.04); }
.esx-epc .epc .epc-code-chip.is-copied { background: var(--epc-green) !important; border-color: var(--epc-green) !important; color: #fff !important; }
.esx-epc .epc .epc-row-badge { border-radius: 999px; font-weight: 900; }

/* ───────── coupon cards ───────── */
.esx-epc .epc .epc-cpn-off b { color: var(--epc-ink) !important; }
.esx-epc .epc .epc-cpn-code { border: 2px dashed var(--epc-blue) !important; background: var(--epc-blue-soft) !important; color: var(--epc-blue) !important; border-radius: 10px !important; }
.esx-epc .epc .epc-cpn-logo { border: 2px solid var(--epc-ink); border-radius: 10px; background: #fff; }
.esx-epc .epc .epc-cpn-off b { color: var(--epc-accent-dark) !important; }
/* long text offers ("Free Global 1GB eSIM") wrap under a readable provider name instead of squeezing it */
.esx-epc .epc .epc-cpn-head { flex-wrap: wrap; }
.esx-epc .epc .epc-cpn-titles { flex: 1 1 110px; }
.esx-epc .epc .epc-cpn-off--text { flex: 1 1 100%; align-items: flex-start; text-align: left; }
.esx-epc .epc .epc-cpn-copy {
  background: var(--epc-ink) !important; color: #fff !important; border: 2.5px solid var(--epc-ink) !important; border-radius: 12px !important;
  font-weight: 900 !important; font-style: italic; box-shadow: 3px 4px 0 #b8b3ff !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s cubic-bezier(.34,1.56,.64,1), background .2s !important;
}
.esx-epc .epc .epc-cpn-copy:hover { background: var(--epc-blue) !important; transform: translate(-2px, -2px); box-shadow: 5px 6px 0 #b8b3ff !important; }
.esx-epc .epc .epc-cpn-copy.is-copied { background: var(--epc-green) !important; border-color: var(--epc-green) !important; }

/* ───────── data calculator: fields may not grow past the card on phones (plugin grid used plain 1fr) ───────── */
.esx-epc .epc .epc-calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esx-epc .epc :is(.epc-calc-field, .epc-calc-row) { min-width: 0; }
.esx-epc .epc .epc-calc-row input[type="range"] { min-width: 0; }
.esx-epc .epc .epc-calc-field select { width: 100%; max-width: 100%; }
.esx-epc .epc .epc-cp-grid > * { min-width: 0; }
@media (max-width: 600px) { .esx-epc .epc .epc-calc-grid { grid-template-columns: minmax(0, 1fr); } }
/* reviews widget: the star rating drops under the provider name on narrow phones */
.esx-epc .epc .epc-review-item { flex-wrap: wrap; min-width: 0; }
.esx-epc .epc .epc-review-list { min-width: 0; }

/* ───────── FAQ ───────── */
.esx-epc .epc .epc-faq-item { border: 2.5px solid var(--epc-ink) !important; border-radius: 14px !important; box-shadow: 3px 4px 0 #b8b3ff; background: #fff; }
.esx-epc .epc .epc-faq-item summary, .esx-epc .epc .epc-faq-item h3 { font-style: italic; font-weight: 900; }

/* ───────── page body around the plugin (headings, intro text) ───────── */
.esx-epc .entry-content > :is(h2, h3).wp-block-heading { font-family: "Nunito", system-ui, sans-serif !important; font-style: italic; font-weight: 900; color: #1d1a4a; }
.esx-epc .entry-content > p { font-family: "Nunito", system-ui, sans-serif; color: #2c2858; }

/* ═════════ plugin TOOLS & games (epc-tools.css) — in the homepage "tool panel" look ═════════ */
.esx-epc .epc-tool {
  --t: #5a4fd8; --td: #3f35b8; --ts: #f4f3fc; --o: #1d1a4a; --od: #b8b3ff; --os: #ffe1ef;
  --ink: #1d1a4a; --mut: #8580b0; --ln: #dcdaf0; --s2: #f4f3fc;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
  max-width: 780px; padding: 24px; border: 3px solid var(--ink) !important; border-radius: 18px !important;
  box-shadow: 6px 7px 0 #b8b3ff !important; background: #fff;
}
.esx-epc .epc-tool :is(p, li, td, th, span, div, a, button, input, select, label, small, strong, b, option) { font-family: inherit; }
.esx-epc .epc-tool .epc-tool-ic { display: none; }
.esx-epc .epc-tool .epc-tool-head h3 { font-family: "Nunito", system-ui, sans-serif !important; font-style: italic; font-weight: 900; font-size: 26px; letter-spacing: -.015em; color: var(--ink); }
.esx-epc .epc-tool .epc-tool-sub { color: var(--mut); font-size: 15.5px; font-weight: 600; }
.esx-epc .epc-tool :is(h3, h4, .epc-step-l b, .epc-pl-num, .epc-qf-q, .epc-sv-save) { font-family: "Nunito", system-ui, sans-serif !important; }
.esx-epc .epc-tool :is(.epc-pl-num, .epc-sv-save, .epc-qf-q) { font-style: italic; font-weight: 900; }
/* buttons = the homepage Sakuga button: white, ink line, lavender shadow, italic */
.esx-epc .epc-tool .epc-btn {
  border: 3px solid var(--ink) !important; border-radius: 12px !important; background: #fff !important; color: var(--ink) !important;
  font-style: italic; font-weight: 800 !important; font-size: 16px; box-shadow: 4px 5px 0 #b8b3ff !important;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s cubic-bezier(.34,1.56,.64,1);
}
.esx-epc .epc-tool .epc-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 #b8b3ff !important; filter: none; }
.esx-epc .epc-tool .epc-btn:active { transform: scale(.95, .9); }
.esx-epc .epc-tool .epc-btn--deal, .esx-epc .epc-tool a.epc-btn[target="_blank"] { background: var(--ink) !important; color: #fff !important; }
/* fields = the homepage Sakuga input */
.esx-epc .epc-tool :is(select, input[type="text"], input[type="email"], input[type="number"], input[type="search"], textarea, .epc-dle-guess) {
  border: 3px solid var(--ink) !important; border-radius: 15px !important; box-shadow: 6px 7px 0 #b8b3ff; background: #fff; color: var(--ink);
  font: 600 16px/1.4 "Nunito", system-ui, sans-serif !important; padding: 12px 16px;
}
.esx-epc .epc-tool :is(select, input, textarea):focus { border-color: var(--t) !important; box-shadow: 6px 7px 0 #ff5fa8; outline: none; }
.esx-epc .epc-tool input[type="range"] { accent-color: #ff5fa8; box-shadow: none; border: 0 !important; padding: 0; }
/* choice chips (quiz answers, usage, region …) = homepage tabs: ink when picked */
.esx-epc .epc-tool :is(.epc-choice, .epc-qf-opt, .epc-quiz-opt, .epc-opt-strat, .epc-chip) {
  border: 2.5px solid var(--ln) !important; border-radius: 14px !important; background: #fff; color: var(--ink); font-weight: 800;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s, background .2s;
}
.esx-epc .epc-tool :is(.epc-choice, .epc-qf-opt, .epc-quiz-opt, .epc-opt-strat, .epc-chip):hover { border-color: var(--ink) !important; transform: translateY(-2px); }
.esx-epc .epc-tool :is(.epc-choice, .epc-qf-opt, .epc-quiz-opt, .epc-opt-strat, .epc-chip):is(.is-active, .is-selected, [aria-pressed="true"]) { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.esx-epc .epc-tool :is(.epc-choice, .epc-qf-opt):is(.is-active, .is-selected) small { color: #cfcaff; }
/* result boxes = homepage .result */
.esx-epc .epc-tool .epc-pl-gb { border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 5px 0 #b8b3ff; }
.esx-epc .epc-tool :is(.epc-qf-card, .epc-sv-cell, .epc-cpi-box, .epc-cpi-stat, .epc-conc-plan, .epc-opt-single, .epc-speed-cell, .epc-cg-tile, .epc-bridge-row) {
  border-color: var(--ink) !important; border-radius: 14px !important;
}
.esx-epc .epc-tool .epc-qf-progress { border: 2px solid var(--ink); border-radius: 999px; background: var(--s2); overflow: hidden; }
.esx-epc .epc-tool .epc-qf-bar { background: #ff5fa8 !important; }
.esx-epc .epc-tool table { border-collapse: collapse; }
.esx-epc .epc-tool thead th { background: var(--ink) !important; color: #fff !important; font-style: italic; font-weight: 900; }
/* chat (concierge) bubbles */
.esx-epc .epc-tool .epc-conc-msg, .esx-epc .epc-tool .epc-c-msg { border-radius: 14px; }
.esx-epc .epc-tool .epc-conc-text { min-width: 0; }
.esx-epc .epc-tool .epc-conc-send { flex: none; }
/* compare / coverage pickers: stack evenly on phones */
@media (max-width: 560px) {
  .esx-epc .epc-tool :is(.epc-cmp-bar, .epc-cov-bar) > :is(select, .epc-btn, .epc-cov-country, .epc-cmp-a, .epc-cmp-b) { flex: 1 1 100%; min-width: 0; width: 100%; }
  .esx-epc .epc-tool .epc-cmp-vs { margin: -2px auto; }
}
@media (max-width: 680px) { .esx-epc .epc-tool { padding: 18px; } .esx-epc .epc-tool .epc-tool-head h3 { font-size: 22px; } }
