/* Adchaya Pathra — quicker website ordering (18 Oct). Works with assets/ap/web_quick.js */

/* banner: shown only once its picture has loaded (no empty dark box) */
.pos-hero:not(.ap-ld){display:none!important}

/* Delivery / Pick-up / Dine-in, chosen once */
.ap-mode{display:flex;gap:4px;background:#fff;border:1px solid #f0e2cf;border-radius:24px;padding:4px;margin:8px 0 10px;width:max-content;max-width:100%}
.ap-mode button{border:0;background:none;border-radius:20px;padding:7px 14px;font:600 13.5px inherit;color:#6b7280;white-space:nowrap;cursor:pointer}
.ap-mode button.on{background:#e08a25;color:#fff}

.ap-filter-btn{display:none!important;width:auto!important;padding:0 12px!important;font-weight:700;white-space:nowrap}
.ap-filter-btn.on{border-color:#e08a25!important;color:#c46f10!important}

/* several kinds of one dish */
.ap-kinds{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-end;justify-content:center}
.ap-kinds[hidden]{display:none}
.ap-kinds-shade{position:absolute;inset:0;background:rgba(17,24,39,.45)}
.ap-kinds-box{position:relative;background:#fff;width:100%;max-width:480px;max-height:86vh;overflow:auto;border-radius:20px 20px 0 0;padding:18px 18px 16px;box-shadow:0 -10px 30px rgba(0,0,0,.2);font-family:inherit}
@media (min-width:768px){.ap-kinds{align-items:center}.ap-kinds-box{border-radius:20px}}
.ap-kinds-x{position:absolute;right:12px;top:12px;width:34px;height:34px;border:0;border-radius:10px;background:#f2f3f5;font-size:20px;line-height:1;cursor:pointer}
.ap-kinds-t{display:block;font-size:18px;color:#1b2430;padding-right:40px}
.ap-kinds-s{color:#8a8f98;font-size:12.5px;margin:2px 0 8px}
.ap-kind{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f2f2f2;font-size:15px;color:#1b2430}
.ap-kind-n{flex:1;font-weight:600;text-transform:capitalize}.ap-kind-p{color:#6b7280;font-size:13.5px;white-space:nowrap}
.ap-plus{width:36px;height:36px;border:0;border-radius:10px;background:#16a34a;color:#fff;font-size:22px;font-weight:700;line-height:1;cursor:pointer;flex:none}
.ap-step{display:flex;align-items:center;gap:10px;border:1.5px solid #16a34a;border-radius:10px;padding:2px 6px;color:#16a34a;flex:none}
.ap-step button{border:0;background:none;color:#16a34a;font-size:20px;font-weight:700;width:24px;height:30px;line-height:1;cursor:pointer}
.ap-step b{min-width:16px;text-align:center}
.ap-kinds-go{width:100%;margin-top:14px;height:50px;border:0;border-radius:14px;background:#16a34a;color:#fff;font:700 16px inherit;cursor:pointer;position:sticky;bottom:0}
.ap-kinds-go:disabled{background:#a7d7b8}
body.ap-kinds-open{overflow:hidden}

/* track the last order */
.ap-track-pill{position:fixed;left:50%;transform:translateX(-50%);bottom:78px;z-index:1500;background:#1b2430;color:#fff!important;border-radius:22px;padding:9px 16px;font:600 13px inherit;text-decoration:none!important;box-shadow:0 8px 24px rgba(0,0,0,.25);white-space:nowrap}
.ap-track-pill b{color:#fbbf6a;margin-left:4px}

/* ---------- phones: clean list (one dish per row), one thin category row ---------- */
@media (max-width:767.98px){
  .ap-mode{width:100%;justify-content:space-between;margin:10px 0 6px}
  .ap-mode button{flex:1;padding:9px 6px;font-size:14px}
  .ap-filter-btn{display:inline-flex!important;align-items:center}
  .pos-section .pos-section-title{display:none!important}
  .pos-section .pos-checks{display:none!important}
  .pos-section.ap-show-checks .pos-checks{display:flex!important;flex-wrap:wrap;gap:6px}
  .pos-section .pos-section-head{margin:0 0 6px!important;min-height:0!important;justify-content:flex-end}
  .pos-section .pos-arrow-nav .pos-arrow:not(.ap-filter-btn){display:none!important}
  .pos-cat-strip{gap:6px!important;padding-bottom:4px!important}
  .pos-cat-strip .pos-cat-card{padding:7px 14px!important;min-height:0!important;height:auto!important;border-radius:18px!important;gap:0!important;box-shadow:none!important}
  .pos-cat-strip .pos-cat-card > :not(:last-child):not(:only-child){display:none!important}
  .pos-cat-strip .pos-cat-card img,.pos-cat-strip .pos-cat-card svg,.pos-cat-strip .pos-cat-card [class*="icon"],.pos-cat-strip .pos-cat-card [class*="thumb"]{display:none!important}
  .pos-cat-strip .pos-cat-card small,.pos-cat-strip .pos-cat-card [class*="count"],.pos-cat-strip .pos-cat-card [class*="sub"]{display:none!important}

  #posFoodGrid{display:block!important;grid-template-columns:none!important;margin:0!important}
  #posFoodGrid > .pos-food-cell{display:block!important;width:100%!important;max-width:100%!important;flex:none!important;padding:0!important;margin:0!important}
  .pos-food-card{display:flex!important;flex-direction:row!important;align-items:center!important;gap:12px!important;padding:12px 4px!important;margin:0!important;border:0!important;border-bottom:1px solid #efe6d8!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;height:auto!important;min-height:0!important}
  .pos-food-card .pos-food-media{width:76px!important;height:76px!important;min-height:0!important;flex:0 0 76px!important;border-radius:14px!important;overflow:hidden!important;aspect-ratio:auto!important;margin:0!important;padding:0!important}
  .pos-food-card .pos-food-media img{width:100%!important;height:100%!important;object-fit:cover!important}
  .pos-food-card .pos-tag-flag{display:none!important}
  .pos-food-card .pos-food-body{flex:1 1 auto!important;min-width:0!important;padding:0 60px 0 0!important;position:relative!important;min-height:64px;margin:0!important;display:flex!important;flex-direction:column!important;justify-content:center;gap:2px}
  .pos-food-card .pos-food-cattag{order:2;display:flex!important;align-items:center;gap:4px;margin:0!important;min-height:0!important}
  .pos-food-card .pos-food-cat{display:none!important}
  .pos-food-card .pos-food-diets{display:inline-flex!important;flex-direction:row!important;gap:3px!important}
  .pos-food-card .pos-food-diet{width:18px!important;height:18px!important;font-size:11px!important;margin:0!important}
  .pos-food-card .pos-food-nameprice{order:1;display:block!important;margin:0!important}
  .pos-food-card .pos-food-name{font-size:15.5px!important;font-weight:700!important;line-height:1.25!important;margin:0 0 3px!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .pos-food-card .pos-food-price{font-size:14.5px!important;margin:0!important}
  .pos-food-card .pos-food-set{order:3;font-size:11.5px!important;max-height:2.6em;overflow:hidden;margin:0!important}
  .pos-food-card .pos-food-add-btn{position:absolute!important;right:0;top:50%!important;transform:translateY(-50%)!important;width:44px!important;height:44px!important;min-height:0!important;padding:0!important;margin:0!important;border-radius:12px!important;background:#16a34a!important;color:#fff!important;border:0!important;box-shadow:none!important;display:inline-flex!important;align-items:center;justify-content:center}
  .pos-food-card .pos-food-add-btn > span:first-child{font-size:0!important}
  .pos-food-card .pos-food-add-btn > span:first-child:before{content:"+";font-size:26px;font-weight:600;line-height:1}
  .pos-food-card .pos-food-add-btn.ap-choose{width:auto!important;padding:0 10px!important;background:#fff!important;color:#c46f10!important;border:1.5px solid #e08a25!important}
  .pos-food-card .pos-food-add-btn.ap-choose > span:first-child:before{content:"Choose";font-size:13px;font-weight:700}
  .pos-food-card .pos-food-add-qty{position:absolute!important;top:-7px;right:-7px;min-width:20px;height:20px;border-radius:10px;background:#e08a25;color:#fff;font-size:11px;line-height:20px;text-align:center;padding:0 5px}
}
