


.order-panel {
  --panel-bg: var(--pearl);
  --panel-glow: rgba(139, 92, 246, 0.18);

  background: var(--panel-bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px var(--panel-glow);
}
.order-panel__kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silverblue);
  margin-bottom: 8px;
}
.order-panel__title { font-size: 20px; margin-bottom: 8px; }
.order-panel__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.order-panel__now { font-size: 27px; font-weight: 900; color: var(--plum); }
.order-panel__was { font-size: 15px; color: var(--silverblue); text-decoration: line-through; }
.order-panel__note { font-size: 13px; color: var(--silverblue); line-height: 1.5; margin-bottom: 16px; }
.order-panel__facts { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--hairline); padding-top: 16px; }
.order-panel__facts li { font-size: 13px; color: var(--plum-soft); margin-bottom: 8px; }
.order-panel__phone { display: block; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--plum); }

.order-panel__form { margin-top: 16px; }


.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--plum); margin-bottom: 8px; }
.field__input {
  --input-border: 1px solid var(--hairline);
  --input-bg: #ffffff;

  width: 100%;
  background: var(--input-bg);
  border: var(--input-border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field__input:focus { outline: none; --input-border: 1px solid var(--lilac-glow); box-shadow: 0 0 0 4px var(--halo); }
.field__hint { font-size: 13px; color: var(--silverblue); margin-top: 8px; margin-bottom: 0; }
.field--consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--plum-soft); }
.field--consent input { margin-top: 4px; min-width: 18px; min-height: 18px; accent-color: var(--plum); }
.field--consent label { line-height: 1.5; }

.form-notice {
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.5;
}
.form-notice--error { background: #fdf2f6; border: 1px solid #e8c4d6; color: #8a2b52; }
.form-notice--done { background: var(--lilac); border: 1px solid #d9c7ee; color: var(--plum); }
.form-notice__title { font-size: 17px; margin-bottom: 8px; }
.form-notice ul { margin: 8px 0 0; padding-left: 20px; }


.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.order-modal.is-open { display: flex; }
.order-modal__scrim { position: absolute; inset: 0; background: rgba(43, 18, 38, 0.62); }
.order-modal__sheet {
  position: relative;
  width: 460px;
  max-width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(43, 18, 38, 0.4);
}
.order-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--plum);
  cursor: pointer;
  border-radius: 16px;
  transition: background 0.3s ease;
}
.order-modal__close:hover { background: var(--lilac); }
.order-modal__title { font-size: 24px; margin-bottom: 8px; }
.order-modal__lede { font-size: 15px; color: var(--plum-soft); margin-bottom: 16px; }


.bag-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.bag-line__thumb { width: 96px; border-radius: 12px; display: block; background: var(--lilac); }
.bag-line__name { font-size: 17px; font-weight: 700; color: var(--plum); margin-bottom: 8px; }
.bag-line__meta { font-size: 13px; color: var(--silverblue); margin: 0; }
.bag-line__sum { font-size: 22px; font-weight: 900; color: var(--plum); white-space: nowrap; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; margin-top: 8px; }
.stepper__btn {
  min-width: 44px;
  min-height: 44px;
  border: none;
  background: #ffffff;
  color: var(--plum);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.stepper__btn:hover { background: var(--lilac); }
.stepper__value { min-width: 44px; text-align: center; font-weight: 700; font-size: 16px; }

.bag-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-size: 18px; }
.bag-total--minor { font-size: 15px; padding: 4px 0; color: var(--plum-soft); }
.bag-total--minor span:last-child { font-weight: 700; color: var(--plum); }
.bag-total__value { font-size: 27px; font-weight: 900; color: var(--plum); }
.bag-empty { text-align: center; padding: 48px 16px; }
.bag-empty p { color: var(--silverblue); margin-bottom: 16px; }

.summary {
  background: var(--pearl);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 24px;
}
.summary__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
.summary__row:last-of-type { border-bottom: none; }
.summary__thumb { width: 100%; border-radius: 12px; margin-bottom: 16px; display: block; }


.spec { margin-bottom: 24px; }
.spec th, .spec td { overflow-wrap: anywhere; word-break: break-word; }
.spec caption { text-align: left; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silverblue); padding-bottom: 8px; }


.fold__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fold__toggle { display: none; }

@media (max-width: 768px) {
  .fold__body { display: none; }
  .fold.is-open .fold__body { display: block; }
  .fold__head { border-bottom: 1px solid var(--hairline); padding-bottom: 8px; cursor: pointer; }
  .fold__toggle {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: none;
    color: var(--lilac-glow);
    font-size: 24px;
    cursor: pointer;
  }
  .fold.is-open .fold__toggle { transform: rotate(45deg); }
  .bag-line { grid-template-columns: 72px 1fr; }
  .bag-line__thumb { width: 72px; }
  .bag-line__sum { grid-column: 1 / -1; }
  .order-modal__sheet { padding: 24px 16px; }
}
