/* MEL Food: interface estilo app (conceito de app de delivery), com o tema de praia.
   Carregado DEPOIS de style.css. Só atua em páginas com <body class="app">. */

body.app { --r: 22px; background: #fff; }
body.app.has-tabbar { padding-bottom: 84px; }

/* ---------- barra do app (home) ---------- */
.appbar { position: relative; overflow: hidden; background: linear-gradient(170deg, #ffd95e 0%, var(--honey) 70%); border-radius: 0 0 34px 34px; padding: 16px 0 26px; }
.appbar .sun { position: absolute; right: -40px; top: -50px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .35); box-shadow: 0 0 0 26px rgba(255, 255, 255, .17); }
.appbar .palma { position: absolute; right: 6px; top: -10px; width: 150px; opacity: .9; pointer-events: none; }
.appbar .wrap { position: relative; z-index: 2; }
.appbar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.addr { display: block; margin: 0; color: var(--text); }
.addr small { display: block; font-size: 12.5px; font-weight: 600; color: rgba(26, 22, 13, .72); margin-bottom: 1px; }
.addr .pick { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: 20px; }
.addr select { width: auto; max-width: 62vw; border: 0; background: transparent; padding: 0 2px; font: inherit; font-weight: 800; border-radius: 8px; box-shadow: none; cursor: pointer; }
.addr select:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }
.appbar-act { display: flex; align-items: center; gap: 8px; }
.ibtn { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); display: grid; place-items: center; font-size: 20px; border: 0; cursor: pointer; box-shadow: 0 6px 14px -10px rgba(122, 86, 0, .8); }
.ibtn .cnt, .tabbar .cnt { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.pill-login { background: var(--text); color: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 14.5px; }
.greet { margin: 18px 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 36px); line-height: 1.05; letter-spacing: -.03em; max-width: 11em; }
body.app .search { margin-top: 0; max-width: none; border: 0; border-radius: 18px; box-shadow: 0 10px 22px -14px rgba(122, 86, 0, .8); }
body.app .search input { padding: 15px 0; }

/* ---------- categorias: grade de blocos ---------- */
body.app .home-main { padding-top: 18px; }
body.app #chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; overflow: visible; padding: 2px 0 6px; }
body.app .cat { display: flex; flex-direction: column; align-items: center; gap: 7px; white-space: normal; border: 0; background: transparent; box-shadow: none; padding: 0; text-align: center; font-size: 12.5px; line-height: 1.15; font-weight: 700; color: var(--text); }
body.app .cat:hover { background: transparent; }
body.app .cat .ico { width: 100%; max-width: 72px; aspect-ratio: 1; height: auto; border-radius: 20px; background: var(--sand); font-size: 30px; transition: transform .15s, background .15s; }
body.app .cat:active .ico { transform: scale(.94); }
body.app .cat.on { background: transparent; }
body.app .cat.on .ico { background: var(--honey); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--honey-d); }
body.app .cat.on { font-weight: 800; }

/* ---------- banners ---------- */
.banners { margin: 20px 0 4px; }
.b-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px; }
.b-track::-webkit-scrollbar { display: none; }
.b-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; min-height: 148px; border-radius: 24px; padding: 22px 20px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 6px; color: var(--text); }
.b-slide h3 { font-size: 24px; font-weight: 800; max-width: 11em; position: relative; z-index: 1; }
.b-slide p { font-size: 14.5px; font-weight: 500; max-width: 24em; position: relative; z-index: 1; }
.b-slide .b-ico { position: absolute; right: 12px; bottom: -6px; font-size: 92px; line-height: 1; opacity: .95; }
.b-slide .b-cta { align-self: flex-start; margin-top: 6px; background: var(--text); color: #fff; border-radius: 999px; padding: 7px 16px; font-weight: 800; font-size: 13px; position: relative; z-index: 1; }
.b1 { background: linear-gradient(135deg, #ffd24d, #ffc62b); }
.b2 { background: linear-gradient(135deg, #fbf3dc, #f7ebc8); }
.b3 { background: linear-gradient(135deg, #e6f4f6, #cbe8ee); }
.b-bar { display: flex; gap: 6px; margin-top: 12px; }
.b-bar i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.b-bar i.on::after { content: ""; position: absolute; inset: 0; background: var(--text); border-radius: 4px; }

/* ---------- faixa "Abertos agora" ---------- */
.s-head { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 12px; }
.s-head h2 { font-size: 21px; font-weight: 800; }
.s-head a, .s-head button { background: none; border: 0; color: var(--amber); font-weight: 800; font-size: 14px; cursor: pointer; }
.circles { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.circles::-webkit-scrollbar { display: none; }
.circle { flex: none; width: 76px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.15; }
.circle .av { width: 76px; height: 76px; border-radius: 50%; margin-bottom: 7px; background: radial-gradient(circle at 35% 30%, #ffe27a, var(--honey)); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 30px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sand), 0 10px 18px -12px rgba(122, 86, 0, .8); position: relative; }
.circle .av::after { content: ""; position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; }
.circle span { display: block; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- lista de lojas ---------- */
body.app .section { padding-top: 6px; }
body.app .section h2 { font-size: 21px; }
body.app .section .sub { display: none; }
.rlist { display: grid; gap: 4px; grid-template-columns: 1fr; }
.rrow { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1.5px solid var(--sand); }
.rrow:last-child { border-bottom: 0; }
.rrow .rav { flex: none; width: 68px; height: 68px; border-radius: 20px; background: radial-gradient(circle at 35% 30%, #ffe27a, var(--honey)); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 28px; }
.rrow .rbody { flex: 1; min-width: 0; }
.rrow h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.rrow .rsub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.rrow .rmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-top: 5px; color: var(--text); }
.rrow .rmeta .free { color: var(--green); font-weight: 800; }
.rrow.off { opacity: .55; }
.rrow .badge { align-self: flex-start; }
@media (min-width: 821px) { .rlist { grid-template-columns: 1fr 1fr; column-gap: 28px; } }

/* ---------- barra de abas inferior ---------- */
.tabbar { display: none; }
@media (max-width: 820px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1.5px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 28px -20px rgba(122, 86, 0, .7); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11.5px; font-weight: 700; color: var(--muted); }
  .tabbar svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on svg { stroke: var(--text); fill: var(--honey); }
  .tabbar a.on::before { content: ""; position: absolute; top: -7px; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--honey-d); }
  .tabbar .cnt { top: 1px; right: calc(50% - 21px); }
  body.app.home #top, body.app.auth #top { display: none; }
  body.app .cart { bottom: 62px; }
}
@media (min-width: 821px) {
  .appbar { border-radius: 0 0 40px 40px; padding: 22px 0 34px; }
  body.app #chips { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
  .b-slide { flex-basis: calc(50% - 6px); }
  .banners .b-bar { display: none; }
}

/* ---------- login / cadastro ---------- */
body.auth { background: var(--honey); min-height: 100vh; }
.auth-hero { position: relative; overflow: hidden; height: 270px; background: linear-gradient(170deg, #ffe27a, var(--honey)); }
.auth-hero .sun { position: absolute; left: 50%; top: 58px; width: 150px; height: 150px; margin-left: -40px; border-radius: 50%; background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 22px rgba(255, 255, 255, .22), 0 0 0 48px rgba(255, 255, 255, .11); }
.auth-hero .palma { position: absolute; right: -20px; top: -10px; width: min(330px, 70vw); animation: balanco 9s ease-in-out infinite; transform-origin: 98% 0; }
.auth-hero .logo { position: absolute; left: 20px; top: 20px; z-index: 2; font-size: 26px; }
.auth-hero .waves { height: 60px; }
.sheet { position: relative; z-index: 3; max-width: 480px; margin: -34px auto 0; background: #fff; border-radius: 30px 30px 0 0; padding: 26px 22px 40px; min-height: calc(100vh - 236px); box-shadow: 0 -14px 30px -22px rgba(122, 86, 0, .8); }
.sheet h1, .sheet h2 { font-size: 27px; font-weight: 800; }
.sheet .lead { color: var(--muted); margin: 6px 0 18px; font-size: 15px; }
.sheet .field + .field { margin-top: 12px; }
.sheet label { font-size: 12.5px; }
.sheet input, .sheet select, .sheet textarea { padding: 15px 16px; border-radius: 16px; font-size: 16px; }
.sheet .btn.block { padding: 16px; font-size: 16.5px; border-radius: 16px; }
.sheet .btn.line { background: #fff; border: 2px solid var(--text); box-shadow: none; color: var(--text); }
.sheet .or { display: block; text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0; }
.sheet .form-plain { background: none; border: 0; padding: 0; border-radius: 0; }
.sheet .rolegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 18px !important; }
.sheet .rolegrid .chip { display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; padding: 14px 8px; border-radius: 16px; border-width: 2px; font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
@media (min-width: 821px) { body.auth .sheet { border-radius: 30px; margin-top: -40px; margin-bottom: 40px; min-height: 0; } }

/* ---------- Minha área ---------- */
body.app.area { background: #fff; }
body.app.area h1 { font-size: 28px; font-weight: 800; }
body.app.area .tabs { border-bottom: 0; gap: 8px; padding-bottom: 4px; }
body.app.area .tab { border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; margin: 0; background: #fff; }
body.app.area .tab.on { background: var(--honey); border-color: var(--honey-d); color: var(--text); }
body.app.area .card { border-radius: var(--r); }
body.app.area .row.between { gap: 8px; }

@media (max-width: 820px) {
  body.app.area .nav a.btn { display: none; }
}

/* ---------- cadastro em etapas ---------- */
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.step-back { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--sand); font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px; }
.step-title { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.step-count { min-width: 40px; text-align: right; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.step-bar { height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 26px; overflow: hidden; }
.step-bar i { display: block; height: 100%; width: 0; background: var(--honey-d); border-radius: 4px; transition: width .25s; }
.step h2 { font-size: 28px; line-height: 1.08; }
.step .lead { margin-bottom: 22px; }
.step .field input, .step .field select { font-size: 18px; padding: 17px 16px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { text-align: center; font-size: 24px; font-weight: 800; padding: 14px 0 !important; border-radius: 14px; }
.linkbtn { background: none; border: 0; color: var(--amber); font-weight: 800; cursor: pointer; padding: 0; }
.linkbtn:disabled { color: var(--muted); cursor: default; font-weight: 600; }

/* ================= AJUSTES DE ESPAÇO E CELULAR ================= */
body.app .wrap { padding-left: 20px; padding-right: 20px; }
body.app main.wrap, body.app .home-main { overflow-x: clip; }

/* início: seções mais arejadas e com hierarquia */
body.app .home-main > section + section { margin-top: 8px; }
body.app .sand { padding: 26px 0 40px; }
body.app .sand h2 { font-size: clamp(24px, 6vw, 34px); margin-bottom: 20px; }
body.app .edge + .wrap { padding-top: 30px !important; }
body.app .cta-sun, body.app .cta-line { padding: 24px; border-radius: 26px; }
body.app .cta-sun h3, body.app .cta-line h3 { font-size: 21px; }
body.app .cta-sun p, body.app .cta-line p { margin: 8px 0 18px; font-size: 14.5px; }
body.app .foot { padding-top: 24px; }

@media (max-width: 640px) {
  .how { gap: 12px; }
  .how .item { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 16px; border-radius: 22px; box-shadow: none; border: 1.5px solid var(--line); }
  .how .n { grid-row: 1 / 3; margin: 0; width: 42px; height: 42px; font-size: 18px; }
  .how h3 { font-size: 17px; margin-bottom: 2px; }
  .how p { font-size: 14px; }
  body.app .section { padding-bottom: 14px; }
  body.app #chips { gap: 14px 8px; }
  .b-slide { min-height: 140px; }
}

/* Minha área: tudo em coluna única no celular */
body.app.area main.wrap { padding-top: 18px !important; padding-bottom: 110px !important; }
body.app.area .tabs { flex-wrap: wrap; overflow: visible; margin: 14px 0 18px; }
body.app.area .tab { padding: 8px 15px; font-size: 14px; }
.profile-head { display: flex; align-items: center; gap: 14px; margin: 2px 0 6px; }
.profile-head .pav { flex: none; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe27a, var(--honey)); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
.profile-head b { display: block; font-size: 19px; font-family: var(--display); }
.profile-head span { display: block; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
#sec-conta .grid, #sec-conta .grid > * { min-width: 0; }
#sec-conta .grid { grid-template-columns: 1fr !important; gap: 16px; }
#sec-conta .card { background: var(--sand-2); border: 0; border-radius: 22px; padding: 20px 18px; margin-top: 16px !important; }
#sec-conta .grid > .card { margin-top: 0 !important; }
#sec-conta .card h3 { font-size: 18px; }
#sec-conta .field + .field { margin-top: 14px; }
#sec-conta input:not([type=checkbox]), #sec-conta select { font-size: 16px; padding: 14px 15px; min-width: 0; }
#sec-conta .btn:not(.sm) { display: block; width: 100%; padding: 14px; margin-top: 18px !important; }
#sec-conta .btn.sm { padding: 9px 16px; }
#sec-conta .row.between.wrapx { gap: 10px; }
#sec-conta [data-def], #sec-conta [data-deladdr] { white-space: nowrap; }
#sec-conta form#f-addr { border-top: 1.5px solid var(--line-strong) !important; }
@media (min-width: 821px) {
  #sec-conta .grid { grid-template-columns: 1fr 1fr !important; }
  #sec-conta { max-width: 860px; }
}

/* ================= INTRO ANIMADA (splash) ================= */
.splash { position: fixed; inset: 0; z-index: 9999; overflow: hidden; display: grid; place-items: center; background: linear-gradient(175deg, #ffe27a 0%, var(--honey) 62%, #ffb800 100%); transition: opacity .55s ease, transform .55s ease; cursor: pointer; }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.splash .s-sun { position: absolute; left: 50%; bottom: 22%; width: 260px; height: 260px; margin-left: -130px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 36px rgba(255, 255, 255, .22), 0 0 0 78px rgba(255, 255, 255, .11); transform: translateY(120%); opacity: 0; animation: sRise 1.3s .1s cubic-bezier(.2, .8, .2, 1) forwards, sPulse 2.6s 1.4s ease-in-out infinite; }
.splash .s-palma { position: absolute; right: -30px; top: -14px; width: min(340px, 68vw); transform-origin: 98% 0; opacity: 0; animation: sFade .8s .5s forwards, balanco 6s 1s ease-in-out infinite; }
.splash .s-center { position: relative; z-index: 3; text-align: center; padding: 0 24px; margin-top: -8vh; }
.splash .s-pot { display: block; font-size: 76px; line-height: 1; transform: translateY(-140px) scale(.6); opacity: 0; animation: sDrop .9s .35s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.splash .s-name { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -.035em; line-height: 1; opacity: 0; transform: translateY(14px); animation: sUp .6s .85s ease-out forwards; }
.splash .s-name b { background: linear-gradient(transparent 56%, #fff 56% 92%, transparent 92%); padding: 0 6px; }
.splash .s-tag { margin-top: 12px; font-weight: 600; font-size: 16px; color: rgba(26, 22, 13, .8); opacity: 0; animation: sUp .6s 1.2s ease-out forwards; }
.splash .s-bike { position: absolute; z-index: 3; bottom: calc(11% + 14px); left: 0; font-size: 46px; transform: translateX(-80px) scaleX(-1); animation: sRide 2s .6s ease-in-out forwards; }
.splash .s-waves { position: absolute; left: 0; bottom: 0; width: 200%; height: 22%; display: block; }
.splash .s-waves.w1 { animation: sWave 7s linear infinite; opacity: .55; }
.splash .s-waves.w2 { animation: sWave 4.5s linear infinite reverse; height: 15%; }
@keyframes sRise { to { transform: translateY(0); opacity: 1; } }
@keyframes sPulse { 50% { transform: scale(1.06); } }
@keyframes sFade { to { opacity: 1; } }
@keyframes sDrop { to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes sUp { to { opacity: 1; transform: translateY(0); } }
@keyframes sRide { 0% { transform: translateX(-80px) scaleX(-1); } 100% { transform: translateX(calc(100vw + 80px)) scaleX(-1); } }
@keyframes sWave { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .splash * { animation-duration: .01s !important; animation-delay: 0s !important; }
}

/* seletor de localidade: sem contorno preto ao tocar */
.addr select, .addr select:focus, .addr select:focus-visible { outline: none !important; box-shadow: none !important; }
.appbar-top { justify-content: flex-end; }

/* ================= PAINEL DO ENTREGADOR (app) ================= */
body.courier { background: #fffdf5; }
body.courier #top { display: none; }
body.courier main.wrap { max-width: 640px; }
body.courier.has-tabbar { padding-bottom: 92px; }

.cr-hero { margin: 0 -20px; padding: 22px 20px 20px; background: linear-gradient(170deg, #ffd95e, var(--honey)); border-radius: 0 0 30px 30px; position: relative; overflow: hidden; transition: background .3s; }
.cr-hero::after { content: ""; position: absolute; right: -50px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, .32); box-shadow: 0 0 0 26px rgba(255, 255, 255, .15); pointer-events: none; }
.cr-hero:not(.on) { background: linear-gradient(170deg, #f4ead0, #e9dcb4); }
.cr-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cr-top small { display: block; font-size: 12.5px; font-weight: 700; color: rgba(26, 22, 13, .7); }
.cr-top h1 { font-size: 26px; font-weight: 800; }
.cr-state { position: relative; z-index: 1; margin-top: 12px; font-size: 14.5px; font-weight: 600; max-width: 28em; }
.switch { position: relative; flex: none; width: 74px; height: 42px; margin: 0; cursor: pointer; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; margin: 0; padding: 0; }
.switch .knob { position: absolute; inset: 0; border-radius: 999px; background: rgba(26, 22, 13, .22); transition: background .2s; }
.switch .knob::after { content: ""; position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch input:checked + .knob { background: var(--green); }
.switch input:checked + .knob::after { transform: translateX(32px); }
.switch input:focus-visible + .knob { outline: 3px solid var(--text); outline-offset: 2px; }

.cr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.cr-stats > div { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 10px; text-align: center; }
.cr-stats small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cr-stats b { display: block; font-family: var(--display); font-size: 19px; margin-top: 2px; }

body.courier .s-head { margin: 22px 0 10px; }
.cr-card { background: #fff; border: 1.5px solid var(--line); border-radius: 24px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.cr-card h3 { font-size: 18px; margin-bottom: 10px; }
.cr-card.order { border-left: 6px solid var(--honey); }
.cr-card.order.ready { border-left-color: var(--green); }
.cr-card.order.delivering { border-left-color: #7e3fb8; }
.cr-card ul { list-style: none; margin: 10px 0 6px; font-size: 14.5px; }
.cr-card .field + .field { margin-top: 12px; }
.cr-card input, .cr-card select { font-size: 16px; padding: 13px 14px; }
.cr-card .btn.block { margin-top: 16px; }
.cr-offer { border: 2px solid var(--honey); }
.cr-earn { display: flex; align-items: flex-start; justify-content: space-between; }
.cr-earn small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.cr-earn b { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; }

.cr-route { position: relative; margin-top: 12px; padding-left: 4px; }
.cr-route::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(var(--line-strong) 0 4px, transparent 4px 8px); }
.cr-stop { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.cr-stop i { flex: none; width: 16px; height: 16px; margin: 3px 2px 0; border-radius: 50%; border: 4px solid var(--honey-d); background: #fff; position: relative; z-index: 1; }
.cr-stop i.b { border-color: var(--text); background: var(--text); border-radius: 4px; }
.cr-stop b { display: block; font-size: 15px; }
.cr-stop span { display: block; font-size: 13.5px; color: var(--muted); }

.cr-big { padding: 16px !important; font-size: 17px; border-radius: 16px; }
.cr-chip { display: inline-block; background: var(--sand); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13.5px; margin-right: 6px; }
.cr-empty { text-align: center; padding: 26px 16px; border: 2px dashed var(--line-strong); border-radius: 24px; background: var(--sand-2); font-size: 30px; margin-bottom: 14px; }
.cr-empty p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.cr-warn { background: var(--sun-soft); border: 1.5px solid var(--honey-d); border-radius: 16px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }

.cr-seg { display: flex; gap: 8px; margin-bottom: 14px; }
.cr-seg button { flex: 1; border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 9px 0; font-weight: 700; cursor: pointer; }
.cr-seg button.on { background: var(--honey); border-color: var(--honey-d); font-weight: 800; }
.cr-total { background: linear-gradient(160deg, #ffd95e, var(--honey)); border-radius: 24px; padding: 20px; }
.cr-total small { display: block; font-size: 13px; font-weight: 700; color: rgba(26, 22, 13, .75); }
.cr-total b { display: block; font-family: var(--display); font-size: 38px; letter-spacing: -.03em; margin: 2px 0; }
.cr-total span { font-size: 14px; font-weight: 600; }
.cr-list { margin-top: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 4px 16px; }
.cr-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1.5px solid var(--sand); }
.cr-row:last-child { border-bottom: 0; }
.cr-row span { display: block; font-size: 12.5px; color: var(--muted); }
.cr-check { padding-left: 20px; font-size: 14.5px; line-height: 1.7; }
.cr-check li { margin-bottom: 2px; }

/* barra de abas do entregador: botões, sempre visível */
.cr-tabbar { display: grid !important; grid-template-columns: repeat(3, 1fr); }
.cr-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11.5px; font-weight: 700; color: var(--muted); background: none; border: 0; cursor: pointer; }
.cr-tabbar button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cr-tabbar button.on { color: var(--text); }
.cr-tabbar button.on svg { stroke: var(--text); fill: var(--honey); }
.cr-tabbar button.on::before { content: ""; position: absolute; top: -7px; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--honey-d); }
@media (min-width: 821px) { .cr-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1.5px solid var(--line); padding: 6px 4px; } }
body.courier .alertbar { top: 0; }
