.bestallningsformular [hidden], .betalruta [hidden] { display: none !important; }
.bestallningsformular .betalruta:empty { display: none; }
.betalruta {
  background: #F7E1EA; border: 2px solid #A8336B; border-radius: 18px;
  padding: 1.25rem 1.4rem; margin: .5rem 0 1.5rem; color: #2B2622;
}
.betalruta p { margin: 0 0 .75rem; }
.betalruta-rubrik, .tack-rubrik { font-family: var(--wp--preset--font-family--vollkorn, Georgia, serif); font-size: 1.35rem; font-weight: 700; color: #A8336B; }
.tack-rubrik { font-size: 1.7rem; }
.betalruta .belopp {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem;
  background: #FFFBF4; border-radius: 12px; padding: .75rem 1rem; margin-bottom: .9rem;
}
.betalruta .belopp strong { font-size: 2rem; line-height: 1; color: #2B2622; }
.betalruta .belopp small { flex-basis: 100%; color: #6A5D51; }
.betalrad {
  display: grid; grid-template-columns: 8.5rem 1fr auto; align-items: center; gap: .6rem;
  padding: .55rem 0; border-bottom: 1px dashed rgba(168, 51, 107, .35);
}
.betalrad .etikett { color: #6A5D51; font-size: .95rem; }
.betalrad .varde { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.betalruta .kopiera {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  background: #A8336B; color: #fff; border: 0; border-radius: 999px; padding: .4rem .95rem;
}
.betalruta .kopiera:hover, .betalruta .kopiera:focus-visible { background: #8c2858; }
.betalruta .kopiera.kopierat { background: #4F7A2E; }
.swish-qr { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .5rem; }
.swish-qr img { background: #fff; border-radius: 10px; padding: 6px; flex: 0 0 auto; width: 170px; height: auto; }
.swish-qr figcaption { font-size: .95rem; }
.betalruta-not { font-size: .95rem; margin-top: .75rem !important; }
@media (max-width: 600px) {
  .betalrad { grid-template-columns: 1fr auto; }
  .betalrad .etikett { grid-column: 1 / -1; margin-bottom: -.4rem; }
  .swish-qr { flex-direction: column; align-items: flex-start; }
}

/* Öppna Swish-knappen: bara på pekskärmar (mobil och surfplatta), inte på datorer med mus */
.swish-app { margin: 0 0 1rem; text-align: center; }
.swish-app .swish-knapp {
  display: block; box-sizing: border-box; width: 100%; padding: 1rem 1.25rem;
  background: #A8336B; color: #fff !important; text-decoration: none; border-radius: 999px;
  font-weight: 700; font-size: 1.15rem; line-height: 1.25;
  box-shadow: 0 6px 18px rgba(168, 51, 107, .35);
}
.swish-app .swish-knapp:active { background: #8c2858; }
.swish-app small { display: block; margin-top: .45rem; font-size: .9rem; color: #6A5D51; }
@media (hover: hover) and (pointer: fine) { .swish-app { display: none; } }

/* Fakturauppgifter och leveransadress */
.fakturafalt {
  display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem;
  background: var(--wp--preset--color--accent-5, #C8F4B9); border-radius: 16px; padding: 1rem 1.2rem .4rem; margin: 0 0 1.5rem;
}
.fakturafalt p { margin: 0 0 .7rem; }
.fakturafalt .ff-rubrik { grid-column: 1 / -1; font-weight: 700; margin-bottom: .2rem; }
.fakturafalt .ff-hel { grid-column: 1 / -1; }
.fakturafalt .ff-postort { grid-column: 1 / -1; }
.fakturafalt .ff-postort p { display: grid; grid-template-columns: 8rem 1fr; gap: 0 1rem; }
.fakturafalt .ff-postort label { display: block; }
.fakturafalt label { font-size: .95rem; }
.fakturafalt input { width: 100%; }
.fakturafalt .falt-saknas { border-color: #b3261e !important; box-shadow: 0 0 0 2px rgba(179, 38, 30, .15); }
.fakturafalt .ff-info { grid-column: 1 / -1; color: #b3261e; font-size: .9rem; }
@media (max-width: 600px) {
  .fakturafalt { grid-template-columns: 1fr; }
}

/* Steg: 1 Beställ, 2 Betala */
.bestall-steg { display: flex; align-items: center; list-style: none; padding: 0; margin: 0 0 1.25rem; counter-reset: steg; font-size: .95rem; }
.bestall-steg[hidden] { display: none; }
.bestall-steg li { counter-increment: steg; display: flex; align-items: center; gap: .45rem; color: #6A5D51; white-space: nowrap; position: relative; }
.bestall-steg li + li { margin-left: 3rem; }
.bestall-steg li + li::after { content: ""; position: absolute; left: -2.5rem; top: 50%; width: 2rem; height: 2px; background: #e3d6c4; }
.bestall-steg li::before { content: counter(steg); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--wp--preset--color--accent-5, #C8F4B9); color: #2B2622; font-weight: 700; font-size: .85rem; }
.bestall-steg li.aktiv { color: #2B2622; font-weight: 700; }
.bestall-steg li.aktiv::before { background: #A8336B; color: #fff; }
.bestall-steg li.klar::before { content: "\2713"; background: #4F7A2E; color: #fff; }
.betalruta-tack:focus { outline: none; }
