/* Ekelyckans Media och Design – Självsäljande Förhandsvisningsmotor (VD-ORDER 024)
   Gemensamt konverterande lager för branschmallar och samtliga kundsidor:
   1. 1-klicks "Byt stil live (1 / 2 / 3)" kopplat till Bransch_Malldatabas + Regel 5 2-minutersknapp
   2. Proaktiv Sofie-coach efter 8 sek med Kents sajtinsikt & 1-klicks tröskelsvar
   3. "Se plinget i din egen mobil" (PWA-notis direkt vid kalkylatorinteraktion)
   4. "Prova PEK-verktyget innan du beställer"-läge + friktionsfri start via org.nr
   WCAG 2.1 AA-kontrastlåst (>= 4.5:1) och noll overflow på 390px mobil. */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- 1. TOPP-PANEL: 1-KLICKS STILVÄXLARE + REGEL 5 ---------- */
.ek-pse-strip,
.ek-pse-strip *,
.ek-pse-coach-wrap,
.ek-pse-coach-wrap *,
.ek-pse-pling,
.ek-pse-pling *,
.ek-pse-backdrop,
.ek-pse-backdrop * {
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ek-pse-strip {
  background: #141619;
  background: rgba(20, 22, 25, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  padding: 8px 16px;
  font-size: 12.5px;
  position: relative;
  z-index: 80;
  width: 100%;
  max-width: 100%;
}

.ek-pse-strip-in {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.ek-pse-meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.ek-pse-pill {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #202329;
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
  flex-shrink: 0;
}

.ek-pse-arch-tag {
  font-size: 11.5px;
  color: #d4d4d8;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 225px;
}

.ek-pse-switcher-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 0;
}

.ek-pse-switcher-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #d4d4d8;
  white-space: nowrap;
}

.ek-pse-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #1c1f24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
}

.ek-pse-style-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #d4d4d8;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  min-width: 30px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}

.ek-pse-style-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.ek-pse-style-btn.is-active {
  background: #f4f4f5;
  color: #111827;
  font-weight: 800;
}

.ek-pse-pek-toggle {
  appearance: none;
  background: #202329;
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ek-pse-pek-toggle:hover {
  background: #2b2f37;
  border-color: rgba(255, 255, 255, 0.24);
}

.ek-pse-pek-toggle.is-on {
  background: #f59e0b;
  color: #111827;
  border-color: #f59e0b;
  font-weight: 800;
}

.ek-pse-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}

.ek-pse-actions .ek-own-btn {
  background: #23262d;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.ek-pse-actions .ek-own-btn:hover {
  background: #2e323b;
  border-color: rgba(255, 255, 255, 0.28);
}

.ek-pse-actions .ek-start-btn {
  background: #ffffff;
  color: #111827;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
  transition: background 0.15s, transform 0.12s;
}

.ek-pse-actions .ek-start-btn:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

/* ---------- 1B. LIVE ARKITEKTUR- & STILVÄXLING (BRANSCH_MALLDATABAS 1/2/3) ---------- */
html[data-ek-pse-style] body,
html[data-ek-pse-style] .band,
html[data-ek-pse-style] .topbar,
html[data-ek-pse-style] footer {
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

html[data-ek-pse-style] {
  --bg: var(--pse-bg);
  --surface: var(--pse-surface);
  --surface-2: var(--pse-surface);
  --ink: var(--pse-ink);
  --muted: var(--pse-muted);
  --accent: var(--pse-accent);
  --accent-hover: var(--pse-accent-hover);
  --accent-dark: var(--pse-accent-hover);
  --accent-ink: var(--pse-accent-ink);
  --header-bg: var(--pse-header-bg);
  --header-ink: var(--pse-header-ink);
  --footer-bg: var(--pse-footer-bg);
  --footer-ink: var(--pse-footer-ink);
  --alt-bg: var(--pse-alt-bg);
  --alt-ink: var(--pse-alt-ink);
  --alt-muted: var(--pse-alt-muted);
  --birch-bg: var(--pse-light-bg);
  --birch-card: var(--pse-light-card);
  --birch-ink: var(--pse-light-ink);
  --birch-muted: var(--pse-light-muted);
  --birch-blue: var(--pse-light-accent);
  --lime-bg: var(--pse-light-bg);
  --lime-card: var(--pse-light-card);
  --lime-ink: var(--pse-light-ink);
  --lime-muted: var(--pse-light-muted);
  --lime-accent: var(--pse-light-accent);
  --conc-bg: var(--pse-light-bg);
  --conc-card: var(--pse-light-card);
  --conc-ink: var(--pse-light-ink);
  --conc-muted: var(--pse-light-muted);
  --paper-bg: var(--pse-light-bg);
  --paper-card: var(--pse-light-card);
  --paper-ink: var(--pse-light-ink);
  --paper-muted: var(--pse-light-muted);
  --steel-bg: var(--pse-light-bg);
  --steel-card: var(--pse-light-card);
  --steel-ink: var(--pse-light-ink);
  --steel-muted: var(--pse-light-muted);
  --gravel-bg: var(--pse-light-bg);
  --gravel-card: var(--pse-light-card);
  --gravel-ink: var(--pse-light-ink);
  --gravel-muted: var(--pse-light-muted);
  --cotton-bg: var(--pse-light-bg);
  --cotton-card: var(--pse-light-card);
  --cotton-ink: var(--pse-light-ink);
  --cotton-muted: var(--pse-light-muted);
  --stone-bg: var(--pse-light-bg);
  --stone-raised: var(--pse-light-card);
  --stone-ink: var(--pse-light-ink);
  --stone-muted: var(--pse-light-muted);
  --navy: var(--pse-alt-bg);
  --prussian: var(--pse-alt-bg);
  --forest: var(--pse-alt-bg);
  --slate: var(--pse-alt-bg);
}

html[data-ek-pse-style] .topbar {
  background: var(--pse-header-bg) !important;
  color: var(--pse-header-ink) !important;
  border-bottom-color: rgba(148, 163, 184, 0.24) !important;
}

html[data-ek-pse-style] .topbar a:not(.btn):not(.btn-primary),
html[data-ek-pse-style] .topbar .nav a,
html[data-ek-pse-style] .topbar .tel-link,
html[data-ek-pse-style] .topbar .brand,
html[data-ek-pse-style] .topbar .brand-tag,
html[data-ek-pse-style] .topbar .brand-region,
html[data-ek-pse-style] .topbar .brand-meta,
html[data-ek-pse-style] .topbar .ek-brand-clean {
  color: var(--pse-header-ink) !important;
}

html[data-ek-pse-style] .topbar .tel-link {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

html[data-ek-pse-style] .topbar .brand-logo img {
  background: rgba(245, 247, 241, 0.96);
  padding: 4px 10px;
  border-radius: 8px;
}

html[data-ek-pse-style] .band-navy,
html[data-ek-pse-style] .band-forest,
html[data-ek-pse-style] .band-slate {
  background: var(--pse-alt-bg, var(--pse-bg)) !important;
  color: var(--pse-alt-ink, var(--pse-ink)) !important;
}

html[data-ek-pse-style] .res-card .res-big,
html[data-ek-pse-style] .res-white .res-big,
html[data-ek-pse-style] .res-linen .res-big,
html[data-ek-pse-style] .res-alab .res-big {
  color: var(--pse-ink) !important;
}

html[data-ek-pse-style] footer {
  background: var(--pse-footer-bg) !important;
  color: var(--pse-footer-ink) !important;
}

html[data-ek-pse-style] .btn-primary,
html[data-ek-pse-style] a.btn-primary,
html[data-ek-pse-style] .topbar a.btn-primary {
  background: var(--pse-accent) !important;
  color: var(--pse-accent-ink) !important;
  border-radius: var(--pse-btn-radius, 12px) !important;
}

html[data-ek-pse-style] .bt,
html[data-ek-pse-style] .calc-box,
html[data-ek-pse-style] .calc-panel,
html[data-ek-pse-style] .res-box,
html[data-ek-pse-style] .summary-panel,
html[data-ek-pse-style] .spec-panel,
html[data-ek-pse-style] .st-card,
html[data-ek-pse-style] .g-card,
html[data-ek-pse-style] .sl-box,
html[data-ek-pse-style] .f-card,
html[data-ek-pse-style] .calm-card,
html[data-ek-pse-style] .hero-photo-stack {
  border-radius: var(--pse-card-radius, 18px) !important;
}

/* Dark-surface contrast protection under style switching */
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero {
  background-color: var(--pse-bg) !important;
  color: var(--pse-ink) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero h1 {
  color: var(--pse-ink) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero h1 em,
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero .kicker,
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero .hero-kicker {
  color: var(--pse-accent-soft) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero .hero-p,
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero .hero-lead {
  color: var(--pse-muted) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="dark"] .hero-photo-stack,
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .summary-panel,
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .sum-dark,
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .ton-panel {
  background: var(--pse-surface) !important;
  color: var(--pse-ink) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="dark"] .band-dark,
html[data-ek-pse-style][data-ek-pse-polarity="dark"] .band-navy {
  background: var(--pse-bg) !important;
  color: var(--pse-ink) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-alt,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-dark,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-forest,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-slate {
  background: var(--pse-alt-bg) !important;
  color: var(--pse-alt-ink) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-alt .sec-lead,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-alt .kicker {
  color: var(--pse-alt-muted) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-main,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-light,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .band-linen {
  background: var(--pse-bg) !important;
  color: var(--pse-ink) !important;
}

html[data-ek-pse-style][data-ek-pse-polarity="light"] .hero,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .hero-split,
html[data-ek-pse-style][data-ek-pse-polarity="light"] .hero-center {
  background: linear-gradient(180deg, #ffffff 0%, var(--pse-bg) 100%) !important;
  color: var(--pse-ink) !important;
}

/* Structural style differentiation (1 = Editorial, 2 = Architectural Split, 3 = Bold Precision) */
html[data-ek-pse-arch="2"] .hero h1 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
}

html[data-ek-pse-arch="2"] .hero-grid {
  direction: rtl;
}

html[data-ek-pse-arch="2"] .hero-grid > * {
  direction: ltr;
}

html[data-ek-pse-arch="3"] .hero h1 {
  font-family: "Cormorant Garamond", "Instrument Serif", Georgia, serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
}

html[data-ek-pse-arch="3"] .bt,
html[data-ek-pse-arch="3"] .calc-box,
html[data-ek-pse-arch="3"] .res-box,
html[data-ek-pse-arch="3"] .summary-panel {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24) !important;
  border-top: 2px solid var(--pse-accent) !important;
}

/* ---------- 2. PROAKTIV SOFIE-COACH (8 SEK MED SAJTINSIKT) ---------- */
.ek-pse-coach-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 210;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-width: calc(100vw - 24px);
}

.ek-pse-coach-fab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #141619;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 9px 15px 9px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.ek-pse-coach-wrap.is-open .ek-pse-coach-fab {
  display: none;
}

.ek-pse-coach-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}

.ek-pse-coach-card {
  width: 370px;
  max-width: calc(100vw - 24px);
  background: #141619;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid #f59e0b;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
  display: none;
  animation: ekPseSlideUp 0.24s ease-out;
}

.ek-pse-coach-card.open {
  display: block;
}

.ek-pse-coach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ek-pse-coach-who {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ek-pse-coach-who strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.2;
}

.ek-pse-coach-who > div > span {
  display: block;
  font-size: 11px;
  color: #fbbf24;
  font-family: "JetBrains Mono", monospace;
}

.ek-pse-close-x {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.ek-pse-close-x:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ek-pse-coach-msg {
  background: #1c1f24;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  padding: 12px 13px;
  font-size: 13.2px;
  line-height: 1.5;
  color: #f4f4f5;
  margin-bottom: 10px;
}

.ek-pse-coach-reply {
  display: none;
  background: #231d13;
  border: 1px solid #f59e0b;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12.6px;
  line-height: 1.48;
  color: #fef3c7;
  margin-bottom: 10px;
}

.ek-pse-coach-reply.show {
  display: block;
}

.ek-pse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.ek-pse-chip {
  appearance: none;
  background: #202329;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.ek-pse-chip:hover,
.ek-pse-chip.active {
  background: #f4f4f5;
  color: #111827;
  border-color: #f4f4f5;
  font-weight: 700;
}

.ek-pse-coach-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.ek-pse-coach-primary {
  appearance: none;
  background: #ffffff;
  color: #111827;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.8px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.ek-pse-coach-primary:hover {
  background: #f4f4f5;
}

.ek-pse-coach-subrow {
  display: flex;
  gap: 7px;
}

.ek-pse-coach-sec {
  appearance: none;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.ek-pse-coach-sec:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- 3. "SE PLINGET I DIN EGEN MOBIL" PWA-NOTIS ---------- */
.ek-pse-pling {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 368px;
  max-width: calc(100vw - 24px);
  z-index: 215;
  background: #141619;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 14px 15px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.56);
  display: none;
  animation: ekPseSlideSolid 0.16s ease-out;
}

.ek-pse-pling.open {
  display: block;
}

.ek-pse-pling-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ek-pse-pling-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fbbf24;
  text-transform: uppercase;
}

.ek-pse-pling-app-ico {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #f59e0b;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.ek-pse-pling-alert {
  background: #1c1f24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 9px;
}

.ek-pse-pling-alert strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  margin-bottom: 3px;
}

.ek-pse-pling-alert span {
  display: block;
  font-size: 12px;
  color: #d4d4d8;
  font-family: "JetBrains Mono", monospace;
}

.ek-pse-pling-explain {
  font-size: 12.2px;
  line-height: 1.45;
  color: #e4e4e7;
  margin: 0 0 10px;
}

.ek-pse-pling-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.ek-pse-plus-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #fde68a;
  background: #231d13;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
}

.ek-pse-pling-cta {
  appearance: none;
  background: #ffffff;
  color: #111827;
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ek-pse-pling-cta:hover {
  background: #f4f4f5;
}

/* ---------- 4. "PROVA PEK INNAN DU BESTÄLLER" & FRIKTIONSFRI START ---------- */
body:not(.ek-pek-active) [data-pek-block] {
  cursor: pointer;
  transition: outline-color 0.15s, background-color 0.15s;
}

body:not(.ek-pek-active) [data-pek-block]:hover {
  outline: 2px dashed rgba(245, 158, 11, 0.72);
  outline-offset: 4px;
  border-radius: 6px;
}

body.ek-pse-pek-highlight:not(.ek-pek-active) [data-pek-block] {
  outline: 2px dashed rgba(245, 158, 11, 0.85);
  outline-offset: 4px;
  border-radius: 6px;
}

.ek-pse-tap-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  vertical-align: middle;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #f59e0b;
  color: #160c02;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  font-style: normal;
  line-height: 1.2;
}

.ek-pse-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: rgba(6, 10, 20, 0.84);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ek-pse-backdrop.open {
  display: flex;
}

.ek-pse-modal {
  background: #141619;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.ek-pse-modal h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: #ffffff;
}

.ek-pse-modal p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #d4d4d8;
}

.ek-pse-textarea,
.ek-pse-input,
.ek-pse-select {
  width: 100%;
  max-width: 100%;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0e1013;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 10px;
}

.ek-pse-textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.48;
}

.ek-pse-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ek-pse-btn {
  appearance: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
}

.ek-pse-btn-em {
  background: #ffffff;
  color: #111827;
}

.ek-pse-btn-em:hover {
  background: #f4f4f5;
}

.ek-pse-btn-amber {
  background: #f59e0b;
  color: #111827;
}

.ek-pse-btn-amber:hover {
  background: #fbbf24;
}

.ek-pse-btn-ghost {
  background: #23262d;
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.16);
}

.ek-pse-start-cta {
  width: 100%;
  appearance: none;
  background: #ffffff;
  color: #111827;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.ek-pse-start-cta:hover {
  background: #f4f4f5;
}

.ek-pse-org-box {
  background: #1c1f24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0 12px;
}

.ek-pse-org-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.ek-pse-org-row .ek-pse-input {
  margin-bottom: 0;
  flex: 1;
}

.ek-pse-org-result {
  margin-top: 10px;
  background: #231d13;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12.8px;
  color: #fef3c7;
  display: none;
}

.ek-pse-org-result.show {
  display: block;
}

.ek-pse-msg {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.8px;
  font-weight: 700;
  display: none;
}

.ek-pse-msg.show {
  display: block;
}

.ek-pse-msg.ok {
  background: #202329;
  border: 1px solid #d4d4d8;
  color: #f8fafc;
}

.ek-pse-msg.err {
  background: #3b0d14;
  border: 1px solid #f87171;
  color: #fee2e2;
}

/* Hide preview sales widgets when authenticated PEK mode is open */
body.ek-pek-active .ek-pse-coach-wrap,
body.ek-pek-active .ek-pse-pling,
body.ek-pek-active .ek-pse-tap-hint {
  display: none !important;
}

@keyframes ekPseSlideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ekPseSlideSolid {
  from {
    opacity: 1;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 4B. ORDER 025: SNÅLSKJUTSSPÄRR & LÅSTA KONTAKTUPPGIFTER ---------- */
.ek-locked-contact,
[data-ek-locked] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
}

.ek-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.52);
  color: inherit;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

a.ek-locked-contact {
  text-decoration: none;
}

.ek-form-lock-box,
.ek-calc-lock-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #141619;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  box-sizing: border-box;
  max-width: 100%;
}

.ek-form-lock-box *,
.ek-calc-lock-box * {
  box-sizing: border-box;
}

.ek-form-lock-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 5px;
}

.ek-form-lock-copy {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.48;
  color: #d4d4d8;
}

.ek-pse-unlock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  color: #111827;
  font: 800 13.5px/1.35 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ek-pse-unlock-btn:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.ek-form-locked-controls [type="submit"],
.ek-form-locked-controls .ek-locked-submit {
  opacity: 0.72;
  cursor: not-allowed;
}

.ek-unlocked-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #1c1f24;
  border: 1px solid #f59e0b;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.ek-pse-ttl-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  background: #202329;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 195px;
  vertical-align: middle;
}

/* ---------- 5. MOBILANPASSNING (390px) – NOLL OVERFLOW, NOLL KROCK ---------- */
@media (max-width: 1120px) {
  .ek-pse-strip-in {
    flex-wrap: wrap;
    gap: 7px 12px;
  }
  .ek-pse-meta {
    flex-wrap: wrap;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .ek-pse-strip {
    padding: 6px 10px;
  }
  .ek-pse-strip-in {
    gap: 5px;
  }
  .ek-pse-meta {
    gap: 4px 6px;
  }
  .ek-pse-arch-tag {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }
  .ek-pse-ttl-tag {
    max-width: 100%;
    font-size: 10.5px;
    padding: 2px 8px;
  }
  .ek-pse-switcher-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .ek-pse-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .ek-pse-actions .ek-own-btn,
  .ek-pse-actions .ek-start-btn {
    width: 100%;
    padding: 7px 8px;
    font-size: 11.5px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  .ek-pse-coach-wrap {
    right: 10px;
    left: 10px;
    bottom: 78px;
    align-items: flex-end;
  }
  .ek-pse-coach-card {
    width: 100%;
    max-width: 100%;
  }
  .ek-pse-pling {
    top: 10px;
    bottom: auto;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
  }
  .ek-pse-org-row {
    flex-direction: column;
  }
  .ek-pse-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .ek-pse-modal {
    border-radius: 20px 20px 0 0;
    max-height: 88vh;
    padding: 18px 16px 24px;
  }
  .ek-form-lock-box,
  .ek-calc-lock-box {
    padding: 12px;
  }
  .ek-pse-unlock-btn {
    font-size: 12.5px;
    padding: 10px 12px;
  }
  .mob-cta,
  .mobile-bar a,
  .tel-pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
}
