/* Topping picker (addons-sheet.js): bottom sheet on phones, centred card on larger screens. */
.qka { --qka-accent: #7a3b12; position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end; justify-content: center; font-family: inherit; }
.qka-lock { overflow: hidden; }
.qka-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.2s ease; }
.qka.is-open .qka-backdrop { opacity: 1; }
.qka-panel { position: relative; width: 100%; max-width: 520px; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25); transform: translateY(100%); transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1); color: #251c13; }
.qka.is-open .qka-panel { transform: none; }
.qka-grab { width: 38px; height: 4px; border-radius: 4px; background: #e2d6c4; margin: 8px auto 0; flex: none; }
.qka-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1.1rem 0.7rem; border-bottom: 1px solid #eee6da; flex: none; }
.qka-title { margin: 0; font-size: 1.12rem; line-height: 1.25; font-weight: 800; color: #251c13; }
.qka-sub { margin: 0.15rem 0 0; font-size: 0.82rem; color: #7b6b59; }
.qka-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f6f0e7; color: #625443; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.qka-x:hover { background: #eee6da; }
.qka-body { overflow-y: auto; overscroll-behavior: contain; padding: 0.4rem 1.1rem 0.9rem; flex: 1; -webkit-overflow-scrolling: touch; }
.qka-group { padding: 0.85rem 0 0.35rem; border-radius: 12px; }
.qka-group + .qka-group { border-top: 8px solid #fcf9f4; margin: 0.6rem -1.1rem 0; padding: 0.85rem 1.1rem 0.35rem; }
.qka-group-head { display: flex; align-items: center; gap: 0.5rem; }
.qka-group-head h3 { margin: 0; font-size: 0.98rem; font-weight: 800; color: #251c13; }
.qka-badge { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.14rem 0.5rem; border-radius: 999px; background: #f6f0e7; color: #7b6b59; }
.qka-badge.is-req { background: #eee6da; color: #e65100; }
.qka-group.is-unmet .qka-badge.is-req { background: #ffebee; color: #b71c1c; }
.qka-rule { margin: 0.1rem 0 0.35rem; font-size: 0.78rem; color: #a2917c; }
.qka-group.is-unmet .qka-rule { color: #b71c1c; font-weight: 600; }
.qka-opts { display: flex; flex-direction: column; }
.qka-opt { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.75rem; width: 100%; padding: 0.78rem 0.1rem; border: 0; border-bottom: 1px solid #f6f0e7; background: transparent; font: inherit; text-align: left; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.qka-opt:last-child { border-bottom: 0; }
.qka-opt-label { font-size: 0.95rem; font-weight: 600; color: #251c13; }
.qka-opt-price { font-size: 0.85rem; font-weight: 600; color: #7b6b59; }
.qka-mark { width: 22px; height: 22px; border: 2px solid #c6b8a4; background: #fff; position: relative; transition: all 0.12s ease; }
.qka-opt.is-radio .qka-mark { border-radius: 50%; }
.qka-opt.is-check .qka-mark { border-radius: 6px; }
.qka-opt.is-on .qka-mark { border-color: var(--qka-accent); background: var(--qka-accent); }
.qka-opt.is-on.is-radio .qka-mark::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.qka-opt.is-on.is-check .qka-mark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qka-opt.is-on .qka-opt-label { color: #251c13; }
.qka-opt.is-locked { opacity: 0.45; cursor: not-allowed; }
.qka-opt:focus-visible { outline: 2px solid var(--qka-accent); outline-offset: 2px; border-radius: 8px; }
.qka-foot { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eee6da; background: #fff; flex: none; }
.qka-step { display: inline-flex; align-items: center; border: 1.5px solid #e2d6c4; border-radius: 12px; overflow: hidden; flex: none; }
.qka-step button { width: 38px; height: 44px; border: 0; background: #fff; color: var(--qka-accent); font-size: 1.25rem; font-weight: 700; cursor: pointer; }
.qka-step button:active { background: #f6f0e7; }
.qka-qty { min-width: 28px; text-align: center; font-weight: 800; font-size: 0.98rem; }
.qka-add { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: 48px; padding: 0 1rem; border: 0; border-radius: 12px; background: var(--qka-accent); color: #fff; font: inherit; font-weight: 800; font-size: 0.98rem; cursor: pointer; box-shadow: 0 6px 16px color-mix(in srgb, var(--qka-accent) 35%, transparent); }
.qka-add:active { transform: scale(0.99); }
.qka-shake { animation: qkaShake 0.4s ease; }
@keyframes qkaShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@media (min-width: 640px) {
    .qka { align-items: center; }
    .qka-panel { border-radius: 20px; max-height: 82vh; transform: translateY(18px) scale(0.98); opacity: 0; transition: transform 0.22s ease, opacity 0.2s ease; }
    .qka.is-open .qka-panel { transform: none; opacity: 1; }
    .qka-grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qka-panel, .qka-backdrop, .qka-shake { transition: none; animation: none; } }
