.bp {
  --bp-svart: #141312; --bp-text: #2a2826; --bp-dov: #6b665f; --bp-svag: #9a958d; --bp-linje: #e6e2db;
  --bp-falt: #d3ccc2; --bp-platta: #f4f2ee; --bp-guld: #ccab76; --bp-guld-ljus: #ead9b2; --bp-guld-mork: #8a6a36;
  --bp-fel: #b3261e; --bp-gron: #00b67a;
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  font-family: var(--brod); color: var(--bp-text);
}
.bp[hidden] { display: none !important; }
.bp-skugga { position: absolute; inset: 0; background: rgba(20, 19, 18, .52); opacity: 0; transition: opacity .22s ease; }
.bp-ruta {
  position: relative; width: min(472px, 100%); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(20, 19, 18, .45), 0 2px 8px rgba(20, 19, 18, .08);
  padding: 46px 44px 34px; opacity: 0; transform: scale(.985); transition: opacity .24s ease, transform .24s cubic-bezier(.2, .7, .2, 1);
  outline: none;
}
.bp[data-lage="oppen"] .bp-skugga { opacity: 1; }
.bp[data-lage="oppen"] .bp-ruta { opacity: 1; transform: none; }
.bp-linje { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bp-platta); }
.bp-linje span { display: block; height: 100%; width: 50%; border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, var(--bp-guld-ljus), var(--bp-guld)); transition: width .5s cubic-bezier(.3, .7, .2, 1); }
.bp[data-steg="2"] .bp-linje span { width: 100%; border-radius: 0; }
.bp-stang { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 0;
  border-radius: 50%; background: transparent; color: var(--bp-dov); cursor: pointer; padding: 0; transition: background .15s, color .15s; }
.bp-stang:hover { background: var(--bp-platta); color: var(--bp-svart); }
.bp-stang svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.bp-steg { animation: bp-fram .22s ease both; }
@keyframes bp-fram { from { opacity: 0; } to { opacity: 1; } }
.bp-etikett { margin: 0 0 12px; text-align: center; font: 500 11.5px/1 var(--brod); letter-spacing: .14em; text-transform: uppercase; color: var(--bp-guld-mork); }
.bp-rubrik { margin: 0; text-align: center; font: 500 32px/1.12 var(--rubrik); letter-spacing: -.035em; color: var(--bp-svart); }
.bp-under { margin: 12px 0 0; text-align: center; font-size: 16px; line-height: 1.5; color: var(--bp-dov); }
.bp-hel { white-space: nowrap; }
.bp-under, .bp-tips { text-wrap: pretty; }
.bp-skickas { margin: 10px 0 0; display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--bp-text); }
.bp-prick { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--bp-gron); box-shadow: 0 0 0 3px rgba(0, 182, 122, .14); }
.bp-form { margin: 30px 0 0; }
.bp-falt { position: relative; margin: 0 0 14px; }
.bp-falt input {
  display: block; width: 100%; height: 60px; margin: 0; padding: 23px 52px 7px 52px; border: 1px solid var(--bp-falt); border-radius: 14px;
  background: #fff; font: 400 16px/1.2 var(--brod); color: var(--bp-svart); -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.bp-falt input:hover { border-color: #b9b1a5; }
.bp-falt input:focus { border-color: var(--bp-svart); outline: none; box-shadow: none; }
.bp-falt input::placeholder { color: transparent; }
.bp-falt input:focus::placeholder { color: var(--bp-svag); }
.bp-falt label {
  position: absolute; left: 52px; top: 20px; font-size: 16px; line-height: 20px; color: var(--bp-dov); pointer-events: none;
  transform-origin: 0 50%; transition: transform .15s ease, color .15s ease;
}
.bp-falt input:focus + label, .bp-falt input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(.78); color: var(--bp-dov); }
.bp-falt .bp-ikon { position: absolute; left: 19px; top: 19px; width: 22px; height: 22px; fill: none; stroke: var(--bp-dov); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.bp-falt.bp-fel-falt input { border-color: var(--bp-fel); }
.bp-falt.bp-ok input:not(:focus) { border-color: var(--bp-falt); }
.bp-bock-falt { position: absolute; right: 18px; top: 19px; width: 22px; height: 22px; fill: none; stroke: var(--bp-guld-mork); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .15s; pointer-events: none; }
.bp-falt.bp-ok .bp-bock-falt { opacity: 1; }
.bp-falt.bp-har-info .bp-bock-falt { right: 52px; }
.bp-info { position: absolute; right: 12px; top: 14px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--bp-dov); cursor: pointer; display: grid; place-items: center; transition: background .15s, color .15s; }
.bp-info:hover, .bp-info[aria-expanded="true"] { background: var(--bp-platta); color: var(--bp-svart); }
.bp-info svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.bp-tips { margin: -4px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--bp-platta); font-size: 14px; line-height: 1.5; color: var(--bp-text); }
.bp-felrad { margin: -6px 0 12px 4px; font-size: 13.5px; line-height: 1.4; color: var(--bp-fel); }
.bp-felrad:empty { display: none; }
.bp-falla { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bp .knapp.bp-knapp, .bp .knapp.bp-oppna {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 58px; margin: 22px 0 0; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--bp-svart); color: #fff; cursor: pointer; font: 500 13px/1 var(--brod);
  letter-spacing: .12em; text-transform: uppercase; transition: background .15s;
}
.bp .knapp.bp-knapp:hover, .bp .knapp.bp-oppna:hover { background: #2c2a27; }
.bp .knapp.bp-oppna { display: none; }
.bp .knapp .bankid { flex: none; width: 23px; height: 16px; fill: currentColor; stroke: none; }
.bp-not { margin: 12px 0 0; text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--bp-dov); }
.bp-marken { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--bp-linje); display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; }
.bp-marken li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; line-height: 1.3; color: var(--bp-text); }
.bp-marken svg { flex: none; width: 22px; height: 22px; }
.bp-marken circle { fill: #f6efe2; stroke: none; }
.bp-marken path { fill: none; stroke: var(--bp-guld-mork); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bp-bankid-logga { display: block; width: 44px; height: auto; margin: 0 auto 16px; }
.bp-qr { position: relative; width: 212px; height: 212px; margin: 26px auto 0; padding: 14px; border: 1px solid var(--bp-linje); border-radius: 18px; background: #fff; }
.bp-qr svg { display: block; width: 100%; height: 100%; fill: var(--bp-svart); stroke: none; shape-rendering: crispEdges; }
.bp-status { margin: 18px 0 0; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--bp-text); }
.bp-vantar { flex: none; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--bp-guld); }
.bp-vantar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--bp-guld); opacity: 0; animation: bp-puls 1.8s ease-out infinite; }
@keyframes bp-puls { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.bp-lankar { margin: 22px 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.bp-lank { border: 0; background: none; padding: 0; cursor: pointer; font: 500 12px/1.4 var(--brod); letter-spacing: .12em; text-transform: uppercase;
  color: var(--bp-svart); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.bp-lank-dov { color: var(--bp-dov); }
.bp-telefon { display: none; }
.bp-dator { display: block; }
@media (max-width: 600px), (hover: none) and (pointer: coarse) and (max-width: 900px) {
  .bp-telefon { display: block; }
  .bp-dator { display: none; }
  .bp[data-qr="ja"] .bp-dator { display: block; }
  .bp[data-qr="ja"] .bp-telefon-bara { display: none; }
  .bp .knapp.bp-oppna { display: flex; margin-top: 28px; }
  .bp[data-qr="ja"] .knapp.bp-oppna { display: none; }
}
@media (max-width: 600px) {
  .bp { padding: 0; place-items: stretch; }
  .bp-ruta { width: 100%; max-height: none; height: 100%; border-radius: 0; padding: 66px 22px 32px; transform: none; box-shadow: none; }
  .bp-stang { top: 14px; right: 12px; }
  .bp-rubrik { font-size: 28px; }
  .bp-under { font-size: 15.5px; }
  .bp-marken { gap: 10px 16px; }
  .bp-marken li { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-skugga, .bp-ruta, .bp-linje span, .bp-falt label, .bp-steg { transition: none; animation: none; }
  .bp-vantar::after { animation: none; opacity: 0; }
}
.bp-qr img { display: block; width: 100%; height: 100%; }
.bp-qr img:not([src]) { visibility: hidden; }
.bp-steg.gx-bankid-sjalv .bp-qr,
.bp-steg.gx-bankid-sjalv .bp-under.bp-dator,
.bp-steg.gx-bankid-sjalv [data-bp-samma] { display: none; }
.bp-steg.gx-bankid-sjalv [data-bp-visa-qr] { display: block; }
.bp-form .gx-bankid[hidden] { display: none; }
.bp-form .form-svar { margin: 14px 0 0; text-align: center; font: 400 14px/1.45 var(--brod); color: var(--bp-text); }
.bp-form .form-svar[hidden] { display: none; }
.bp-form .form-svar.form-svar-fel { color: #a8321f; }
