.ui-datepicker-unavailable a {
  background: #ccc !important;
  color: #666 !important;
  pointer-events: none;
}

/* Make the datepicker larger */
#custom-calendar .ui-datepicker {
  font-size: 16px;
  /* Bigger text */
  width: 100%;
  /* Wider calendar */
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

/* Month & year title */
#custom-calendar .ui-datepicker-title {
  font-size: 18px;
  font-weight: bold;
  /* margin-bottom: 8px; */
  padding-block: 0.5rem;
}

.month-year-label {
  color: #9a8357;
  padding-block: 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Navigation arrows */
#custom-calendar .ui-datepicker-prev,
#custom-calendar .ui-datepicker-next {
  transform: translate(0, 50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* Table cells (days) */
#custom-calendar .ui-datepicker td {
  padding: 8px;
  place-items: center;
}

#custom-calendar .ui-datepicker td a,
.ui-datepicker-unavailable span,
td.ui-state-disabled span {
  display: block;
  width: 110px;
  /* Bigger squares */
  height: 50px;
  line-height: 1.5;
  text-align: center;
  border-radius: 6px;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none !important;
  cursor: default !important;
}

#custom-calendar .ui-state-active,
#custom-calendar .ui-state-active {
  border: 1px solid #c5c5c5;
}

/* Available dates (not blocked) */
#custom-calendar .ui-datepicker td a {
  background: #fff2cc;
  /* light blue, change as you like */

  color: #000;
}

/* Hover effect (optional) */
#custom-calendar .ui-datepicker td a:hover {
  background: #fff2cc;
  color: #000;
}

#custom-calendar .ui-datepicker-current-day a {
  background: #fff2cc !important;
  color: #000 !important;
}

/* Disabled / unavailable */
#custom-calendar .ui-datepicker-unavailable a {
  background: #ccc !important;
  color: #888 !important;
  text-decoration: line-through;
}

#custom-calendar .unavailable-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ccc !important;
  border-radius: 6px;
  height: 50px;
  font-size: 13px;
  color: #000 !important;
  pointer-events: none;
  width: 110px;
}

#custom-calendar .unavailable-cell .day-number {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
}

#custom-calendar .unavailable-cell .day-label {
  font-size: 11px;
  line-height: 1.2;
  /* text-decoration: line-through; */
}

/* Style dropdowns */
#custom-calendar .ui-datepicker select.ui-datepicker-month,
#custom-calendar .ui-datepicker select.ui-datepicker-year {
  padding: 4px 6px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #aaa;
  margin: 0 3px;
  width: 10%;
}

/* Prev Next icons */

/* Hide default icons */
.ui-datepicker .ui-datepicker-prev .ui-icon,
.ui-datepicker .ui-datepicker-next .ui-icon {
  display: none;
}

.ui-datepicker .ui-datepicker-prev::before {
  position: absolute;
  left: 10px;
  font-family: "Font Awesome 5 Free";
  /* Adjust for your Font Awesome version */
  content: "\f053";
  /* Font Awesome unicode for angle-left */
  font-weight: 900;
  /* For solid icons */
  /* Add other styling like color, font-size, etc. */
  color: #9a8357;
}

.ui-datepicker .ui-datepicker-next::before {
  position: absolute;
  right: 10px;
  font-family: "Font Awesome 5 Free";
  content: "\f054";
  /* Font Awesome unicode for angle-right */
  font-weight: 900;
  color: #9a8357;
}

.ui-state-hover,
.ui-widget-content .ui-state-hover {
  border: none !important;
  top: 2px;
}

/* Responsive */

/* Medium screens (tablets) */
/* @media (max-width: 992px) {

            #custom-calendar .ui-datepicker td a,
            #custom-calendar .unavailable-cell,
            td.ui-state-disabled span {
                width: 80px;
                height: 45px;
                font-size: 14px;
            }
        } */

@media (max-width: 1024px) {
  #custom-calendar .ui-datepicker td a,
  #custom-calendar .unavailable-cell,
  td.ui-state-disabled span {
    width: 60px;
    /* auto-fits 7 columns on small screen */
    height: 60px;
    font-size: 12px;
  }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
  #custom-calendar .ui-datepicker {
    padding: 3px;
  }

  .ui-datepicker th {
    padding: 3px !important;
  }

  #custom-calendar .ui-datepicker td a,
  #custom-calendar .unavailable-cell,
  td.ui-state-disabled span {
    width: 40px;
    /* auto-fits 7 columns on small screen */
    height: 40px;
    font-size: 12px;
  }

  #custom-calendar .ui-datepicker select.ui-datepicker-month,
  #custom-calendar .ui-datepicker select.ui-datepicker-year {
    width: 30%;
  }

  #custom-calendar .ui-datepicker-title {
    font-size: 16px;
  }

  #custom-calendar .unavailable-cell .day-label {
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
  }

  #custom-calendar .unavailable-cell .day-number {
    font-size: 12px;
  }

  /* Use a pseudo-element to replace text */
  #custom-calendar .unavailable-cell .day-label::after {
    content: "X";
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #000;
    top: 0;
  }

  /* Hide the original word */
  #custom-calendar .unavailable-cell .day-label {
    color: transparent;
    position: relative;
  }

  #custom-calendar .ui-datepicker td {
    padding: 3px;
  }
}

/* Popup */

.pum-theme-3763 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.pum-theme-3763 .pum-container,
.pum-theme-default-theme .pum-container {
  padding: 0 !important;
}

#popmake-3772 .pum-close {
  background: #9a8357;

  box-shadow: none;
  top: -22px;
  right: -13px;

  font-weight: bold;
  font-size: 14px;
  padding-block: 4px;
  line-height: 1.3;
  width: 30px;
  height: 30px;
  color: #fff;
  border-radius: 5px;
}

#popmake-3772 .pum-close:hover {
  background-color: #000;
}

@media (max-width: 767px) {
  #popmake-3772 .pum-close {
    right: -7px;
  }
}
