/* Captain Order — targeted dark-mode contrast & mobile shopping dock fix.
   CSS-only: deliberately leaves cart, checkout and financial logic untouched. */
html[data-co-theme] .co-mini-checkout {
  box-sizing:border-box;
  background:var(--co-surface,#fff);
  border-color:var(--co-line,#d9eae0);
  color:var(--co-ink,#123f2a);
}
html[data-co-theme] .co-mini-overview,
html[data-co-theme] .co-mini-text strong {
  color:var(--co-ink,#123f2a)!important;
  opacity:1!important;
}
html[data-co-theme] .co-mini-text small {
  color:var(--co-muted,#61796a)!important;
  opacity:1!important;
}
html[data-co-theme] .co-mini-bag {
  background:var(--co-surface-alt,#e7f6ee);
  border:1px solid var(--co-line,#d9eae0);
}
html[data-co-theme="dark"] .co-mini-checkout {
  background:linear-gradient(135deg,#073c2c 0%,#03251b 100%)!important;
  border:1px solid #267657!important;
  box-shadow:0 14px 32px rgba(0,0,0,.48),0 0 0 1px rgba(67,213,147,.05);
}
html[data-co-theme="dark"] .co-mini-bag {background:#124a36;border-color:#267657}
html[data-co-theme="dark"] .co-mini-text strong{color:#f4fff8!important}
html[data-co-theme="dark"] .co-mini-text small{color:#c6e4d5!important}
html[data-co-theme="dark"] .co-mini-checkout-btn{
  background:linear-gradient(125deg,#0b9b6c,#08734e)!important;
  color:#fff!important;
  box-shadow:0 4px 14px #0005;
}
html[data-co-theme] .co-order-shopping-shortcuts {
  background:linear-gradient(140deg,var(--co-surface-alt,#effaf3),var(--co-surface,#fff))!important;
  border:1px solid var(--co-line,#d8ebdd)!important;
  box-shadow:var(--co-shadow,0 5px 20px #00281810);
}
html[data-co-theme] .co-order-shopping-shortcuts>span{color:var(--co-ink,#116a49)!important}
html[data-co-theme] .co-order-shopping-shortcuts small{color:var(--co-muted,#668172)!important;opacity:1}
html[data-co-theme] .co-order-shopping-shortcuts button{
  background:var(--co-surface,#fff)!important;
  color:var(--co-ink,#08734a)!important;
  border:1px solid var(--co-line,#b9ddc9)!important;
}
html[data-co-theme] .co-order-shopping-shortcuts button svg{color:var(--co-green-mid,#08734a)!important}
html[data-co-theme="dark"] .co-order-shopping-shortcuts {
  background:linear-gradient(150deg,#073a2b,#04281e)!important;
  border-color:#1e6b50!important;
}
html[data-co-theme="dark"] .co-order-shopping-shortcuts button{
  background:linear-gradient(140deg,#0a4733,#073425)!important;
  border-color:#267659!important;
  color:#f3fff7!important;
}
html[data-co-theme="dark"] .co-order-shopping-shortcuts button svg{color:#66e3ab!important}
html[data-co-theme="dark"] :is(.cr-restaurant,.cr-meal,.cr-detail-hero,.cr-menu-nav button,.cr-dialog){
  background:linear-gradient(145deg,#083729,#05291e)!important;
  color:#effff5!important;
  border-color:#205d47!important;
}
html[data-co-theme="dark"] .cr-restaurant :is(h2,p,span),
html[data-co-theme="dark"] .cr-meal :is(h3,p,details),
html[data-co-theme="dark"] .cr-hero-text :is(h1,p){color:#f0fff6!important;opacity:1}
html[data-co-theme="dark"] .cr-rest-info small,
html[data-co-theme="dark"] .cr-menu-grid small,
html[data-co-theme="dark"] .cr-hero-text small {color:#7be6b3!important}
html[data-co-theme="dark"] .cr-search input {background:#073525!important;color:#effff5!important;border-color:#226b4e!important}
html[data-co-theme="dark"] .cr-search input::placeholder{color:#b7d3c5!important}
html[data-co-theme="dark"] .cr-meal-quantity{background:#0c4432;border-color:#267459;color:#f2fff7}
/* Nav is fixed; give the dock a genuine gap above it, including safe-area insets. */
.co-mini-checkout{bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;z-index:61}
@media(max-width:799px){
  .co-mini-checkout{bottom:calc(91px + env(safe-area-inset-bottom,0px))!important;
    width:min(625px,calc(100% - 28px));min-height:65px}
  body.co-mini-visible .main-area{padding-bottom:calc(215px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:390px){
  .co-mini-checkout{width:calc(100% - 22px);gap:7px;padding:8px}
  .co-mini-text small{max-width:125px}
  .co-mini-checkout-btn{padding:11px 10px}
}
