.week-day-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid var(--c--contextuals--border--surface--primary);
  background: var(--c--contextuals--background--surface--primary);

  // Row 1: day name letters
  &__names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
  }

  &__day-name {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--c--contextuals--content--semantic--neutral--secondary);
    line-height: 1;

    &--weekend {
      color: var(--c--contextuals--content--semantic--neutral--tertiary);
    }
  }

  // Row 2: day numbers
  &__numbers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
  }

  &__number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--c--contextuals--content--semantic--neutral--primary);
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;

    &--weekend {
      color: var(--c--contextuals--content--semantic--neutral--tertiary);
      font-weight: 400;
    }

    // Selected: circle drawn as pseudo-element so flex: 1 stays
    &--selected {
      color: var(--c--contextuals--content--semantic--neutral--on-neutral);
      z-index: 1;

      &::before {
        content: "";
        position: absolute;
        width: 36px;
        height: 36px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        background: var(--c--contextuals--background--semantic--brand--primary);
        z-index: -1;
      }
    }
  }
}
