/* tombol umum + modal base (dari versi sebelumnya) */
.order-btn-open{display:inline-block;padding:10px 16px;border-radius:12px;border:1px solid #ddd;background:#fff;cursor:pointer;font-weight:600;transition:box-shadow .2s;}
.order-btn-open:hover{box-shadow:0 4px 14px rgba(0,0,0,.08);}
.order-modal-open{overflow:hidden;}
.order-modal{position:fixed;inset:0;display:none;z-index:9999;}
.order-modal.is-open{display:block;}
.order-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.4);}
.order-modal__dialog{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(92vw, 920px);max-height:84vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.25);}
.order-modal__header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #eee;}
.order-modal__title{font-weight:700;}
.order-btn-close{background:transparent;border:none;font-size:24px;line-height:1;cursor:pointer;}
.order-modal__search{padding:12px 16px;border-bottom:1px solid #f0f0f0;}
.order-modal__search input{width:100%;padding:10px 12px;border:1px solid #e5e5e5;border-radius:10px;}
.order-modal__list{list-style:none;margin:0;padding:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;}
.order-item{display:grid;grid-template-columns:72px 1fr auto;gap:10px;align-items:center;padding:10px;border-radius:12px;border:1px solid #f1f1f1;}
.order-item__media img{width:72px;height:72px;object-fit:cover;border-radius:10px;}
.order-thumb-placeholder{width:72px;height:72px;border-radius:10px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;font-size:20px;}
.order-item__title{font-weight:700;margin-bottom:4px;}
.order-item__desc{color:#555;font-size:14px;}
.order-item__meta{margin-top:6px;font-weight:600;}
.order-item__price{background:#f7f7f7;padding:4px 8px;border-radius:8px;}
.order-item__actions{display:flex;gap:8px;}
.order-action{padding:8px 12px;border:none;border-radius:10px;cursor:pointer;font-weight:600;}
.order-action.order-wa{background:#e8f9f0;}
.order-action.order-tg{background:#e8f1fb;}
.order-action.order-send{background: #15803d;color: white;}

/* step kategori */
.order-categories{list-style:none;margin:0;padding:16px;display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));}
.order-cat-btn{width:100%;padding:12px;border-radius:12px;border:1px solid #e5e5e5;background:#fff;cursor:pointer;font-weight:600;transition:box-shadow .2s, transform .06s;}
.order-cat-btn:hover{box-shadow:0 4px 14px rgba(0,0,0,.08);}
.order-cat-btn:active{transform:scale(0.99);}
.order-empty{padding:16px;color:#666;}

/* GRID MENU UTAMA (halaman utama) */
.op-title{margin: 10px 0 14px;font-weight: 800;text-align: center;}
.op-main-grid{display:grid;gap:14px;}
.op-cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.op-cols-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.op-cols-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.op-card{border-radius:14px;overflow:hidden;display:flex;flex-direction:column;}
.op-card__media{background:#fafafa;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;}
.op-card__media img{width:100%;height:100%;object-fit:cover;}
.op-card__placeholder{font-size:28px;opacity:.6;}
.op-card__body{padding: 12px;display: flex;flex-direction: column;gap: 8px;align-items: center;}
.op-card__title{font-weight:700; text-align: center; text-align: center; font-size: 30px !important;}
.op-card__desc{color:#555;font-size:14px;}
.op-term-order-btn{    align-self: flex-start;
    padding: 12px 30px 12px 30px;
    border: 0px;
    border-radius: 10px;
    color: white;
    text-align: center;
    font-size: 18px;
    background: #15803d;
    cursor: pointer;
    font-weight: 600;}

/* MODAL CONTENT with sidebar */
.order-modal__content{display:grid;grid-template-columns:180px 1fr;min-height:300px;}
.order-sidebar{border-right:1px solid #f0f0f0;padding:12px;}
.order-sidebar__group{margin-bottom:14px;}
.order-sidebar__label{font-weight:700;margin-bottom:6px;}
.order-sidebar__note{color:#666;font-size:13px;}
.order-sidebar__btns{display:flex;gap:6px;}
.op-channel{padding:6px 10px;border:1px solid #e5e5e5;background:#fff;border-radius:8px;cursor:pointer;font-weight:600;}
.op-channel.is-active{background:#eef6ff;border-color:#cfe3ff;}
.order-body{padding:10px;}
@media (max-width:640px){
  .order-modal__content{grid-template-columns:2fr;}
  .order-sidebar{border-right:none;border-bottom:1px solid #f0f0f0;}
  .op-card__title{font-size: 18px !important;}
}

/* utility for smaller screens in item list */
@media (max-width:520px){
  .order-item{grid-template-columns:56px 1fr;gap:8px;}
  .order-item__media img,.order-thumb-placeholder{width:56px;height:56px;}
  .order-item__actions{grid-column:2 / -1;}
  .op-card__title{font-size: 18px !important;}
  .op-card{ width: 168px;}
  .op-term-order-btn{padding: 8px 30px 8px 30px;border-radius: 8px;font-size: 18px;}
}


/* === Checkbox minimal untuk pilih item === */
.op-check{display:inline-flex;align-items:center;gap:8px;cursor:pointer;}
.op-check input{position:absolute;opacity:0;pointer-events:none;}
.op-check span{width:22px;height:22px;border:2px solid #e5e5e5;border-radius:6px;display:inline-block;position:relative;}
.op-check input:checked + span{background:#15803d;border-color:#15803d;}
.op-check input:checked + span:after{content:"";position:absolute;left:6px;top:2px;width:6px;height:12px;border:2px solid #fff;border-top:none;border-left:none;transform:rotate(45deg);}

/* === Footer stepper & buttons === */
.op-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #f0f0f0;}
.op-dots{display:flex;gap:6px;align-items:center;}
.op-dots span{width:8px;height:8px;border-radius:999px;background:#d1d5db;display:inline-block;}
.op-dots span.is-active{background:#10b981;}
.op-next,.op-prev,.op-send{padding:10px 16px;border:0;border-radius:10px;font-weight:700;cursor:pointer;}
.op-next{background:#15803d;color:#fff;}
.op-prev{background:#e5e7eb;}
.op-send{background:#15803d;color:#fff;}

/* === Keranjang & Receipt === */
.op-heading{text-align:center;font-size:20px;font-weight:800;margin:10px 0;}
.op-cart-list,.op-receipt-list{list-style:none;margin:0;padding:12px;display:grid;gap:10px;}
.op-cart-item,.op-receipt-item{display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center;border:1px solid #f1f1f1;border-radius:12px;padding:10px;}
.op-cart-item img,.op-receipt-item img{width:54px;height:54px;object-fit:cover;border-radius:10px;}
.op-cart-info .t,.op-receipt-item .info .t{font-weight:700;margin-bottom:2px;}
.op-cart-info .p,.op-receipt-item .info .p{color:#555;}
.op-cart-total,.op-receipt-total{padding:0 16px 12px;font-weight:700;}

/* === Receipt wrapper (agar rapi saat di-capture) === */
#op-receipt{background:#fff;padding:12px;border:1px solid #eee;border-radius:12px;margin:0 12px;}