.price-avg {
  color: rgb(25, 135, 84)!important;
}

.price-real {
  color: rgb(11, 94, 215)!important;
}

.price-purpose {
  font-size: 8px!important;
}
.price-purpose span.day-price {
  font-size: 10px!important;
}

.selected span.day-price, .in-range span.day-price, .start span.day-price, .end span.day-price {
  color: white!important;
}

@media (max-width: 575.98px) {
  /* Stili per schermi piccoli */
  .easepick-container {
    width: 100% !important;
    max-width: 100% !important;
    /* rendi il popup full-width e adattabile */
  }
  .easepick-calendar {
    /* se la libreria genera più colonne, forziamo layout colonna */
    display: flex !important;
    flex-direction: column !important;
  }
  .easepick-calendar .calendar {
    width: 100% !important;
  }
}
/* Desktop: lascia pure due colonne */

/* Mobile: una sola colonna */
@media (max-width: 768px) {
  .easepick-wrapper {
    grid-template-columns: 1fr !important;
  }
}
.easepick-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  width: 100%;
}
.calendar>.days-grid>.day .day-price {
  font-size: 65%;
  color: #2196f3;
}
.calendar>.days-grid>.day.selected .day-price {
  color: #fff;
}

/* Structure locked by fake reservation */
.calendar-day-locked, .day-structure-locked-otherplatform {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0), rgb(192, 192, 192) 0 2px,
    transparent 2px 4px
  )!important;
  opacity: 0.6;
  border-radius: 6px;
  cursor: not-allowed;
}
.day-structure-locked-otherplatform {
  color: black!important;
}

.calendar-day-locked, .day-structure-locked {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 0, 0, 0), rgb(255, 171, 145) 0 2px,
    transparent 2px 4px
  )!important;
  opacity: 0.6;
  border-radius: 6px;
  cursor: not-allowed;
}

.day.unit.start .day-price, .day.unit.end .day-price {
  color:var(--color-fg-selected);
}

.calendar-day-locked2 {
  background-image: none!important;
  opacity: 1; /* piena opacità */
  border-radius: 6px;
  cursor: not-allowed;
  color: #000; /* testo nero */
}

/* NEW CSS CLASSES */

.day-structure-locked-r-checkout {
  border-radius: 6px;
  cursor: not-allowed;
  background:
    linear-gradient(135deg, #f8d7da 0 50%, transparent 50% 100%),
    repeating-linear-gradient(135deg, #fdecee 0 2px, transparent 2px 4px)!important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #842029!important;
}
.calendar>.days-grid>.day-structure-locked-r-checkout .day-price {
  color: #842029!important;
}

.day-structure-locked-n-checkout {
  border-radius: 6px;
  cursor: not-allowed;
  background:
    linear-gradient(135deg, #fff3cd 0 50%, transparent 50% 100%),
    repeating-linear-gradient(135deg, #fdecee 0 2px, transparent 2px 4px)!important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: rgb(102, 77, 3)!important;
}
.calendar>.days-grid>.day-structure-locked-n-checkout .day-price {
  color: rgb(102, 77, 3)!important;
}

.day-structure-locked-b-checkout {
  border-radius: 6px;
  cursor: not-allowed;
  background:
    linear-gradient(135deg, #d3d3d3 0 50%, transparent 50% 100%),
    repeating-linear-gradient(135deg, #fdecee 0 2px, transparent 2px 4px)!important;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: #000!important;
}
.calendar>.days-grid>.day-structure-locked-b-checkout .day-price {
  color: #000!important;
}


.day-r, .day-r-checkin {
  background-image: none!important;
  color: #842029!important;
  background-color: #f8d7da!important;
}
.day-r-checkout {
  background: linear-gradient(135deg, #f8d7da 50%, #FFFF 50%);
  color: #842029!important;
}
.calendar>.days-grid>.day-r-checkout .day-price {
  color: #842029!important;
}

.day-n, .day-n-checkin {
  background-image: none!important;
  background-color: rgb(255, 243, 205)!important; /* giallo/ambra scuro */
  color: rgb(102, 77, 3)!important;
}
.day-n-checkout {
  background: linear-gradient(135deg, #fff3cd 50%, #FFFF 50%);
  color: rgb(102, 77, 3)!important;
}
.calendar>.days-grid>.day-n-checkout .day-price {
  color: rgb(102, 77, 3)!important;
}

.day-b, .day-b-checkin  {
  background-image: none!important;
  background-color: rgb(211,211,211)!important;
  color: #000!important;
}
.day-b-checkout {
  background: linear-gradient(135deg, #d3d3d3 50%, #FFFF 50%);
  color: #000!important;
}
.calendar>.days-grid>.day-b-checkout .day-price {
  color: #000 !important;
}
.day-structure-locked {
  color: rgb(88, 21, 28)!important;
}

.day-out_in_nn {
  background-image: linear-gradient(135deg, #fff3cd 50%, #fff8e1 50%)!important;
  background-color: transparent;
  color: #000 !important;
}
.day-out_in_nb {
  background-image: linear-gradient(135deg, #fff3cd 50%, #d3d3d3 50%)!important;
  background-color: transparent;
  color: #000 !important;
}
.day-out_in_nr {
  background-image: linear-gradient(135deg, #fff3cd 50%, #f8d7da 50%)!important;
  background-color: transparent;
  color: #000 !important;
}

.day-out_in_bn {
  background-image: linear-gradient(135deg, #d3d3d3 50%, #fff3cd 50%)!important;
  background-color: transparent;
  color: #000 !important;
}
.day-out_in_br {
  background-image: linear-gradient(135deg, #d3d3d3 50%, #f8d7da 50%)!important;
  background-color: transparent;
  color: #000 !important;
}
.day-out_in_bb {
  background-image: linear-gradient(135deg, #d3d3d3 50%, #e5e5e5 50%)!important;
  background-color: transparent;
  color: #000 !important;
}
.day-out_in_rn {
  background-image: linear-gradient(135deg, #f8d7da 50%, #fff3cd 50%)!important;
  background-color: transparent;
  color: #000 !important;
}
.day-out_in_rb {
  background-image: linear-gradient(135deg, #f8d7da 50%, #d3d3d3 50%)!important;
  background-color: transparent;
  color: #000 !important;
}
.day-out_in_rr {
  background-image: linear-gradient(135deg, #f8d7da 50%, #fdecee 50%)!important;
  background-color: transparent;
  color: #000 !important;
}

.calendar>.days-grid>.day-out_in_nn .day-price,
.calendar>.days-grid>.day-out_in_nb .day-price,
.calendar>.days-grid>.day-out_in_nr .day-price,
.calendar>.days-grid>.day-out_in_bn .day-price,
.calendar>.days-grid>.day-out_in_br .day-price,
.calendar>.days-grid>.day-out_in_bb .day-price,
.calendar>.days-grid>.day-out_in_rn .day-price,
.calendar>.days-grid>.day-out_in_rb .day-price,
.calendar>.days-grid>.day-out_in_rr .day-price,
.calendar>.days-grid>.day-out_in_rn .day-price
{
   font-size: 70%!important;
   color: #000!important;
}

.calendar > .days-grid > .day-r-checkin .day-price {
  color: #842029 !important;
}
.calendar > .days-grid > .day-b-checkin .day-price {
  color: rgb(0, 0, 0) !important;
}
.calendar > .days-grid > .day-n-checkin .day-price {
  color: rgb(102, 77, 3) !important;
}








/*

NEWWWWWWWWWWWW
*/

.day-split {
  position: relative;
  isolation: isolate;
  background: #fff !important;
  overflow: hidden;
  color: var(--full-color-text);
}

.day-split::before,
.day-split::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/*
  Split day with specific colors and backgrounds
*/
.day-split.day-lock_pm::before {
  background: repeating-linear-gradient(
    135deg,
    var(--full-pm-color) 0 2px,
    transparent 2px 4px
  );
  opacity: 0.6;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.day-split.day-lock_am::after {
  background: repeating-linear-gradient(
    135deg,
    var(--full-am-color) 0 2px,
    transparent 2px 4px
  );
  opacity: 0.6;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.day-split.day-full_pm::before {
  background: var(--full-pm-color);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.day-split.day-full_am::after {
  background: var(--full-am-color);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.day-split .day-price {
  position: relative;
  z-index: 1;
  color: inherit!important;
  opacity: 1;
}

/*
  Full day with specific colors and backgrounds
*/

/*
XD
*/
.day-full {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.day-full.day-full-ampm {
  background: var(--full-color);
  color: var(--full-color-text);
}


/*
XD
*/
.day-full.day-full-lock::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background: repeating-linear-gradient(
    135deg,
    var(--full-color) 0 2px,
    transparent 2px 4px
  );
  color: var(--full-color-text);
  opacity: 0.6;
}

.day-full .day-price {
  position: relative;
  z-index: 1;
  color: inherit !important;
  opacity: 1;
}





/*
.day-full.day-full-lock {
  background: repeating-linear-gradient(
    135deg,
    var(--full-color) 0 2px,
    transparent 2px 4px
  );
  color: var(--full-color-text);
  opacity: 0.6;
}
*/
