/* Ayam Geprek Mummy — halaman pesanan & status (mesra telefon). Guna token warna dari style.css. */
.op { background: var(--black); padding-bottom: 40px; }
.op.has-cart { padding-bottom: 110px; }
.op.sheet-open { overflow: hidden; }
.op-wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.op-hdr { position: sticky; top: 0; z-index: 30; background: rgba(17,17,17,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.op-hdr-in { display: flex; align-items: center; gap: 12px; height: 62px; }
.op-hdr .brand img { width: 38px; }
.op-hdr .brand span { font-size: 18px; }
.op-table { background: var(--yellow); color: var(--black); font-weight: 800; padding: 7px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.op-link { font-weight: 600; font-size: 14px; color: var(--yellow); text-decoration: none; white-space: nowrap; }

.op-intro { padding: 22px 0 8px; }
.op-intro h1, .op-msg h1 { font-family: var(--head); font-weight: 400; font-size: clamp(30px, 7vw, 42px); line-height: 1.1; letter-spacing: .5px; color: #fff; }
.op-intro p { color: var(--mute); margin-top: 6px; font-size: 14.5px; }
.op-needopen { margin-top: 14px; background: rgba(255,194,26,.13); border: 2px solid var(--yellow); padding: 14px; border-radius: 14px; display: grid; gap: 6px; justify-items: start; font-size: 14px; }
.op-needopen > b { color: var(--yellow); font-size: 17px; }
.op-needopen .btn { margin-top: 4px; }
.op-closed { margin-top: 14px; background: rgba(227,32,46,.15); border: 1px solid var(--red); color: #ffd6d9; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; }

.op-cats { position: sticky; top: 62px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; background: var(--black); scrollbar-width: none; }
.op-cats::-webkit-scrollbar { display: none; }
.op-cats a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.op-cats a:hover, .op-cats a:focus-visible { border-color: var(--yellow); color: var(--yellow); }

.op-sec { padding: 18px 0 6px; scroll-margin-top: 124px; }
.op-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.op-sec h2 { font-family: var(--head); font-weight: 400; font-size: 24px; letter-spacing: .5px; color: var(--yellow); }
.op-poster { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 12.5px; color: var(--mute); }
.op-poster img { width: 40px; height: 62px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.op-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.op-list { display: grid; gap: 8px; }
.op-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.op-list .op-item { flex-direction: row; }
.op-img { width: 100%; height: auto; aspect-ratio: 480 / 747; object-fit: cover; background: #222; }
.op-item-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.op-item h3 { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.op-desc { font-size: 12.5px; color: var(--mute); line-height: 1.45; }
.op-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.op-list .op-item-body { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.op-list .op-item-foot { margin-top: 0; padding-top: 0; margin-left: auto; }
.op-price { font-size: 13px; color: var(--mute); line-height: 1.35; }
.op-price b { font-size: 17px; color: var(--yellow); }

.op-item.is-sold { opacity: .55; }
.op-item.is-sold .op-img { filter: grayscale(1); }
.op-sold { background: #3a3a3a; color: #ffb3b8; border: 1px solid var(--red); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 13px; }
.op-add { background: var(--yellow); color: var(--black); border: 0; border-radius: 999px; padding: 9px 14px; font: 700 13.5px 'Poppins', sans-serif; cursor: pointer; min-height: 40px; }
.op-add.has { background: var(--red); color: #fff; }
.op-step { display: inline-flex; align-items: center; background: #2a2a2a; border-radius: 999px; border: 1px solid var(--line); }
.op-step.has { border-color: var(--yellow); }
.op-step button { width: 40px; height: 40px; border: 0; background: none; color: var(--yellow); font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; }
.op-step .op-qty { min-width: 22px; text-align: center; font-size: 15px; color: #fff; }
.op-step.big button { width: 46px; height: 46px; }

.op-cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; width: min(828px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 16px; background: var(--red); color: #fff; font: 700 16px 'Poppins', sans-serif; cursor: pointer; box-shadow: 0 6px 0 var(--red-d), 0 12px 30px rgba(0,0,0,.5); }
.op-cartbar b { margin-left: auto; font-size: 17px; }
.op-cart-count { background: var(--yellow); color: var(--black); min-width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 14px; padding: 0 6px; }

.op-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.66); display: flex; align-items: flex-end; justify-content: center; }
.op-sheet[hidden] { display: none; }
.op-sheet-box { position: relative; width: min(620px, 100%); max-height: 92vh; overflow-y: auto; background: var(--black2); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); animation: opUp .22s ease-out; }
.op-full .op-sheet-box { max-height: 96vh; min-height: 70vh; }
@keyframes opUp { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .op-sheet-box { animation: none; } }
.op-sheet h2 { font-size: 21px; font-weight: 800; color: #fff; margin: 0 40px 4px 0; }
.op-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #2a2a2a; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.op-sheet-foot { display: flex; gap: 12px; align-items: center; margin-top: 18px; position: sticky; bottom: -20px; background: var(--black2); padding: 10px 0 0; }
.op-wide { flex: 1; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.op-f { display: block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--text); border: 0; }
.op-f legend { margin-bottom: 8px; }
.op-f small { color: var(--mute); font-weight: 400; }
.op-f input, .op-f select, .op-f textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); background: #111; color: #fff; font: 500 16px 'Poppins', sans-serif; color-scheme: dark; }
.op-f input:focus, .op-f select:focus, .op-f textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; }
.op-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.op-choice label { position: relative; cursor: pointer; }
.op-choice input { position: absolute; opacity: 0; inset: 0; }
.op-choice span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); background: #111; font-weight: 500; min-height: 48px; justify-content: center; }
.op-choice span b { font-weight: 700; }
.op-choice span small { font-size: 12px; }
.op-choice span em { font-style: normal; color: var(--yellow); font-weight: 700; font-size: 14px; }
.op-choice input:checked + span { border-color: var(--yellow); background: rgba(255,194,26,.12); }
.op-choice input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.op-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.op-fixed { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,194,26,.12); border: 1px solid var(--yellow); color: var(--yellow); }
.op-err { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(227,32,46,.15); border: 1px solid var(--red); color: #ffd6d9; font-size: 14px; font-weight: 600; }
.op-err[hidden] { display: none; }
.op-btn2 { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 18px; }
.btn-ghost-d { border-color: rgba(255,255,255,.3); color: #fff; background: none; }

.op-steps { display: flex; gap: 6px; list-style: none; margin: 0 48px 16px 0; counter-reset: s; }
.op-steps li { flex: 1; font-size: 12px; font-weight: 600; color: var(--mute); border-top: 4px solid #333; padding-top: 6px; }
.op-steps li.on { color: var(--yellow); border-color: var(--yellow); }
.op-steps li.done { color: #fff; border-color: #777; }

.op-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.op-line > div:first-child { min-width: 0; }
.op-line b { color: #fff; font-weight: 600; font-size: 15px; }
.op-line small { display: block; color: var(--mute); font-size: 12.5px; }
.op-line-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.op-line-r b { color: var(--yellow); }
.op-empty { color: var(--mute); padding: 20px 0; text-align: center; }
.op-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-size: 17px; font-weight: 700; }
.op-sum b { font-size: 22px; color: var(--yellow); }
.op-kv { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); }
.op-kv span { color: var(--mute); flex: none; }
.op-kv b { text-align: right; overflow-wrap: anywhere; }
.op-pay { margin-top: 12px; font-size: 14px; color: var(--mute); }

.op-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 14px; }
.op-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.op-center { text-align: center; }
.op-msg { padding-top: 18px; }
.op-msg p { margin-top: 8px; color: var(--text); }
.op-big { font-size: 54px; line-height: 1.1; }
.op-sub { color: var(--mute) !important; font-size: 13px; margin-top: 14px !important; text-transform: uppercase; letter-spacing: 1px; }
.op-orderno { font-family: var(--head); font-size: clamp(44px, 13vw, 64px); color: var(--yellow); letter-spacing: 2px; line-height: 1.1; }
.op-small { font-size: 13px; color: var(--mute) !important; }
.op-track { display: flex; list-style: none; margin: 18px 0 6px; }
.op-track li { flex: 1; position: relative; font-size: 13px; font-weight: 600; color: var(--mute); padding-top: 28px; }
.op-track li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #333; border: 3px solid #333; z-index: 1; }
.op-track li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 4px; background: #333; }
.op-track li:first-child::after { display: none; }
.op-track li.done, .op-track li.on { color: #fff; }
.op-track li.done::before, .op-track li.done::after, .op-track li.on::after { background: var(--yellow); border-color: var(--yellow); }
.op-track li.on::before { background: var(--black); border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255,194,26,.25); }
.op-form .op-f:first-of-type { margin-top: 8px; }
.op-form .btn { margin-top: 18px; }
.op-lite { margin: 12px 0 4px; padding: 16px; border-radius: 14px; background: #161616; border: 2px solid var(--yellow); text-align: center; }
.op-lite.s-ready { border-color: #1f9d55; } .op-lite.s-cancelled { border-color: var(--red); } .op-lite.s-completed { border-color: #777; }
.op-lite-no { font-family: var(--head); font-size: 40px; color: var(--yellow); letter-spacing: 1.5px; line-height: 1.1; }
.op-lite-src { color: var(--mute); font-size: 13.5px; }
.op-lite-st { font-size: 18px; font-weight: 800; margin-top: 8px; }
.op-recent { text-decoration: none; }
.op-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #333; color: #fff; }
.op-badge.s-pending { background: var(--yellow); color: var(--black); }
.op-badge.s-ready { background: #1f9d55; }
.op-badge.s-cancelled { background: var(--red); }
.op-foot-note { text-align: center; color: var(--mute); font-size: 13px; padding: 28px 0 8px; }
.op-foot-note a { color: var(--yellow); }

.op-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 70; background: #fff; color: var(--black); padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; }
.op-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .op-grid { grid-template-columns: repeat(4, 1fr); }
  .op-list { grid-template-columns: 1fr 1fr; }
  .op-sheet { align-items: center; }
  .op-sheet-box { border-radius: 22px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 380px) {
  .op-hdr .brand span { font-size: 15px; }
  .op-row2 { grid-template-columns: 1fr; }
  .op-item h3 { font-size: 15px; }
}
