/* FluuexQR v365 strict customer ordering fixes
   Stable v355/v361 branch: Zomato-reference discovery banner, direct search ADD,
   two-step checkout, other-person destination and one-time rating prompt polish. */

/* ---------- Discovery hero: clean search, then edge-to-edge reference banner ---------- */
.fqoApp.fq362-ios-discovery{background:#fff!important}
.fq363-zomato-hero{overflow:visible!important;background:#fff!important;contain:none!important}
.fq363-zomato-hero>.fq350-rider-loop,.fq350-rider-loop{display:none!important}
.fq363-zomato-hero .fq362-top-content{padding:0!important;background:#fff!important}
.fq363-zomato-hero .fq336-search-wrap{margin:0!important;padding:10px 16px 0!important;background:#fff!important;gap:10px!important}
.fq363-zomato-hero .fq336-search{min-height:54px!important;border:1px solid #e1e2e6!important;border-radius:15px!important;background:#fff!important;box-shadow:0 1px 3px rgba(16,24,40,.04)!important}
.fq363-zomato-hero .fq336-filter{width:54px!important;min-width:54px!important;height:54px!important;border-radius:15px!important;border:1px solid #e1e2e6!important;background:#fff!important;box-shadow:0 1px 3px rgba(16,24,40,.04)!important}
.fq363-zomato-hero .fq336-ad-carousel{width:100vw!important;max-width:100vw!important;margin:10px 0 0 calc(50% - 50vw)!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#111!important;overflow:hidden!important}
.fq363-zomato-hero .fq336-ad-track{display:flex!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;border-radius:0!important}
.fq363-zomato-hero .fq336-ad-track::-webkit-scrollbar{display:none!important}
.fq363-zomato-hero .fq336-ad-slide{position:relative!important;flex:0 0 100%!important;width:100%!important;aspect-ratio:2.02/1!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#151515!important;scroll-snap-align:start!important;overflow:hidden!important}
/* Preserve the complete uploaded artwork instead of zoom-cropping it. */
.fq363-zomato-hero .fq336-ad-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:0!important;background:transparent!important}
@supports selector(.fq336-ad-slide:has(.fq336-ad-media)){
 .fq363-zomato-hero .fq336-ad-slide.live:has(.fq336-ad-media):after{display:none!important;content:none!important}
 .fq363-zomato-hero .fq336-ad-slide.live:has(.fq336-ad-media) .fq336-ad-copy{display:none!important}
}
.fq363-zomato-hero .fq336-ad-dots{bottom:8px!important;z-index:6!important}
.fq363-zomato-hero .fq336-ad-dots i{background:rgba(255,255,255,.58)!important}
.fq363-zomato-hero .fq336-ad-dots i.active{background:#fff!important;width:24px!important}
.fq362-home-body{margin:0!important;padding-top:0!important;border-radius:0!important;background:#fff!important}
.fq362-home-body .fq336-category-rail{margin-top:0!important;padding-top:16px!important}

/* ---------- Search results: item + restaurant + direct ADD ---------- */
.fq365-search-dish{position:relative!important;overflow:visible!important}
.fq365-search-dish-link{display:block;color:inherit;text-decoration:none;height:100%}
.fq365-search-dish .fq336-dish-copy{padding-bottom:52px!important}
.fq365-discover-add{position:absolute;right:12px;bottom:12px;z-index:3;min-width:76px;height:38px;border:1px solid #ef4f5f;border-radius:10px;background:#fff;color:#e23744;font:800 13px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 2px 7px rgba(226,55,68,.12);cursor:pointer}
.fq365-discover-add:active{transform:scale(.98)}
.fq365-discover-add:disabled{opacity:.55;cursor:wait}

/* ---------- Destination selector ---------- */
.fq365-address-actions{display:grid;gap:10px;margin-top:14px}
.fq365-other-order .fq-kicker{display:block;margin-bottom:6px}
.fq365-other-order>p{color:#667085;margin:0 0 16px}
.fq365-other-order form{display:grid;gap:14px}

/* ---------- Two-step checkout ---------- */
.fq365-checkout-heading{max-width:1060px;margin:0 auto 18px!important;padding-inline:16px}
.fq365-checkout-stepper{max-width:520px;margin:0 auto 18px;display:grid;grid-template-columns:34px 1fr 34px;grid-template-rows:34px auto;align-items:center;padding:0 16px;color:#98a2b3}
.fq365-checkout-stepper i{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid #e4e7ec;background:#fff;font-style:normal;font-weight:800;z-index:1}
.fq365-checkout-stepper i.active,.fq365-checkout-stepper.complete i:first-child{background:#111;color:#fff;border-color:#111}
.fq365-checkout-stepper span{height:2px;background:#e4e7ec}
.fq365-checkout-stepper.complete span{background:#111}
.fq365-checkout-stepper b,.fq365-checkout-stepper em{font-style:normal;font-size:12px;text-align:center;margin-top:6px;color:#667085}
.fq365-checkout-stepper b{grid-column:1}.fq365-checkout-stepper em{grid-column:3}
.fq365-checkout-stage-one{display:block!important;max-width:760px!important;margin:0 auto!important;padding:0 16px 110px!important}
.fq365-checkout-stage-one>div{width:100%}
.fq365-next-payment{position:sticky;bottom:84px;z-index:22;margin-top:18px;min-height:54px;border-radius:14px!important;box-shadow:0 10px 28px rgba(0,0,0,.18)}
.fq365-checkout-confirm{max-width:1060px;margin:0 auto 14px;padding:15px 17px;border:1px solid #e8e8e8;border-radius:16px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:14px}
.fq365-checkout-confirm span{display:block;color:#98a2b3;font-size:10px;font-weight:800;letter-spacing:.1em}
.fq365-checkout-confirm strong{display:block;margin:4px 0 3px;font-size:15px}
.fq365-checkout-confirm p,.fq365-checkout-confirm small{margin:0;color:#667085;font-size:12px;line-height:1.45}
.fq365-checkout-stage-two{max-width:1060px!important;margin:0 auto!important;padding:0 16px 110px!important;align-items:start}
.fq365-payment-panel{margin-top:0!important}
.fq365-checkout-stage-two .fq-summary{position:sticky;top:14px}

@media(max-width:720px){
 .fq363-zomato-hero .fq336-search-wrap{padding:9px 10px 0!important}
 .fq363-zomato-hero .fq336-search{min-height:52px!important;border-radius:14px!important}
 .fq363-zomato-hero .fq336-filter{width:52px!important;min-width:52px!important;height:52px!important;border-radius:14px!important}
 .fq363-zomato-hero .fq336-ad-carousel{margin-top:8px!important}
 .fq363-zomato-hero .fq336-ad-slide{aspect-ratio:1.96/1!important}
 .fq362-home-body .fq336-category-rail{padding-top:14px!important}
 .fq365-checkout-stage-two{display:block!important;padding-inline:12px!important}
 .fq365-checkout-stage-two .fq-summary{position:static;margin-top:12px}
 .fq365-checkout-confirm{margin-inline:12px}
 .fq365-checkout-heading{padding-inline:12px}
}
@media(max-width:420px){
 .fq363-zomato-hero .fq336-ad-slide{aspect-ratio:1.92/1!important}
 .fq365-discover-add{right:10px;bottom:10px;min-width:70px;height:36px}
}
@media(prefers-reduced-motion:reduce){.fq363-zomato-hero .fq336-ad-track{scroll-behavior:auto!important}}
