body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.obraz-kontener {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.planer-image {
  max-width: 100%;
  width: 100%;
  display: block;
  transition: filter 0.3s ease, opacity 0.18s ease;
}

.planer-image.blurred {
  filter: blur(8px);
}

.kup-hotspot {
  position: absolute;
  left: 34.8%;
  width: 30.4%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.kup-hotspot-1 {
  top: 20.84%;
  height: 1.1%;
}

.kup-hotspot-2 {
  top: 45.35%;
  height: 1.1%;
}

.kup-hotspot-3 {
  top: 95.59%;
  height: 1.1%;
}

.kup-hotspot:disabled {
  cursor: not-allowed;
}

/* PROMOCJA KOD RABATOWY (START365) — usuń cały ten blok razem z 3 znacznikami
   <img class="kod-rabatowy ..."> w View.php, żeby zdjąć promocję. Obrazki są
   position:absolute, więc usunięcie nie przesuwa/nie psuje reszty widoku. */
.kod-rabatowy {
  position: absolute;
  left: 31.2%;
  width: 37.3%;
  pointer-events: none;
}

.kod-rabatowy-1 {
  top: 22.01%;
}

.kod-rabatowy-2 {
  top: 47.29%;
}

.kod-rabatowy-3 {
  top: 96.7%;
}
/* /PROMOCJA KOD RABATOWY */

.wyprzedane-badge {
  position: absolute;
  top: 45.35%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.4rem 1.2rem;
  background: rgba(225, 11, 25, 0.9);
  color: #EEEEEB;
  font-weight: bold;
  text-align: center;
  border-radius: 0.25rem;
  pointer-events: none;
}

.informacje, .wyprzedane, .wynik-zamowienia {
  max-width: 500px;
  text-align: center;
  margin: 1.5rem 0;
}

.uwaga {
  font-weight: bold;
}

.ostrzezenie {
  color: #b91c1c;
  font-weight: bold;
}

.modal-tlo {
  position: fixed;
  inset: 0;
  background: rgba(30, 30, 30, 0.45);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-tlo:not([hidden]) {
  display: flex;
}

.modal {
  position: relative;
  background: #EEEEEB;
  border: 2px solid #3553A0;
  padding: 1.5rem;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-zamknij {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #3553A0;
  font-weight: bold;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

#modal-tytul {
  color: #3553A0;
  font-weight: bold;
  font-style: italic;
  margin: 0 0 1rem;
}

.formularz-zamowienia {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.formularz-zamowienia label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.formularz-zamowienia label.zgoda {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
}

.formularz-zamowienia label.zgoda input {
  flex-shrink: 0;
}

.formularz-zamowienia label.zgoda span {
  flex: 1;
  min-width: 0;
}

.blad {
  color: #b91c1c;
  margin: 0;
  font-size: 0.9rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stepper input[type="number"] {
  width: 3.5rem;
  text-align: center;
}

.stepper-minus, .stepper-plus {
  background: #fff;
  color: #3553A0;
  font-weight: bold;
  border: 1px solid #b9b9b3;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
}

.rozbicie-ceny {
  border: 1px dashed #3553A0;
  padding: 0.5rem 0.75rem;
  color: #3553A0;
  font-size: 0.9rem;
}

.rozbicie-wiersz {
  display: flex;
  justify-content: space-between;
}

.rozbicie-razem {
  font-weight: bold;
  border-top: 1px solid #3553A0;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.przycisk-kup {
  background: #F5C4DA;
  color: #E10B19;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  padding: 0.75rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .modal-tlo {
    align-items: flex-end;
  }

  .modal {
    max-width: none;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
    max-height: 85vh;
  }
}
