/* Chrome that consumes public/brand/tokens.css. Logo art sizes are the export pixels. */

html {
  background: var(--hos-surface);
}

body {
  background: var(--hos-bg);
  color: var(--hos-text);
  font-family: var(--hos-font);
  font-variant-ligatures: none;
}

.hos-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
}

.hos-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: content-box;
  background: var(--hos-surface);
  line-height: 0;
}

.hos-header-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.hos-secondary,
.hos-shift-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #737373;
  border-radius: 12px;
  background: #fff;
  color: #1A1A1A;
  font-family: var(--hos-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}
.hos-shift-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--hos-radius-pill, 999px);
  background: var(--hos-action, #dd0033);
  color: var(--hos-on-action, #fff);
  font-family: var(--hos-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.hos-shift-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hos-shift-actions .hos-shift-primary {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}
.hos-shift-actions .hos-shift-primary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hos-shift-primary.is-clear {
  background: var(--hos-text-muted, #5B6770);
  color: var(--hos-on-action, #fff);
}
.hos-header-mark img {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hos-logo-slot-drawer {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.hos-logo-slot-drawer .hos-logo {
  width: 137px;
  height: 64px;
}

.hos-logo-slot-login {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto 8px;
  padding: 12px 0 4px;
}

.hos-logo-slot-login .hos-logo {
  width: 171px;
  height: 80px;
}

.hos-logo-slot.is-on-dark {
  background: var(--hos-action);
}

.hos-top {
  background: var(--hos-surface);
  padding: 0 var(--hos-space-16) var(--hos-space-8);
  padding-top: env(safe-area-inset-top, 0px);
}

.hos-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hos-space-12);
  min-height: var(--hos-target);
}

.hos-title {
  margin: 0;
  color: var(--hos-text);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--hos-text);
}

.hos-menu-button {
  width: var(--hos-target);
  height: var(--hos-target);
  min-width: var(--hos-target);
  min-height: var(--hos-target);
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hos-menu-button:hover,
.hos-menu-button:focus,
.hos-menu-button:focus-visible {
  background: transparent;
}
.hos-menu-button:active {
  background: #E5E7EB;
}

.hos-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1A1A1A;
  border-radius: 1px;
}

.hos-scrim {
  position: fixed;
  z-index: 80;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  right: 0;
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  left: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 240ms cubic-bezier(0.4, 0, 1, 1), visibility 0s linear 240ms;
}

.hos-scrim.is-open {
  opacity: 0.4;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 280ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0s;
}

[hidden] {
  display: none !important;
}

.hos-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 90;
  width: min(85vw, 360px);
  height: auto;
  max-height: 100dvh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--hos-surface);
  color: var(--hos-text);
  box-shadow: 0 8px 24px rgb(0 0 0 / 16%);
  border: 0;
  padding: env(safe-area-inset-top, 0px) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
  overflow: hidden;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 240ms cubic-bezier(0.4, 0, 1, 1), visibility 0s linear 240ms;
}

.hos-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 280ms cubic-bezier(0.2, 0, 0, 1), visibility 0s linear 0s;
}
.hos-drawer.is-open .hos-drawer-close {
  visibility: visible;
  opacity: 1;
}

@media (min-width: 768px) {
  .hos-drawer { width: 380px; }
}

.hos-drawer-top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
}
.hos-drawer-top > .hos-logo-slot {
  grid-column: 2;
  justify-self: center;
}

.hos-drawer-close,
.hos-drawer-signout,
.hos-drawer-item {
  font: inherit;
  font-size: var(--hos-type-body-size);
  line-height: var(--hos-type-body-line);
  color: var(--hos-text);
  text-decoration: none;
}

.hos-drawer-close {
  position: relative;
  grid-column: 3;
  justify-self: end;
  top: auto;
  right: auto;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--hos-text);
  visibility: visible;
}

.hos-drawer-head {
  margin: 0 -16px;
  padding: 0 16px;
}

.hos-drawer-heading {
  margin: var(--hos-space-8) 0;
  font-size: var(--hos-type-section-size);
  line-height: var(--hos-type-section-line);
  font-weight: var(--hos-type-section-weight);
}

.hos-drawer-rule {
  display: block;
  height: 0;
  margin: 8px -16px 0;
  border: 0;
  border-top: 1px solid #E5E7EB;
  background: transparent;
}

.hos-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 -16px;
  padding: 0;
}

.hos-drawer-goto {
  flex: 0 0 auto;
  margin-top: 16px;
  overflow: visible;
}

.hos-drawer-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 8px 16px 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--hos-text);
  overflow: visible;
}
.hos-drawer-label {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.hos-drawer-group-title {
  margin: 12px 16px 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: #5b6770;
}

.hos-drawer-item + .hos-drawer-item::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--hos-divider, #E5E7EB);
}

.hos-drawer-item.is-current::before,
.hos-drawer-item.is-current + .hos-drawer-item::before {
  display: none;
}

.hos-drawer-arrow {
  margin-left: 8px;
  color: var(--hos-text);
}

.hos-drawer-item.is-current {
  background: var(--hos-surface-selected);
  box-shadow: inset 4px 0 0 var(--hos-accent);
  font-weight: 400;
}

.hos-drawer-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: var(--hos-space-16);
  padding-top: var(--hos-space-12);
  border-top: 1px solid var(--hos-divider);
}

.hos-drawer-name {
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  font-weight: 700;
}

.hos-drawer-back {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #737373;
  border-radius: 12px;
  background: #e3e5e8;
  color: #1c2b36;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
}

.hos-drawer-pin,
.hos-pin-key,
.hos-pin-choice,
.hos-pin-cancel {
  box-sizing: border-box;
  min-height: 44px;
  font-size: 16px;
}
.hos-pin-actions,
.hos-pin-row {
  display: flex;
  gap: 8px;
}
.hos-pin-row .hos-drawer-signout,
.hos-pin-row .hos-drawer-pin {
  flex: 1 1 0;
  width: auto;
}
.hos-drawer-pin {
  flex: 1 1 auto;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #737373;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
}
.hos-pin-state {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.hos-pin-pad {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgb(0 0 0 / 40%);
}
.hos-pin-card {
  width: min(100%, 360px);
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  color: #1a1a1a;
}
.hos-pin-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.hos-pin-help,
.hos-pin-msg {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 24px;
}
.hos-pin-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 16px;
}
.hos-pin-dot {
  width: 16px;
  height: 16px;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
}
.hos-pin-dot.is-on {
  background: #1a1a1a;
}
.hos-pin-keys {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hos-pin-key,
.hos-pin-choice,
.hos-pin-cancel {
  width: 100%;
  border: 1px solid #737373;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
}
.hos-pin-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hos-pin-cancel {
  margin-top: 12px;
}
.hos-drawer-signout {
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #737373;
  border-radius: 12px;
  background: #fff;
  color: #1A1A1A;
  font-family: var(--hos-font);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hos-nav-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.hos-nav-open {
  overflow: hidden;
}
body.hos-nav-open header,
body.hos-nav-open .hos-top,
body.hos-nav-open .ops-top {
  z-index: 1;
}

.hos-segment {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--hos-space-4);
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: var(--hos-space-8) var(--hos-space-16);
  margin-right: auto;
  padding: var(--hos-space-4);
  border: 0;
  border-radius: var(--hos-radius-pill);
  background: var(--hos-surface-subtle);
}

.hos-seg-indicator {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  border-radius: var(--hos-radius-pill);
  background: var(--hos-accent);
  transition: transform var(--hos-motion-fast) var(--hos-motion-ease), width var(--hos-motion-fast) var(--hos-motion-ease);
  pointer-events: none;
}

.hos-segment button,
.store-bar.hos-segment .store-bar-tab {
  position: relative;
  z-index: 1;
  min-width: var(--hos-target);
  min-height: var(--hos-target);
  padding: 0 var(--hos-space-12);
  border: 0;
  border-radius: var(--hos-radius-pill);
  background: transparent;
  color: var(--hos-text);
  font: inherit;
  font-size: var(--hos-type-label-size);
  font-weight: var(--hos-type-label-weight);
  line-height: var(--hos-type-label-line);
}

.hos-area-toggle.hos-segment button,
.hos-area-toggle.hos-segment .store-bar-tab {
  min-width: 3.25rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
}

.hos-area-toggle .hos-seg-indicator,
.hos-area-toggle.hos-segment button.is-active,
.hos-area-toggle.hos-segment .store-bar-tab.is-active {
  background: var(--hos-text-muted, #5B6770);
  color: var(--hos-on-action, #fff);
}

button.is-current[data-template-id] {
  background: var(--hos-text-muted, #5B6770);
  border-color: var(--hos-text-muted, #5B6770);
  color: var(--hos-on-action, #fff);
}

.hos-segment button.is-active,
.store-bar.hos-segment .store-bar-tab.is-active {
  background: var(--hos-accent);
  color: var(--hos-on-action);
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--hos-focus);
  outline-offset: 2px;
}

.hos-segment button.is-active:focus-visible,
.hos-on-fill:focus-visible {
  outline-color: var(--hos-on-action);
  box-shadow: 0 0 0 2px var(--hos-surface);
}

.hos-store-tabs {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 24px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hos-store-tabs .store-bar-tab,
.hos-store-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5B6770;
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
  box-shadow: none;
}

.hos-store-tabs .store-bar-tab[aria-selected="true"],
.hos-store-tabs button[aria-selected="true"] {
  background: transparent;
  color: #940929;
  font-weight: 500;
}

.hos-store-tabs .store-bar-tab[aria-selected="true"]::after,
.hos-store-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: #DD0033;
  border-radius: 2px 2px 0 0;
}

@media (hover: hover) {
  .hos-store-tabs .store-bar-tab:hover,
  .hos-store-tabs button:hover {
    background: transparent;
    color: #1A1A1A;
  }
  .hos-store-tabs .store-bar-tab[aria-selected="true"]:hover,
  .hos-store-tabs button[aria-selected="true"]:hover {
    color: #940929;
  }
}

.btn-secondary--compact {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #737373;
  border-radius: 8px;
  background: #fff;
  color: #1A1A1A;
  font-family: var(--hos-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
}
.btn-secondary--compact::after {
  content: "";
  position: absolute;
  inset: -6px 0;
  background: transparent;
}
.hos-store-row > .hos-view-toggle {
  align-self: center;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}
:root {
  --hos-below-store: 12px;
}
.hos-below-store {
  margin-top: var(--hos-below-store);
}
.hos-store-row {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid #E5E7EB;
  background: var(--hos-surface, #fff);
}
.hos-store-row .hos-store-tabs {
  flex: 1 1 auto;
  align-self: stretch;
  border-bottom: 0;
  margin: 0;
  padding: 0;
}
.hos-store-row .hos-store-tabs .store-bar-tab,
.hos-store-row .hos-store-tabs button {
  align-self: stretch;
}
.hos-filter-button {
  flex: 0 0 auto;
  margin: 0;
}
.hos-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #E5E7EB;
}
.hos-bottom-search { flex: 1 1 auto; min-width: 0; }
.hos-bottom-search input,
.hos-bottom input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #737373;
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
}
.hos-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #DD0033;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
}
@media (hover: hover) {
  .hos-add:hover { background: #940929; color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .hos-seg-indicator,
  .hos-drawer,
  .hos-scrim {
    transition: none;
  }
}
