/* Compact dynamic search/cart/orders toolbar.
   Removes the floating ongoing-order barrier without touching booking, auth,
   payment, owner, or bottom navigation flows. */

.catalog-sticky-tools .search-row {
  display:flex;
  align-items:center;
  gap:10px;
}

.catalog-sticky-tools .search-row .search-box {
  flex:1 1 auto;
  min-width:0;
  width:auto;
}

.wigo-order-top-actions {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:8px;
}

.wigo-order-top-actions:empty {
  display:none;
}

/* Keep the ongoing-order panel retired; order access remains in orange Orders.
   The actual cart is the original black floating pill, positioned by
   order-ubereats-v1.css over the Guest Hub bottom navigation. */
.wigo-ongoing-order-card {
  display:none !important;
}

/* A cart pill never sits over its own open checkout sheet. */
body:has(#order-sheet:not([hidden])) #cart-bar {
  visibility:hidden;
  pointer-events:none;
}

.wigo-top-orders-button {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  min-width:96px;
  height:54px;
  padding:0 12px 0 15px;
  border:0;
  border-radius:999px;
  background:#f26a21;
  color:#fff;
  box-shadow:none;
  font:inherit;
  font-size:14px;
  font-weight:720;
  letter-spacing:-.01em;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.wigo-top-orders-button[hidden] {
  display:none !important;
}

.wigo-top-orders-label {
  line-height:1;
}

.wigo-top-orders-count {
  display:grid;
  place-items:center;
  min-width:24px;
  height:24px;
  padding:0 6px;
  border-radius:999px;
  background:#fff;
  color:#e95e16;
  font-size:12px;
  font-weight:800;
  line-height:1;
}

.wigo-top-orders-button:active,
body.wigo-order-ubereats-v1 #cart-bar:active {
  transform:scale(.96) !important;
}

@media(max-width:390px) {
  .catalog-sticky-tools .search-row {
    gap:7px;
  }

  .wigo-top-orders-button {
    min-width:90px;
    height:50px;
    padding:0 10px 0 13px;
    font-size:13px;
  }

  .wigo-top-orders-count {
    min-width:22px;
    height:22px;
    padding:0 5px;
    font-size:11px;
  }
}
