.queue-preview-page {
  --queue-accent: #174d33;
  --queue-accent-rgb: 23, 77, 51;
  --queue-ink: #102117;
  --queue-muted: #54665c;
  --queue-bg-image: url("../assets/beauty-blvd/barber-commons-bg.png");
  min-height: 100vh;
  color: var(--queue-ink);
  background:
    linear-gradient(180deg, rgba(6, 8, 7, 0.1), rgba(6, 8, 7, 0.36)),
    linear-gradient(90deg, rgba(var(--queue-accent-rgb), 0.42), rgba(185, 135, 76, 0.13)),
    var(--queue-bg-image) center / cover fixed;
  overflow-x: hidden;
}

.queue-preview-page[data-queue-brand="arc"] {
  --queue-accent: #143f91;
  --queue-accent-rgb: 20, 63, 145;
  --queue-ink: #101832;
  --queue-muted: #53617e;
  --queue-bg-image: url("../assets/beauty-blvd/arc-bg.jpg");
}

.queue-preview-page[data-queue-brand="hairlab"] {
  --queue-accent: #43240f;
  --queue-accent-rgb: 67, 36, 15;
  --queue-ink: #351a07;
  --queue-muted: #725b4c;
  --queue-bg-image: url("../assets/web_bg-optimized.jpg");
}

.queue-preview-page[data-queue-brand="nile-reed"] {
  --queue-accent: #432817;
  --queue-accent-rgb: 67, 40, 23;
  --queue-ink: #321e13;
  --queue-muted: #755d50;
  --queue-bg-image: url("../assets/beauty-blvd/nile-reed-bg.png");
}

.queue-preview-page *,
.queue-preview-page *::before,
.queue-preview-page *::after {
  box-sizing: border-box;
}

body.queue-preview-page {
  padding: 0;
}

.queue-preview-page.is-choosing-brand .queue-preview-shell {
  filter: blur(10px) saturate(105%);
  opacity: 0.52;
  pointer-events: none;
  user-select: none;
}

.queue-preview-shell {
  width: min(760px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: clamp(18px, 5vw, 44px) 0;
}

.queue-client-card {
  width: 100%;
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  padding: clamp(18px, 4vw, 34px);
  border-color: rgba(var(--queue-accent-rgb), 0.24);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 246, 0.68)),
    rgba(255, 255, 255, 0.68);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

.queue-client-head {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.queue-preview-logo {
  width: min(210px, 55vw);
  max-height: 72px;
  object-fit: contain;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(var(--queue-accent-rgb), 0.96);
}

.queue-preview-page[data-queue-brand="hairlab"] .queue-preview-logo,
.queue-preview-page[data-queue-brand="nile-reed"] .queue-preview-logo {
  padding: 12px 14px;
  border-color: rgba(var(--queue-accent-rgb), 0.2);
  background: #fffaf2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.queue-preview-page[data-queue-brand="nile-reed"] .queue-preview-logo {
  width: min(250px, 58vw);
}

.queue-change-brand {
  min-height: 38px;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.18);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--queue-accent);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.queue-step-tabs {
  --queue-progress-width: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 12px 0 0;
  list-style: none;
}

.queue-step-tabs::before,
.queue-step-tabs::after {
  position: absolute;
  top: 22px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  border-radius: 999px;
  content: "";
}

.queue-step-tabs::before {
  background: rgba(var(--queue-accent-rgb), 0.18);
}

.queue-step-tabs::after {
  right: auto;
  width: var(--queue-progress-width);
  background: var(--queue-accent);
  transition: width 220ms ease;
}

.queue-step-tabs li {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--queue-muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.queue-step-tabs li::before {
  width: 22px;
  height: 22px;
  display: block;
  border: 2px solid rgba(var(--queue-accent-rgb), 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.64);
  content: "";
}

.queue-step-tabs li.is-active,
.queue-step-tabs li.is-complete {
  color: var(--queue-accent);
}

.queue-step-tabs li.is-active::before,
.queue-step-tabs li.is-complete::before {
  border-color: var(--queue-accent);
  background: var(--queue-accent);
}

.queue-step-tabs li.is-active::before {
  animation: queue-progress-pulse 1.5s ease-in-out infinite;
}

@keyframes queue-progress-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.64), 0 0 0 0 rgba(var(--queue-accent-rgb), 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.64), 0 0 0 8px rgba(var(--queue-accent-rgb), 0);
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .queue-step-tabs li.is-active::before {
    animation: none;
  }
}

.queue-page,
.queue-step-page,
.queue-service-list,
.queue-addon-list,
.queue-addon-group-list,
.queue-preview-form {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.queue-preview-page.is-queue-joining .queue-client-head,
.queue-preview-page.is-queue-joining .queue-step-tabs {
  display: none;
}

.queue-preview-page.is-queue-joining {
  height: 100dvh;
  overflow: hidden;
}

.queue-preview-page.is-queue-joining .queue-preview-shell {
  height: 100dvh;
  min-height: 100dvh;
  padding: clamp(8px, 2dvh, 18px) 0;
}

.queue-preview-page.is-queue-joining .queue-client-card {
  height: 100%;
  min-height: 0;
  place-items: stretch;
  overflow: hidden;
  padding: clamp(12px, 3dvh, 24px);
}

.queue-preview-page.is-queue-joining .queue-page {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.queue-loading-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(10px, 2dvh, 20px);
  padding: clamp(4px, 2dvh, 16px);
  overflow: hidden;
  text-align: center;
}

.queue-loading-stage {
  position: relative;
  width: clamp(140px, min(390px, 78vw, calc(100dvh - 250px)), 390px);
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: clamp(18px, 4vw, 32px);
}

.queue-loading-animation,
.queue-loading-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.queue-loading-animation {
  z-index: 2;
}

.queue-loading-animation svg {
  width: 100% !important;
  height: 100% !important;
}

.queue-loading-fallback {
  z-index: 1;
  padding: 28%;
  object-fit: contain;
  background: rgba(var(--queue-accent-rgb), 0.96);
  transition: opacity 180ms ease;
}

.queue-loading-page.has-lottie .queue-loading-fallback {
  opacity: 0;
}

.queue-loading-copy {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.queue-loading-copy :is(h1, p) {
  margin: 0;
}

.queue-loading-copy h1 {
  max-width: 560px;
  color: var(--queue-ink);
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, min(6vw, 5dvh), 3rem);
  line-height: 1.02;
}

.queue-loading-copy > p:last-child {
  color: var(--queue-muted);
  font-size: 0.96rem;
}

.queue-step-page {
  gap: 18px;
}

.queue-preview-section-head {
  display: grid;
  gap: 5px;
}

.queue-preview-section-head h1 {
  margin: 0;
  color: var(--queue-ink);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 0.98;
}

.queue-preview-helper,
.queue-confirmation-copy {
  margin: 0;
  color: rgba(16, 33, 23, 0.72);
  line-height: 1.5;
}

.queue-preview-helper {
  border: 1px solid rgba(var(--queue-accent-rgb), 0.22);
  border-left: 5px solid var(--queue-accent);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(var(--queue-accent-rgb), 0.08);
  color: var(--queue-ink);
  font-weight: 750;
}

.queue-service-card,
.queue-addon-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--queue-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.queue-service-card:hover,
.queue-service-card:focus-visible,
.queue-addon-card:hover,
.queue-addon-card:focus-visible {
  border-color: rgba(var(--queue-accent-rgb), 0.38);
  box-shadow: 0 12px 28px rgba(var(--queue-accent-rgb), 0.13);
  outline: none;
  transform: translateY(-1px);
}

.queue-service-card.is-selected,
.queue-addon-card.is-selected,
.queue-variant-card.is-selected {
  border-color: rgba(var(--queue-accent-rgb), 0.5);
  background: rgba(var(--queue-accent-rgb), 0.1);
  box-shadow: inset 0 0 0 1px rgba(var(--queue-accent-rgb), 0.15);
}

.queue-variant-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.queue-variant-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.queue-variant-head strong {
  color: var(--queue-ink);
  font-size: 1.02rem;
}

.queue-variant-head span {
  color: var(--queue-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.queue-variant-field {
  display: grid;
  gap: 7px;
  color: var(--queue-muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.queue-variant-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.22);
  border-radius: 8px;
  padding: 0 42px 0 12px;
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--queue-ink);
  font: 700 1rem/1.3 var(--font-sans);
}

.queue-variant-field select:focus-visible {
  border-color: rgba(var(--queue-accent-rgb), 0.55);
  outline: 3px solid rgba(var(--queue-accent-rgb), 0.1);
}

.queue-priority-summary,
.queue-selected-services {
  min-width: 0;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.22);
  border-radius: 10px;
  padding: 13px 14px;
  background: rgba(var(--queue-accent-rgb), 0.08);
}

.queue-priority-summary span {
  color: var(--queue-accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.queue-priority-summary strong,
.queue-selected-services > strong {
  color: var(--queue-ink);
  line-height: 1.35;
}

.queue-selected-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.queue-selected-service-list button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.2);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--queue-accent);
  font: 800 0.8rem/1.25 var(--font-sans);
  cursor: pointer;
}

.queue-selected-service-list button span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.queue-selected-service-list button span:last-child {
  font-size: 1.15rem;
  line-height: 1;
}

.queue-service-content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.queue-closed-dialog {
  width: min(92vw, 480px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--queue-ink);
}

.queue-closed-dialog::backdrop {
  background: rgba(8, 24, 16, 0.64);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.queue-closed-card {
  padding: clamp(24px, 6vw, 36px);
  border: 1px solid rgba(var(--queue-accent-rgb), 0.18);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(7, 24, 16, 0.22);
}

.queue-closed-card h2,
.queue-closed-card p {
  margin-top: 0;
}

.queue-closed-card .queue-step-actions {
  margin-top: 24px;
}

.queue-card-title-row,
.queue-card-meta-row {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.queue-card-title-row strong {
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.queue-card-meta-row {
  justify-content: flex-start;
  color: var(--queue-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.queue-price {
  color: var(--queue-accent);
  font-weight: 920;
}

.queue-subservices {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  color: rgba(16, 33, 23, 0.72);
  font-size: 0.9rem;
  line-height: 1.35;
  list-style: none;
}

.queue-subservices li {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.queue-addon-group {
  overflow: hidden;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.queue-addon-group summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  color: var(--queue-ink);
  cursor: pointer;
}

.queue-addon-group summary strong {
  font-size: 1.05rem;
}

.queue-addon-group summary span {
  color: var(--queue-muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.queue-addon-group-list {
  padding: 0 12px 12px;
}

.queue-service-action {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--queue-accent);
  font-size: 1.35rem;
  font-weight: 650;
  line-height: 1;
}

.queue-service-action.is-selected,
.queue-addon-card.is-selected .queue-service-action,
.queue-service-card.is-selected .queue-service-action {
  background: var(--queue-accent);
  color: #fff;
}

.queue-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.queue-preview-form label {
  display: grid;
  gap: 7px;
  color: rgba(16, 33, 23, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.queue-preview-form input,
.queue-preview-form textarea {
  width: 100%;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.16);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--queue-ink);
  font: 650 1rem/1.35 var(--font-sans);
  letter-spacing: 0;
  outline: none;
}

.queue-preview-form input {
  min-height: 46px;
}

.queue-preview-form textarea {
  min-height: 96px;
  padding-block: 11px;
  resize: vertical;
}

.queue-preview-form input:focus,
.queue-preview-form textarea:focus {
  border-color: rgba(var(--queue-accent-rgb), 0.44);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--queue-accent-rgb), 0.08);
}

.queue-preview-form .queue-consent {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.queue-preview-form .queue-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--queue-accent);
}

.queue-policy-consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  color: rgba(16, 33, 23, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.queue-policy-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--queue-accent);
}

.queue-policy-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--queue-accent);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.queue-monday-dialog,
.queue-policy-dialog,
.queue-cancel-dialog {
  width: min(92vw, 540px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--queue-ink);
}

.queue-monday-dialog::backdrop,
.queue-policy-dialog::backdrop,
.queue-cancel-dialog::backdrop {
  background: rgba(8, 24, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.queue-overlay-card {
  display: grid;
  gap: 18px;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: clamp(24px, 6vw, 38px);
  border: 1px solid rgba(var(--queue-accent-rgb), 0.18);
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 24px 70px rgba(7, 24, 16, 0.28);
}

.queue-overlay-card :is(h2, p, ul) {
  margin: 0;
}

.queue-overlay-card h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  line-height: 1.05;
}

.queue-monday-card > p:not(.nfc-kicker) {
  color: var(--queue-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.queue-monday-card > .btn {
  width: 100%;
  min-height: 48px;
}

.queue-policy-list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
  color: var(--queue-muted);
  line-height: 1.5;
}

.queue-cancel-summary {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(var(--queue-accent-rgb), 0.16);
  border-radius: 10px;
  padding: 14px;
  background: rgba(var(--queue-accent-rgb), 0.07);
}

.queue-cancel-summary strong {
  color: var(--queue-accent);
}

.queue-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.queue-error {
  color: #982f2f;
}

.queue-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.queue-step-actions .btn {
  min-height: 44px;
}

.queue-step-actions .btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.queue-summary-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-summary-list li {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(var(--queue-accent-rgb), 0.1);
  padding-bottom: 8px;
  color: var(--queue-muted);
}

.queue-summary-list strong {
  flex: 0 0 auto;
  color: var(--queue-ink);
}

.queue-summary-list span {
  min-width: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.queue-brand-chooser .nfc-store-choice {
  appearance: none;
  width: 100%;
  font: inherit;
}

.queue-brand-chooser .nfc-store-choice[data-store-brand="hairlab"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: #5b2f20;
  box-shadow:
    0 12px 26px rgba(67, 36, 15, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.queue-brand-chooser .nfc-store-choice[data-store-brand="nile-reed"] {
  border-color: rgba(255, 255, 255, 0.22);
  background: #711c32;
  box-shadow:
    0 12px 26px rgba(75, 12, 31, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.queue-brand-chooser .nfc-store-choice[data-store-brand="hairlab"]:hover,
.queue-brand-chooser .nfc-store-choice[data-store-brand="hairlab"]:focus-visible,
.queue-brand-chooser .nfc-store-choice[data-store-brand="nile-reed"]:hover,
.queue-brand-chooser .nfc-store-choice[data-store-brand="nile-reed"]:focus-visible {
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow:
    0 16px 30px rgba(67, 40, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.queue-brand-chooser .nfc-store-choice[data-store-brand="hairlab"] img {
  width: min(225px, 88%);
  max-height: 54px;
}

.queue-brand-chooser .nfc-store-choice[data-store-brand="nile-reed"] img {
  width: min(250px, 94%);
  max-height: 58px;
}

.queue-brand-chooser .nfc-store-chooser-card {
  width: min(520px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 28px);
  overflow: hidden;
}

.queue-brand-chooser .nfc-store-chooser-logo {
  width: min(290px, 78vw);
}

body.queue-preview-page[data-client-brand="arc"] .queue-client-card {
  border-color: rgba(var(--queue-accent-rgb), 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.68)),
    rgba(255, 255, 255, 0.68);
  color: var(--queue-ink);
}

body.queue-preview-page[data-client-brand="arc"] .queue-client-card :is(h1, h2, h3, h4),
body.queue-preview-page[data-client-brand="barber-commons"] .queue-client-card :is(h1, h2, h3, h4) {
  color: var(--queue-ink);
}

body.queue-preview-page[data-client-brand="arc"] .queue-client-card :is(p, li, .nfc-kicker, .queue-confirmation-copy),
body.queue-preview-page[data-client-brand="barber-commons"] .queue-client-card :is(p, li, .nfc-kicker, .queue-confirmation-copy) {
  color: rgba(16, 33, 23, 0.72);
}

body.queue-preview-page[data-client-brand="arc"] .queue-client-card .nfc-kicker,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-client-card .nfc-kicker,
body.queue-preview-page[data-client-brand="arc"] .queue-price,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-price,
body.queue-preview-page[data-client-brand="arc"] .queue-summary-list strong,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-summary-list strong {
  color: var(--queue-accent);
}

body.queue-preview-page[data-client-brand="arc"] .queue-summary-list span,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-summary-list span,
body.queue-preview-page[data-client-brand="arc"] .queue-card-meta-row,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-card-meta-row,
body.queue-preview-page[data-client-brand="arc"] .queue-step-tabs li,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-step-tabs li {
  color: var(--queue-muted);
}

body.queue-preview-page[data-client-brand="arc"] .queue-step-tabs li.is-active,
body.queue-preview-page[data-client-brand="arc"] .queue-step-tabs li.is-complete,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-step-tabs li.is-active,
body.queue-preview-page[data-client-brand="barber-commons"] .queue-step-tabs li.is-complete {
  color: var(--queue-accent);
}

@media (max-width: 620px) {
  .queue-preview-shell {
    width: min(360px, calc(100vw - 28px));
    min-height: auto;
    margin-left: 14px;
    margin-right: auto;
    padding: 14px 0 24px;
    place-items: start stretch;
  }

  .queue-client-card {
    min-height: calc(100vh - 38px);
    border-radius: 18px;
    padding: 18px 14px 22px;
  }

  .queue-preview-page.is-queue-joining .queue-preview-shell {
    width: calc(100vw - 16px);
    margin: 0 8px;
    padding: 8px 0;
  }

  .queue-preview-page.is-queue-joining .queue-client-card {
    height: 100%;
    min-height: 0;
    padding: clamp(10px, 2.5dvh, 16px);
  }

  .queue-loading-stage {
    width: clamp(130px, min(310px, 76vw, calc(100dvh - 230px)), 310px);
  }

  .queue-loading-copy h1 {
    font-size: clamp(1.45rem, min(8vw, 5dvh), 2.35rem);
  }

  .queue-client-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    gap: 10px;
  }

  .queue-preview-logo {
    width: min(170px, 100%);
  }

  .queue-change-brand {
    min-height: 44px;
    padding: 6px 9px;
    font-size: 0.76rem;
  }

  .queue-consent {
    min-height: 44px;
    align-items: center;
  }

  .queue-policy-consent {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .queue-policy-link {
    grid-column: 2;
    justify-self: start;
    min-height: 32px;
  }

  .queue-step-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .queue-step-tabs li {
    font-size: 0.63rem;
  }

  .queue-preview-section-head h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .queue-summary-list li {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .queue-summary-list span {
    text-align: left;
  }

  .queue-preview-grid {
    grid-template-columns: 1fr;
  }

  .queue-step-actions {
    justify-content: stretch;
  }

  .queue-step-actions .btn {
    flex: 1 1 140px;
  }

  .queue-brand-chooser {
    width: 100vw;
    height: 100dvh;
    padding: 8px;
    place-items: center;
    overflow: hidden;
  }

  .queue-brand-chooser .nfc-store-chooser-card {
    width: min(420px, 100%);
    max-height: calc(100dvh - 16px);
    gap: 12px;
    margin: 0;
    padding: 16px;
    overflow: hidden;
  }

  .queue-brand-chooser .nfc-store-chooser-logo {
    width: min(250px, 76vw);
    max-height: 70px;
    padding: 7px 9px;
  }

  .queue-brand-chooser .nfc-store-chooser-card .nfc-next-steps-head {
    gap: 4px;
    padding-bottom: 10px;
  }

  .queue-brand-chooser .nfc-store-chooser-card .nfc-next-steps-head h1,
  .queue-brand-chooser .nfc-store-chooser-card .nfc-next-steps-head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1;
  }

  .queue-brand-chooser .nfc-store-chooser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    gap: 10px;
  }

  .queue-brand-chooser .nfc-store-choice {
    min-height: clamp(74px, 16dvh, 104px);
    padding: 12px 18px;
  }

  .queue-brand-chooser .nfc-store-choice img {
    max-width: 78%;
    max-height: 42px;
  }

  .queue-brand-chooser .nfc-store-choice[data-store-brand="hairlab"] img {
    width: 88%;
    max-width: 88%;
    max-height: 46px;
  }

  .queue-brand-chooser .nfc-store-choice[data-store-brand="nile-reed"] img {
    width: 96%;
    max-width: 96%;
    max-height: 48px;
  }
}

@media (max-height: 620px) and (min-width: 621px) {
  .queue-preview-page.is-queue-joining .queue-client-card {
    padding: 12px 18px;
  }

  .queue-loading-page {
    grid-template-columns: minmax(140px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    justify-items: stretch;
    gap: 18px;
    padding: 0 8px;
  }

  .queue-loading-stage {
    width: min(260px, 36vw, calc(100dvh - 40px));
    justify-self: center;
  }

  .queue-loading-copy {
    justify-items: start;
    text-align: left;
  }

  .queue-loading-copy h1 {
    font-size: clamp(1.55rem, 5vw, 2.35rem);
  }
}

@media (max-height: 620px) {
  .queue-brand-chooser .nfc-store-chooser-card {
    grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto;
    align-items: center;
  }

  .queue-brand-chooser .nfc-store-chooser-logo {
    grid-row: 1 / 3;
  }

  .queue-brand-chooser .nfc-store-chooser-card .nfc-next-steps-head {
    padding-bottom: 6px;
  }

  .queue-brand-chooser .nfc-store-choice {
    min-height: 68px;
  }
}
