/* Expressbladet Plus + Login — digital subscription & BankID identification UI */

.eb-pl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  padding: 20px;
  box-sizing: border-box;
}
.eb-pl-overlay.is-open {
  display: flex;
}
.eb-pl-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 22px 22px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  max-height: min(90vh, 740px);
  overflow: auto;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}
.eb-pl-dialog--plus {
  border-top: 6px solid #ffe000;
}
.eb-pl-dialog--login {
  border-top: 6px solid #e30613;
}
.eb-pl-dialog--login:has(.eb-pl-bankid-panel) {
  border-top: 0;
  padding: 0;
  overflow: hidden;
}
.eb-pl-dialog--login:has(.eb-pl-bankid-panel) .eb-pl-close {
  z-index: 2;
  color: #555;
}
.eb-pl-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  color: #111;
  padding: 4px 8px;
}
.eb-pl-close:hover { color: #e30613; }
.eb-pl-dialog h2 {
  margin: 0 40px 8px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  font-family: Arial, Helvetica, sans-serif;
}
.eb-pl-kicker {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #ffe000;
  color: #111;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.eb-pl-kicker--red {
  background: #e30613;
  color: #fff;
}
.eb-pl-lead {
  margin: 0 0 14px;
  color: #333;
  line-height: 1.45;
  font-size: 14px;
}
.eb-pl-steps {
  display: flex;
  gap: 6px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}
.eb-pl-step-dot {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eee;
  color: #666;
}
.eb-pl-step-dot.is-active {
  background: #ffe000;
  color: #111;
}
.eb-pl-dialog--login .eb-pl-step-dot.is-active {
  background: #e30613;
  color: #fff;
}
.eb-pl-step-dot.is-done {
  background: #111;
  color: #fff;
}
.eb-pl-benefits {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.eb-pl-benefits li {
  position: relative;
  padding: 9px 10px 9px 28px;
  margin: 0 0 6px;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.eb-pl-benefits li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 9px;
  color: #1a7a3a;
  font-size: 12px;
  font-weight: 900;
}
.eb-pl-plans {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}
.eb-pl-plan {
  display: block;
  width: 100%;
  text-align: left;
  border: 2px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  transition: border-color 0.12s, background 0.12s;
}
.eb-pl-plan:hover,
.eb-pl-plan.is-selected {
  border-color: #111;
  background: #fffdf0;
}
.eb-pl-plan.is-selected {
  box-shadow: inset 0 0 0 1px #111;
}
.eb-pl-plan strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 2px;
}
.eb-pl-plan span {
  font-size: 12px;
  color: #555;
  font-weight: 600;
}
.eb-pl-badge {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  background: #e30613;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eb-pl-form-row {
  margin: 0 0 10px;
}
.eb-pl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.eb-pl-form-row label {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #222;
}
.eb-pl-form-row input,
.eb-pl-form-row select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #bbb;
  border-radius: 8px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
}
.eb-pl-form-row input:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
  border-color: #111;
}
.eb-pl-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.35;
  font-family: Arial, Helvetica, sans-serif;
}
.eb-pl-check input { margin-top: 2px; }
.eb-pl-inline-link {
  color: #b90c14;
  text-decoration: underline;
}
.eb-pl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.eb-pl-actions--stack {
  flex-direction: column;
}
.eb-pl-actions--bankid {
  justify-content: space-between;
  padding: 0 4px;
  margin-top: 8px;
}
.eb-pl-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.2;
}
.eb-pl-btn--block {
  width: 100%;
  text-align: center;
}
.eb-pl-btn--primary {
  background: #e30613;
  color: #fff;
}
.eb-pl-btn--primary:hover { filter: brightness(0.95); }
.eb-pl-btn--yellow {
  background: #ffe000;
  color: #111;
}
.eb-pl-btn--yellow:hover { filter: brightness(0.97); }
.eb-pl-btn--ghost {
  background: #f3f3f3;
  color: #222;
  border: 1px solid #ccc;
}
.eb-pl-btn--ghost:hover { background: #e9e9e9; }
.eb-pl-btn--subtle {
  background: transparent;
  border-color: transparent;
  color: #555;
  font-weight: 600;
  text-decoration: underline;
}
.eb-pl-btn--subtle:hover {
  background: #f7f7f7;
  color: #111;
}
.eb-pl-btn--bankid {
  background: #1c2b36;
  color: #fff;
  border: 1px solid #1c2b36;
}
.eb-pl-btn--bankid:hover { background: #243744; }
.eb-pl-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  font-family: Arial, Helvetica, sans-serif;
}
.eb-pl-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f6ec;
  color: #1a7a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  margin: 8px 0 14px;
}

/* —— BankID identification panel —— */
.eb-pl-bankid-panel {
  background: #fff;
  padding: 20px 22px 18px;
  font-family: Arial, Helvetica, sans-serif;
}
.eb-pl-bankid-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8e8e8;
}
.eb-pl-bankid-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1c2b36;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.eb-pl-bankid-brand {
  font-size: 16px;
  font-weight: 800;
  color: #1c2b36;
  line-height: 1.1;
}
.eb-pl-bankid-sub {
  font-size: 12px;
  color: #667788;
  margin-top: 2px;
}
.eb-pl-bankid-title {
  margin: 0 0 14px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  text-align: center;
  color: #111;
}
.eb-pl-bankid {
  text-align: center;
  padding: 4px 0 8px;
}
.eb-pl-qr {
  width: 168px;
  height: 168px;
  margin: 0 auto 16px;
  border: 1px solid #d0d5d8;
  border-radius: 8px;
  background: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.eb-pl-qr-inner {
  position: absolute;
  inset: 14px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, #111 0, #111 1px, transparent 1px, transparent 7px),
    linear-gradient(#111 0, #111 1px, transparent 1px, transparent 7px),
    radial-gradient(circle at 20% 30%, #111 0 2px, transparent 2.5px),
    radial-gradient(circle at 70% 55%, #111 0 2px, transparent 2.5px),
    radial-gradient(circle at 45% 75%, #111 0 1.5px, transparent 2px),
    radial-gradient(circle at 82% 22%, #111 0 2px, transparent 2.5px),
    radial-gradient(circle at 35% 48%, #111 0 1.5px, transparent 2px);
  background-size:
    7px 7px,
    7px 7px,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  animation: eb-pl-qr-pulse 2.4s ease-in-out infinite;
}
.eb-pl-qr-finder {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #111;
  box-sizing: border-box;
  background:
    linear-gradient(#111, #111) center / 12px 12px no-repeat,
    #fff;
}
.eb-pl-qr-finder--tl { top: 10px; left: 10px; }
.eb-pl-qr-finder--tr { top: 10px; right: 10px; }
.eb-pl-qr-finder--bl { bottom: 10px; left: 10px; }
@keyframes eb-pl-qr-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}
.eb-pl-bankid-steps {
  list-style: none;
  margin: 0 auto 14px;
  padding: 0;
  max-width: 260px;
  text-align: left;
  counter-reset: bid;
}
.eb-pl-bankid-steps li {
  position: relative;
  padding: 5px 0 5px 28px;
  font-size: 13px;
  color: #333;
  line-height: 1.35;
  counter-increment: bid;
}
.eb-pl-bankid-steps li::before {
  content: counter(bid);
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1c2b36;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-align: center;
}
.eb-pl-bankid .eb-pl-status {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin: 10px 0 6px;
  color: #1c2b36;
  min-height: 1.3em;
}
.eb-pl-orderref {
  margin: 0 0 4px;
  font-size: 11px;
  color: #8899a6;
  font-family: Arial, Helvetica, sans-serif;
  word-break: break-all;
}
.eb-pl-orderref code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: #556677;
  background: #f4f6f8;
  padding: 2px 5px;
  border-radius: 4px;
}

.eb-pl-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 10060;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: min(92vw, 420px);
  text-align: center;
}
.eb-pl-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.eb-pl-banner {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #111;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  padding: 8px 36px 8px 12px;
  border-bottom: 2px solid #e30613;
}
.eb-pl-banner button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
  font-size: 18px;
  color: #fff;
}
body.eb-pl-lock { overflow: hidden; }

@media (max-width: 420px) {
  .eb-pl-dialog { padding: 18px 16px 14px; }
  .eb-pl-bankid-panel { padding: 18px 16px 14px; }
  .eb-pl-qr { width: 148px; height: 148px; }
}
