.preorder-head { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-bottom: 1px solid #2a2a2e; position: sticky; top: 0; background: var(--bg); z-index: 20; }
.preorder-head .back { color: var(--primary); font-size: 24px; text-decoration: none; }
.preorder-head h1 { font-size: 18px; color: var(--primary); }

.tabs { top: 65px; }

/* На странице предзаказа section-tabs идёт под шапкой */
.preorder-head ~ .section-tabs { top: 61px; }
.preorder-head ~ .tabs { top: 113px; }

/* add controls inside item */
.item-controls { margin-top: 10px; }
.time-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.time-row label { font-size: 12px; color: var(--muted); }
.time-row input { background: #2a2a2e; border: 1px solid #3a3a3e; color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 13px; }

/* Bottom sheet */
.sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 60; }
.sheet-overlay.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg); border-radius: 20px 20px 0 0; max-height: 88vh; overflow-y: auto; transform: translateY(100%); transition: transform .3s; z-index: 70; padding: 16px 16px 40px; }
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 44px; height: 4px; background: #444; border-radius: 999px; margin: 0 auto 14px; }
.sheet h2 { font-size: 20px; margin-bottom: 14px; color: var(--primary); }
.sheet h3 { font-size: 15px; margin: 18px 0 10px; }

.cart-line { background: var(--card); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-line-name { font-weight: 600; }
.cart-line-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-line-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; gap: 8px; }
.cart-time { display:flex; align-items:center; gap:6px; font-size: 12px; color: var(--muted); }
.cart-time input { background: #2a2a2e; border: 1px solid #3a3a3e; color: var(--text); border-radius: 8px; padding: 5px 7px; font-size: 13px; }
.cart-empty { color: var(--muted); text-align: center; padding: 30px 0; }

.form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.form input { width: 100%; margin-top: 6px; background: var(--card); border: 1px solid #3a3a3e; color: var(--text); border-radius: 10px; padding: 12px; font-size: 15px; }
.send-btn { width: 100%; padding: 15px; font-size: 16px; margin-top: 8px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }

.remove-x { background: none; border: none; color: #ff6b6b; font-size: 20px; cursor: pointer; line-height: 1; }

/* Поле телефона с несъёмным +7 */
.phone-wrap { display: flex; align-items: center; gap: 8px; margin-top: 6px; background: var(--card); border: 1px solid #3a3a3e; border-radius: 10px; padding: 0 12px; }
.phone-prefix { color: var(--text); font-size: 15px; font-weight: 600; flex-shrink: 0; }
.phone-wrap input { border: none !important; background: transparent !important; padding: 12px 0 !important; margin: 0 !important; flex: 1; }

/* select VIP */
.form select { width: 100%; margin-top: 6px; background: var(--card); border: 1px solid #3a3a3e; color: var(--text); border-radius: 10px; padding: 12px; font-size: 15px; }

/* обязательное время в корзине */
.cart-time { flex-direction: column; align-items: flex-start; gap: 4px; }
.cart-time label { font-size: 12px; color: var(--muted); }
.cart-time .req { color: #ff6b6b; }
.cart-time input[type=time] { background: #2a2a2e; border: 1px solid #3a3a3e; color: var(--text); border-radius: 8px; padding: 6px 8px; font-size: 14px; }
