::root {
  --cs-calendar-last-column: '7n'
}

.cs-calendar {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-calendar.disabled *:not(.cs-calendar-disabled-content) {
  opacity: 0.8;
}

.cs-calendar-disabled-content {
  display: flex;
  height: 100%;
  width: 100%;
  background-color: rgba(150, 150, 150, 0.3);
  align-items: center;
  justify-content: center;
  position: absolute;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

.cs-calendar-disabled-content p {
  margin: 0;
  font-size: 1.2rem;
  color: #080000;
  font-weight: 800;
  text-align: center;
  background: #fff;
  border-radius: 5px;
  padding: 5px;
  opacity: 1 !important;
}

.cs-calendar-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  gap: 1rem;
}

.cs-calendar-title {
  flex: 1;
  font-size: 1rem;
  text-align: center;
  margin: 0;
}

.cs-calendar-arrow-icon {
  display: flex;
  height: 1.8rem;
  width: 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  border: 0.1rem solid #000;
  opacity: 0.6;
  transition: 0.2S;
}

.cs-calendar-arrow-icon:hover {
  opacity: 1;
  border-width: 0.11rem;
}

.cs-calendar-arrow-icon::after {
  content: "";
  display: flex;
  height: 1.2rem;
  width: 1.2rem;
  background-image: url('./arrow.svg');
  background-repeat: no-repeat;
  align-items: center;
  justify-content: center;
}

.cs-calendar-arrow-icon.left::after {
  transform: rotate(-90deg);
}

.cs-calendar-arrow-icon.right::after {
  transform: rotate(90deg);
}

.cs-calendar-weeks {
  display: grid;
  width: 100%;
  list-style: none;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.6rem 0.3rem;
  margin: 0;
  margin-top: 0.5rem;
}

.cs-calendar-weeks>li {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
  color: #959595;
  text-transform: capitalize;
}

.cs-calendar-body {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.cs-calendar-days {
  display: grid;
  width: 100%;
  list-style: none;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: auto;
  padding: 0 0.3rem;
  margin: 0;
}

.cs-calendar-days>li {
  display: flex;
  width: 100%;
  /* height: 100%; */
  align-items: center;
  justify-content: center;
}

.cs-calendar-days>li>a {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  border: 3px solid transparent;
}

.cs-calendar-days>li>a.disabled {
  opacity: 0.3;
}

.cs-calendar-days>li>a.selected {
  background-color: rgba(100, 100, 100, 0.1);
  /* border-color: #f9d253; */
}

.cs-calendar-days>li>a:hover {
  background-color: rgba(100, 100, 100, 0.1);
}

.cs-calendar-days>li>a .cs-calendar-day-label {
  background-color: #28a745;
  color: #fff;
}

.cs-calendar-days>li>a.occupied .cs-calendar-day-label {
  background-color: #dc3545;
  color: #fff;
}

.cs-calendar-days>li>a.with-spaces .cs-calendar-day-label {
  background-color: #f6b500;
  color: #000;
}

.cs-calendar-days>li>a.free .cs-calendar-day-label {
  background-color: #28a745;
  color: #fff;
}

.cs-calendar-day-label {
  display: flex;
  height: 1.3rem;
  width: 1.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  font-size: 0.7rem;
  color: #000;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 2px solid transparent;
}

/* .cs-calendar-day-label.current {
  border-color: #1d87e4 !important;
  color: #fff;
} */

/* .cs-calendar-reminders {
  display: grid;
  width: 100%;
  height: 100%;
  list-style: none;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 0.3rem;
  margin: 0;
  position: absolute;
}

.cs-calendar-reminders>li {
  min-height: 3rem;
  padding-top: 1.8rem;
}

.cs-calendar-reminder {
  height: 0.15rem;
  width: 100%;
  margin-bottom: 0.1rem;
}

.cs-calendar-reminder.background {
  background-color: #1d87e4;
}

.cs-calendar-reminder.background-2 {
  background-color: #e4d01d;
}

.cs-calendar-reminder.first {
  border-top-left-radius: 1rem;
  border-bottom-left-radius: 1rem;
}

.cs-calendar-reminder.last {
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
} */

.cs-calendar-reminders {
  /* display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 1.5rem; */

  display: grid;
  width: 100%;
  /* height: 100%; */
  /* grid-template-rows: repeat(2, 1fr); */
  padding-top: 2.5rem;
}

.cs-calendar-reminder {
  height: 0.5rem;
  width: 100%;
  margin-bottom: 0.1rem;
  border-top: 0.1rem solid #fff;
  border-bottom: 0.1rem solid #fff;
}

/* .cs-calendar-reminder.background {
  background-color: #1d87e4;
  border-color: #fff;
}

.cs-calendar-reminder.background-2 {
  background-color: #e4d01d;
  border-color: #fff
} */

.cs-calendar-reminder.first {
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
  border-left: 0.1rem solid #fff;
}

.cs-calendar-reminder.last {
  border-top-right-radius: 2rem;
  border-bottom-right-radius: 2rem;
  border-right: 0.1rem solid #fff;
}

.cs-calendar-events {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  margin-top: 0.1rem;
  flex-wrap: wrap;
  gap: 0.1rem;
}

/* .cs-calendar-event {
  flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
} */

.cs-calendar-event {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 100%;
  background-color: #1d87e4;
  border: 0.1rem solid #fff;
}

.cs-calendar-title {
  text-transform: capitalize;
}

.cs-calendar-stats {
  display: flex;
  padding: 0;
  margin: 0;
  margin-top: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  list-style: none;
}

.cs-calendar-stats>li {
  display: flex;
  font-size: 0.7rem;
  align-items: center;
  justify-content: flex-start;
  font-weight: bold;
  color: #959595;
}

.cs-calendar-stats>li::before {
  content: "";
  display: flex;
  height: 0.8rem;
  width: 0.8rem;
  background-color: #28a745;
  align-items: center;
  justify-content: center;
  margin-right: 0.3rem;
  border: 0.1rem solid transparent;
}

.cs-calendar-stats>li.occupied::before {
  background-color: #dc3545;
}

.cs-calendar-stats>li.with-spaces::before {
  background-color: #f6b500;
}