/* =========================================
   PIZZA INN – PIZZA ANPASSEN
   ========================================= */

.pizza-customizer {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pizza-customizer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pizza-customizer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 22, 18, 0.64);
  backdrop-filter: blur(5px);
}

.pizza-customizer-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(820px, calc(100dvh - 44px));
  padding: 32px;
  overflow-y: auto;
  color: #211b18;
  background: #f8f4ee;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}

.pizza-customizer.is-open .pizza-customizer-panel {
  transform: translateY(0) scale(1);
}

.pizza-customizer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #211b18;
  background: #ffffff;
  border: 1px solid rgba(33, 27, 24, 0.1);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
}

.pizza-customizer-eyebrow {
  margin: 0 0 8px;
  color: #b73224;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.pizza-customizer h2 {
  max-width: calc(100% - 55px);
  margin: 0;
  color: #211b18;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.pizza-customizer-subtitle {
  margin: 13px 0 24px;
  color: #716860;
  line-height: 1.5;
}

.pizza-extra-groups {
  display: grid;
  gap: 15px;
}

.pizza-extra-group {
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(33, 27, 24, 0.08);
  border-radius: 12px;
}

.pizza-extra-group h3 {
  margin: 0 0 11px;
  color: #a83021;
  font-size: 0.79rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pizza-extra-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  padding: 7px 0;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
}

.pizza-extra-option + .pizza-extra-option {
  border-top: 1px solid rgba(33, 27, 24, 0.07);
}

.pizza-extra-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #c23a2c;
}

.pizza-extra-option strong {
  color: #c23a2c;
  white-space: nowrap;
  font-size: 0.86rem;
}

.pizza-customizer-note-label {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 800;
}

.pizza-customizer-note-label textarea {
  min-height: 90px;
  padding: 12px;
  color: #211b18;
  background: #ffffff;
  border: 1px solid #d9d0c5;
  border-radius: 9px;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.pizza-customizer-note-label textarea:focus {
  border-color: #b73224;
  outline: 3px solid rgba(183, 50, 36, 0.14);
}

.pizza-customizer-allergy {
  margin: 17px 0 0;
  padding: 12px 14px;
  color: #805513;
  background: #faefcf;
  border-radius: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.45;
}

.pizza-customizer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 21px;
  border-top: 1px solid rgba(33, 27, 24, 0.12);
}

.pizza-customizer-footer span {
  display: block;
  margin-bottom: 3px;
  color: #716860;
  font-size: 0.8rem;
  font-weight: 800;
}

.pizza-customizer-footer strong {
  color: #b73224;
  font-size: 1.65rem;
}

.pizza-customizer-add {
  min-height: 52px;
  padding: 0 19px;
  color: #ffffff;
  background: #b73224;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pizza-customizer-add:hover {
  background: #922115;
  transform: translateY(-2px);
}

body.pizza-customizer-open {
  overflow: hidden;
}

.order-item-extras,
.order-item-note {
  margin: 7px 0 0;
  color: #716860;
  font-size: 0.77rem;
  line-height: 1.4;
}

.order-item-note {
  color: #9b3323;
  font-weight: 700;
}

@media (max-width: 600px) {
  .pizza-customizer {
    padding: 12px;
  }

  .pizza-customizer-panel {
    max-height: calc(100dvh - 24px);
    padding: 24px 18px;
    border-radius: 16px;
  }

  .pizza-customizer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pizza-customizer-add {
    width: 100%;
  }
}

