.calendarWrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.calendarWrapper .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendarWrapper .date-text {
  padding: 5px;
  font: normal normal 15px/1.2em var(--tt-main-font);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.calendarWrapper .actions {
  display: flex;
}

.calendarWrapper .action {
  padding: 5px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.calendarWrapper .action svg {
  width: 15px;
  height: 15px;
}

.calendarWrapper .action svg:hover {
  fill: var(--tt-dark-red);
}

.calendarWrapper .calendar {
  display: grid;
  place-items: center;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: max-content;
  grid-auto-flow: row;
}

.calendar .cell {
  position: relative;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  color: #000000;
  z-index: 1;
  
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.calendar .cell:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: transparent;
  z-index: -1;
}

.calendar .cell.currentWeek {
  background-color: #efefef;
}

.calendar .highlight,
.calendar .currentWeek {
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
}
.calendar .highlight + .highlight,
.calendar .currentWeek + .currentWeek {
  border-radius: 0;
}

.calendar .cell:last-of-type,
.calendar .cell:nth-of-type(7n) {
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
}

.calendar .cell.current:before {
  background-color: var(--tt-dark-red);
  border-radius: 50%;
}

.calendar .cell.current {
  border-radius: 50%;
  background-color: #7daa4b;
  color: #ffffff;
}

.calendar .cell.highlight {
  background-color: #f8f8f8;
}

.calendar .cell:empty {
  width: 0;
  padding: 0;
}

.calendar .cell--unselectable {
  color: #000000;
  font: normal bold 15px/1.8em var(--tt-main-font);
}

.calendar .cell--unselectable:hover,
.calendar .cell--unselectable:focus,
.calendar .cell--unselectable:hover:before,
.calendar .cell--unselectable:focus:before {
  background-color: transparent;
  color: #000000;
}
