.jalali-picker {
  position: relative;
}

.jalali-picker input {
  cursor: pointer;
  padding-left: 2.75rem;
}

.jalali-picker__toggle {
  position: absolute;
  top: 50%;
  left: 0.65rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: #1c7e68;
  cursor: pointer;
}

.jalali-picker__toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.jalali-picker__toggle:hover,
.jalali-picker__toggle[aria-expanded="true"] {
  background: #fff4a8;
}

.jalali-picker__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.5rem);
  right: 0;
  width: min(100%, 19.5rem);
  padding: 0.85rem;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 40, 32, 0.16);
}

.jalali-picker__panel.is-above {
  top: auto;
  bottom: calc(100% + 0.5rem);
}

.jalali-picker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.jalali-picker__title {
  font-size: 0.95rem;
  font-weight: 800;
}

.jalali-picker__nav,
.jalali-picker__footer button {
  border: 0;
  background: #f5f5f4;
  color: #171717;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.jalali-picker__nav {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.7rem;
  font-size: 1.1rem;
  line-height: 1;
}

.jalali-picker__nav:hover:not(:disabled),
.jalali-picker__footer button:hover {
  background: #fff4a8;
}

.jalali-picker__nav:disabled {
  color: #d4d4d4;
  cursor: default;
}

.jalali-picker__weekdays,
.jalali-picker__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.15rem;
}

.jalali-picker__weekdays {
  margin-bottom: 0.25rem;
  color: #737373;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.jalali-picker__day {
  aspect-ratio: 1;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  color: #171717;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.jalali-picker__day:hover:not(:disabled) {
  background: #fff4a8;
}

.jalali-picker__day.is-today {
  box-shadow: inset 0 0 0 2px #ffdd00;
}

.jalali-picker__day.is-selected,
.jalali-picker__day.is-selected:hover {
  background: #1c7e68;
  color: #fff;
  box-shadow: none;
}

.jalali-picker__day:disabled {
  color: #d4d4d4;
  cursor: default;
}

.jalali-picker__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.jalali-picker__footer button {
  border-radius: 0.7rem;
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem;
}
