.mini-calendar {
  padding: 0.75rem;
  user-select: none;

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
  }

  &__month-title {
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    color: var(--c--theme--colors--greyscale-800);
  }

  &__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  &__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: var(--c--theme--colors--greyscale-500);
    transition: background-color 0.15s, color 0.15s;

    &:hover {
      background-color: var(--c--theme--colors--greyscale-100);
      color: var(--c--theme--colors--greyscale-700);
    }

    .material-icons {
      font-size: 1.25rem;
    }
  }

  &__grid {
    display: flex;
    flex-direction: column;
  }

  &__weekdays {
    display: grid;
    grid-template-columns: 2rem repeat(7, 1fr);
    gap: 0;
    margin-bottom: 0.25rem;
  }

  &__weekday {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c--theme--colors--greyscale-800);
    text-transform: lowercase;

    &--week-num {
      color: var(--c--theme--colors--greyscale-500);
      font-weight: 500;
      font-size: 0.7rem;
    }
  }

  &__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  &__week {
    display: grid;
    grid-template-columns: 2rem repeat(7, 1fr);
    gap: 0;
  }

  &__week-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--c--theme--colors--greyscale-400);
    font-weight: 400;
  }

  &__day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--c--theme--colors--greyscale-800);
    font-weight: 500;
    transition: background-color 0.15s;

    &:hover {
      background-color: var(--c--theme--colors--greyscale-100);
    }

    &--outside {
      color: var(--c--theme--colors--greyscale-400);
      font-weight: 400;
    }

    &--today {
      color: var(--c--theme--colors--primary-600);
      font-weight: 600;
    }

    &--selected {
      background-color: #8b4513;
      color: white;
      font-weight: 600;
      border-radius: 4px;

      &:hover {
        background-color: #7a3d11;
      }
    }
  }
}
