.queue-after-hours-unit {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(23, 50, 34, 0.2);
  border-radius: 16px;
  padding: 13px 15px;
  background: linear-gradient(135deg, rgba(23, 50, 34, 0.09), rgba(185, 135, 76, 0.15));
  color: #173222;
  cursor: pointer;
}

.queue-after-hours-unit > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.queue-after-hours-check {
  grid-column: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(23, 50, 34, 0.46);
  border-radius: 7px;
  background: rgba(255, 253, 249, 0.92);
}

.queue-after-hours-unit > input:checked + .queue-after-hours-check {
  border-color: #173222;
  background: #173222;
}

.queue-after-hours-unit > input:checked + .queue-after-hours-check::after {
  content: '\2713';
  color: #fff8ed;
  font-size: 0.92rem;
  font-weight: 900;
}

.queue-after-hours-unit:has(input:focus-visible) {
  border-color: #173222;
  outline: 3px solid rgba(23, 50, 34, 0.13);
  outline-offset: 2px;
}

.queue-after-hours-copy {
  grid-column: 2;
  display: grid;
  gap: 3px;
  text-align: left;
}

.queue-after-hours-copy strong {
  color: #173222;
  font-size: 0.95rem;
  line-height: 1.2;
}

.queue-after-hours-copy span {
  color: #405447;
  font-size: 0.8rem;
  font-weight: 800;
}

.queue-after-hours-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #173222;
  color: #fff8ed;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .queue-after-hours-unit {
    padding: 11px 12px;
  }

  .queue-after-hours-copy strong {
    font-size: 0.86rem;
  }

  .queue-after-hours-copy span {
    font-size: 0.74rem;
  }
}

@media (max-height: 620px) {
  .queue-brand-chooser .nfc-store-chooser-card {
    grid-template-rows: auto auto auto;
  }

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

  .queue-brand-chooser .queue-after-hours-unit {
    grid-column: 2;
    padding: 8px 10px;
  }
}
