/* Datepicker Custom Styling - Override Elementor and default styles */

/* Button styling - using !important to override Elementor styles */
.dp__btn {
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Montserrat', sans-serif !important;
  display: inline-block !important;
  text-align: center !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
}

.dp__btn:hover {
  background: #f8f9fa !important;
  border-color: #0099e3 !important;
  color: #0099e3 !important;
}

.dp__btn:focus {
  outline: none !important;
  border-color: #0099e3 !important;
  box-shadow: 0 0 0 2px rgba(0, 153, 227, 0.2) !important;
}

/* Navigation arrow buttons */
.dp--arrow-btn-nav {
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 8px !important;
  min-width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.dp--arrow-btn-nav:hover {
  background: #f8f9fa !important;
  border-color: #0099e3 !important;
  color: #0099e3 !important;
}

.dp--arrow-btn-nav:hover .dp__icon {
  color: #0099e3 !important;
}

.dp__icon {
  width: 16px !important;
  height: 16px !important;
  color: #666 !important;
  transition: color 0.2s ease !important;
}

/* Month/Year selection buttons */
button.dp__btn.dp__month_year_select {
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  min-width: 60px !important;
  text-align: center !important;
  display: inline-block !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
}

button.dp__btn.dp__month_year_select:hover {
  background: #f8f9fa !important;
  border-color: #0099e3 !important;
  color: #0099e3 !important;
}

button.dp__btn.dp__month_year_select:focus {
  outline: none !important;
  border-color: #0099e3 !important;
  box-shadow: 0 0 0 2px rgba(0, 153, 227, 0.2) !important;
}

/* Action buttons */
.dp__action_button {
  padding: 8px 16px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  text-align: center !important;
  white-space: nowrap !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  font-family: 'Montserrat', sans-serif !important;
}

.dp__action_cancel {
  background: #fff !important;
  border: 1px solid #ddd !important;
  color: #666 !important;
}

.dp__action_cancel:hover {
  background: #f5f5f5 !important;
  border-color: #ccc !important;
  color: #333 !important;
}

.dp__action_select {
  background: #0099e3 !important;
  border: 1px solid #0099e3 !important;
  color: #fff !important;
}

.dp__action_select:hover {
  background: #0088cc !important;
  border-color: #0088cc !important;
  color: #fff !important;
}

/* Year and month picker items */
.dp__year_picker_item,
.dp__month_picker_item {
  padding: 8px 12px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  color: #333 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: 'Montserrat', sans-serif !important;
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
}

.dp__year_picker_item:hover,
.dp__month_picker_item:hover {
  background-color: #f0f8ff !important;
  color: #0099e3 !important;
}

.dp__year_picker_item_selected,
.dp__month_picker_item_selected {
  background-color: #0099e3 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* Calendar day cells */
.dp__calendar_item {
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  margin: 1px !important;
}

.dp__calendar_item:hover {
  background-color: #f0f8ff !important;
}

.dp__cell_inner {
  width: 100% !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
}

.dp__cell_inner:hover {
  background-color: #f0f8ff !important;
  color: #0099e3 !important;
}

.dp__date_hover {
  background-color: #e6f3ff !important;
  color: #0099e3 !important;
}

/* Selected date */
.dp__active_date {
  background-color: #0099e3 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.dp__active_date:hover {
  background-color: #0088cc !important;
  color: #fff !important;
}

/* Today's date */
.dp__date_picker_item_today {
  border: 2px solid #0099e3 !important;
  background-color: transparent !important;
  color: #0099e3 !important;
  font-weight: 600 !important;
}

.dp__date_picker_item_today:hover {
  background-color: #f0f8ff !important;
  color: #0099e3 !important;
}

/* Offset dates (from other months) */
.dp__cell_offset {
  color: #ccc !important;
  background-color: transparent !important;
}

.dp__cell_offset:hover {
  background-color: #f5f5f5 !important;
  color: #999 !important;
}

/* Input field styling */
.dp__input {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  font-family: 'Montserrat', sans-serif !important;
  background-color: #fff !important;
  transition: border-color 0.3s ease !important;
}

.dp__input:focus {
  outline: none !important;
  border-color: #0099e3 !important;
  box-shadow: 0 0 0 2px rgba(0, 153, 227, 0.2) !important;
}

.dp__input.error {
  border-color: #CC391A !important;
}

.dp__input_wrap {
  position: relative !important;
}

.dp__input_icon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #666 !important;
  pointer-events: none !important;
}

/* Datepicker popup styling */
.dp__menu {
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  background: #fff !important;
  z-index: 1000 !important;
}

.dp__calendar_header {
  background: #f8f9fa !important;
  border-bottom: 1px solid #eee !important;
  padding: 12px !important;
}

.dp__calendar_header_item {
  font-weight: 600 !important;
  color: #333 !important;
  font-size: 14px !important;
}

.dp__calendar_header_separator {
  color: #666 !important;
}

.dp__calendar {
  padding: 16px !important;
}

.dp__action_buttons {
  padding: 12px 16px !important;
  border-top: 1px solid #eee !important;
  background: #f8f9fa !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: flex-end !important;
}

/* Year and month picker styling */
.dp__year_picker,
.dp__month_picker {
  max-height: 200px !important;
  overflow-y: auto !important;
}

.dp__month_year_wrap{
    justify-content: center !important;
}
  
.dp__input {
    padding: 12px 30px !important;
    border: 1px solid #7a7a7a !important;
}
