.customer-order-live-banner-shell,
.customer-order-live-banner {
  display: none;
}

@media (max-width: 900px) {
  .customer-order-live-banner-shell {
    display: grid;
    width: min(calc(100% - 20px), 560px);
    margin: 8px auto;
    gap: 6px;
  }

  .customer-order-live-banner {
    --customer-order-accent: #2563eb;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    position: relative;
    z-index: 20;
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 10px 42px 10px 14px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-left: 5px solid var(--customer-order-accent);
    border-radius: 16px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-decoration: none;
  }

  .customer-order-live-banner:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
  }

  .customer-order-live-banner--open {
    --customer-order-accent: #15803d;
  }

  .customer-order-live-banner--warning,
  .customer-order-live-banner.is-eta-alert {
    --customer-order-accent: #b45309;
  }

  .customer-order-live-banner--closed {
    --customer-order-accent: #64748b;
  }

  .customer-order-live-banner__label {
    grid-column: 1;
    color: #475569;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .customer-order-live-banner__copy {
    display: flex;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
  }

  .customer-order-live-banner__status {
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.25;
  }

  .customer-order-live-banner__hint {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .customer-order-live-banner__eta,
  .customer-order-live-banner__notice {
    flex-basis: 100%;
    width: fit-content;
    color: #075985;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .customer-order-live-banner__eta[hidden],
  .customer-order-live-banner__notice[hidden] {
    display: none;
  }

  .customer-order-live-banner__notice {
    color: #92400e;
  }

  .customer-order-live-banner__chevron {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #475569;
    font-size: 1.8rem;
    line-height: 1;
    transform: translateY(-50%);
  }

  .customer-order-live-banner.is-complete {
    opacity: 0.82;
  }

  .customer-order-live-banner__enable {
    justify-self: end;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid #94a3b8;
    border-radius: 999px;
    color: #0f172a;
    background: #ffffff;
    font: 800 0.75rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    cursor: pointer;
  }

  .customer-order-live-banner__enable[hidden] {
    display: none;
  }

  .customer-order-live-banner__enable:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
  }

  .customer-order-live-banner__enable:disabled {
    color: #64748b;
    cursor: default;
  }
}

@media (max-width: 390px) {
  .customer-order-live-banner {
    min-height: 72px;
    padding-block: 9px;
    border-radius: 14px;
  }

  .customer-order-live-banner__hint {
    max-width: 26ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-order-live-banner {
    scroll-behavior: auto;
  }
}
