/* Dish configurator: selected product and basket action precede related dishes. */
.aw-body #productModal.aw-details .modal-dialog { width: min(680px,calc(100% - 32px)); max-width: 680px; margin: 20px auto; min-height: calc(100% - 40px); }
.aw-body .aw-details .modal-content { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); overflow: hidden; border: 0; }
.aw-details__bar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--aw-line); font-weight: 700; }
.aw-details__bar button { font-size: 28px; }
.aw-details__scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.aw-details__cover { position: relative; width: 100%; aspect-ratio: 1.6; background: #080808; }
.aw-details__cover img, .aw-details__cover video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.aw-details__intro { padding: 22px; }
.aw-body #productModal .aw-details__intro h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.3; color: var(--aw-ink); overflow-wrap: anywhere; }
.aw-details__intro > strong { color: var(--aw-accent); font-size: 20px; }
.aw-details__intro p { white-space: pre-line; text-transform: none; color: var(--aw-muted); margin: 12px 0 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.aw-details__section { padding: 20px 22px; border-top: 8px solid var(--aw-paper); }
.aw-body #productModal .aw-details__section h3, .aw-details__section > label { display: block; color: var(--aw-ink); font-size: 17px; font-weight: 750; line-height: 1.4; margin: 0 0 10px; }
.aw-details__section > small { display: block; font-size: 12px; line-height: 1.5; color: var(--aw-muted); margin-bottom: 8px; }
.aw-details__section textarea { width: 100%; padding: 12px; border: 1px solid var(--aw-line); border-radius: 10px; background: var(--aw-paper); font: inherit; font-size: 14px; color: var(--aw-ink); resize: vertical; }
.aw-detail-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--aw-line); }
.aw-detail-row:last-child { border-bottom: 0; }
.aw-detail-row > img { width: 58px; height: 58px; flex: 0 0 58px; border-radius: 10px; object-fit: cover; }
.aw-detail-row__body { min-width: 0; flex: 1; }
.aw-detail-row__body > strong { display: block; white-space: normal; font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.aw-detail-row__price { display: block; color: var(--aw-muted); font-size: 13px; margin-top: 4px; }
.aw-detail-select { max-width: 100%; width: 100%; min-height: 44px; border: 1px solid var(--aw-line); border-radius: 8px; padding: 8px; background: white; font: inherit; font-size: 14px; color: var(--aw-ink); }
.aw-detail-row__body .aw-detail-select { margin-top: 8px; }
.aw-stepper { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; border: 1px solid var(--aw-line); border-radius: 24px; background: white; }
.aw-stepper button { display: grid; place-items: center; min-width: 36px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--aw-accent); font-size: 24px; line-height: 1; border-radius: 50%; }
.aw-stepper button:disabled { color: #aaa; cursor: default; }
.aw-stepper output { min-width: 18px; margin: 0; text-align: center; font-size: 14px; }
.aw-stepper input { width: 46px; padding: 0; border: 0; margin: 0; text-align: center; font-size: 16px; appearance: textfield; }
.aw-stepper input::-webkit-inner-spin-button { appearance: none; }
.aw-details__footer { flex: 0 0 auto; padding: 12px 22px max(14px,env(safe-area-inset-bottom)); border-top: 1px solid var(--aw-line); box-shadow: 0 -6px 20px #00000008; background: white; }
.aw-details__quantity { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 12px; font-size: 14px; }
.aw-details__quantity label { margin: 0; }
.aw-details__submit { width: 100%; display: flex; justify-content: space-between; gap: 12px; min-height: 52px; }
.aw-details__submit:disabled { opacity: .5; cursor: default; }
#aw-detail-error { color: #a40025; font-size: 13px; max-height: 70px; overflow: auto; margin: 0 0 8px; }
@media (max-width: 600px) {
    .aw-body #productModal.aw-details .modal-dialog { width: 100%; max-width: none; min-height: 100%; margin: 0; }
    .aw-body .aw-details .modal-content { height: 100dvh; max-height: 100dvh; border-radius: 0; }
    .aw-details__bar { padding-top: max(8px,env(safe-area-inset-top)); }
    .aw-details__intro, .aw-details__section { padding: 18px 16px; }
    .aw-details__footer { padding-inline: 16px; }
    .aw-detail-row { gap: 8px; }
    .aw-detail-row > img { width: 44px; height: 44px; flex-basis: 44px; }
    .aw-detail-row__body { flex-basis: 0; }
    .aw-detail-row > .aw-stepper button { min-width: 32px; }
}
