.bido-cart-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 12px;
  align-items: center;
  border-bottom: 1px solid var(--bx-line);
}

.bido-cart-row:last-child {
  border-bottom: 0;
}

.bido-cart-row > * {
  min-width: 0;
}

.bido-cart-row .copy-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.bido-cart-trip-title {
  margin-bottom: 4px;
}

.bido-cart-trip-meta {
  font-size: var(--bx-text-md);
}

.bido-cart-section {
  margin-top: 22px;
}

.bido-cart-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.bido-cart-cta { margin-top: 18px; }
.bido-cart-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r-sm);
  background: var(--bx-paper-2);
}

.bido-cart-row-wheels {
  align-items: start;
}

.bido-cart-wheels-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bido-cart-wheels-edit {
  margin-top: 4px;
}

.bido-cart-wheels-edit summary {
  display: inline-flex;
  cursor: pointer;
  font-size: var(--bx-text-sm);
  color: var(--bx-accent);
}

.bido-cart-wheels-edit summary::-webkit-details-marker {
  display: none;
}

/* Wheels editor used to be a barely-styled <summary> with text only; promote
   it to a small pill so the editor is obvious on first scan. The caret rotates
   when the disclosure is open. */
.bido-cart-wheels-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--bx-r-pill);
  border: 1px solid var(--bx-accent-line);
  background: var(--bx-accent-soft);
  color: var(--bx-accent-ink, var(--bx-accent));
  font-weight: 700;
  font-size: var(--bx-text-xs);
  letter-spacing: 0.02em;
  list-style: none;
}

.bido-cart-wheels-toggle-caret {
  display: inline-flex;
  transition: transform 0.15s ease-out;
}

[open] > .bido-cart-wheels-toggle .bido-cart-wheels-toggle-caret {
  transform: rotate(90deg);
}

@media (any-hover: hover) {
  .bido-cart-wheels-toggle:hover {
    background: rgba(var(--bx-accent-rgb), 0.18);
  }
}

.bido-cart-wheels-toggle:focus-visible {
  outline: 2px solid var(--bx-accent);
  outline-offset: 2px;
}

.bido-cart-wheels-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--bx-line);
  border-radius: var(--bx-r);
  background: var(--bx-paper-2);
}

.bido-cart-wheels-label {
  display: grid;
  gap: 6px;
  font-family: var(--bx-font-mono);
  font-size: var(--bx-text-2xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bx-ink-3);
}

.bido-cart-wheels-form .bido-wheels-vehicle-input {
  inline-size: 100%;
}

/* The day count keeps its own small save form beside the immediate −/+ vehicle
   stepper, so it stacks its label, field, and submit. */
.bido-cart-wheels-days {
  display: grid;
  gap: 8px;
}

/* Category upsell — nudges the organizer toward the first category missing
   from the trip (stays → wheels → vibes → pros, one at a time). The CTA
   routes to that category's builder step; items are never added from here.
   The 30px column matches the pchip footprint, mirroring the row grids above. */
.bido-cart-upsell-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
  align-items: center;
}

.bido-cart-upsell-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bido-cart-upsell-sub {
  font-size: var(--bx-text-md);
}

/* === Responsive — cart ===
   The cart row drops to glyph + copy; price and remove action wrap under.
   The upsell CTA wraps under its copy the same way. */
@media (max-width: 48rem) {
  .bido-cart-row {
    grid-template-columns: 60px 1fr;
  }
  .bido-cart-row > .num,
  .bido-cart-row > .button_to {
    grid-column: 2;
  }
  .bido-cart-upsell-card {
    grid-template-columns: 30px 1fr;
  }
  .bido-cart-upsell-card > .btn {
    grid-column: 2;
    justify-self: start;
  }
}

