@use './variables-global' as *;

.date-picker-container {
  cursor: pointer;
  position: relative;
  width: 100%;
}

.date-picker-panel {
  background: white;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.calendar-box {
  text-align: center;
  width: 230px;
}

.calendar-header {
  align-items: center;
  border-bottom: 1px solid #cfcfcf;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 5px 10px;
}

.display-date {
  border-radius: 3px;
  padding: 1px 25px;
  transition: .3s;
}

.display-date:hover {
  background-color: #d0d0d0;
}

.display-month,
.display-year {
  color: #222;
  cursor: pointer;
  font-weight: 500;
  padding: 2px 8px;
}

.display-month:hover,
.display-year:hover {
  color: $primary_color_active;
}

.switch-date {
  align-items: center;
  display: flex;
}

.switch-date .btn {
  color: #666;
  font-size: 18px;
  padding-left: 0;
  padding-right: 0;
}

.switch-date .btn:hover {
  color: $primary_color;
}

.calendar-grid {
  display: grid;
  font-size: 12px;
  gap: 7px 0;
  grid-template-columns: repeat(7, 1fr);
  padding: 5px 10px 10px;
}

.day-label {
  color: #222;
  padding: 6px 1px;
}

.day {
  align-items: center;
  color: #222;
  cursor: pointer;
  display: flex;
  height: 24px;
  justify-content: center;
  padding: 1px;
  width: 30px;
}

.day-container:hover .day,
.selected .day {
  background: #e6f3ff;
}

.start_date.selected .day,
.end_date.selected .day,
.single_date.selected .day {
  background: #238dff;
  color: #fff;
}

.single_date.selected .day {
  border-radius: 3px;
}

.start_date.selected .day {
  border-radius: 3px 0 0 3px;
}

.end_date.selected .day {
  border-radius: 0 3px 3px 0;
}

.other-month .day {
  color: #6f6f6f;
}

.date_disabled .day {
  background-color: #f6f6f6;
  color: #777;
  cursor: not-allowed;
}

.month-selector,
.year-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 6px;
  justify-content: space-between;
  padding: 14px 10px 16px;
}

.month-item,
.year-item {
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  padding: 6px 2px;
  transition: .3s;
  width: 31%;
}

.month-item:hover,
.month-item.selected,
.year-item:hover,
.year-item.selected {
  border-color: $primary_color_active;
  color: $primary_color_active;
}

.year-border {
  color: #ccc;
}