/* Wrapper calendario MotoPress */
.t99-villa-calendar {
  max-width: 420px;
  margin: 0 auto 40px;
}

.mphb-calendar.mphb-datepick.inlinePicker.is-datepick {
    position: relative;
}

/* Contenitore generale */
.t99-villa-calendar .datepick,
.t99-villa-calendar .datepick-inline {
  width: 100% !important;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-family: inherit;
  padding: 10px;
  box-sizing: border-box;
}

.datepick-popup .datepick,
.datepick-popup .datepick-inline {
  width: 100% !important;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-family: inherit;
  padding: 10px;
  box-sizing: border-box;
}

.t99-villa-calendar .datepick-nav,
.datepick-popup .datepick-nav{
  padding: 8px;
  background-color: #f5f5f5;
}

/* Mese */
.t99-villa-calendar .datepick-month {
  width: 100% !important;
  border: 0;
}

/* Header mese */
.t99-villa-calendar .datepick-month-header {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: 9;
    margin-top: -35px;
    left: 15%;
    right: 15%;
    width: 70%;
}

.datepick-popup .datepick-month-header {
    background: #f5f5f5;
    min-height: 38px;
}

.datepick-popup .datepick-month.first .datepick-month-header {
    position: absolute;
    margin-top: -37px;
    margin-left: 67px;
    background: none;
}

.datepick-popup .datepick-month.last .datepick-month-header {
    position: absolute;
    color: #000;
    margin-top: -30px;
    margin-left: 20px;
    background: none;
    font-size: 17px;
}

/* Select mese/anno */
.t99-villa-calendar .datepick-month-header select,
.datepick-popup .datepick-month-header select {
  width: 100%;
  height: 28px;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
  font-size: 14px;
  padding: 0 8px;
  color: var(--wp--preset--color--black);
}

/* Frecce prev/next */
.t99-villa-calendar .datepick-cmd-prev,
.t99-villa-calendar .datepick-cmd-next,
.datepick-popup .datepick-cmd-prev,
.datepick-popup .datepick-cmd-next {
  width: 28px;
  height: 28px;
  background: #808b7b;
  color: transparent !important;
  position: relative;
  text-decoration: none;
  flex: 0 0 28px;
}

.t99-villa-calendar .datepick-cmd-prev::before,
.datepick-popup .datepick-cmd-prev::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid #fff;
}

.t99-villa-calendar .datepick-cmd-next::before,
.datepick-popup .datepick-cmd-next::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 9px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
}

/* Nascondo comandi non necessari */
.t99-villa-calendar .datepick-cmd-today,
.t99-villa-calendar .datepick-cmd-clear,
.t99-villa-calendar .datepick-cmd-close,
.datepick-popup .datepick-cmd-today,
.datepick-popup .datepick-ctrl {
  display: none !important;
}

/* Tabella */
.t99-villa-calendar table,
.datepick-popup table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}

.datepick-popup table {
    padding: 7px;
}

/* Giorni settimana */
.t99-villa-calendar th,
.datepick-popup th {
  height: 32px;
  background: transparent;
  border: 0;
  color: #666;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Celle giorni */
.t99-villa-calendar td,
.datepick-popup td {
  height: 52px;
  padding: 0;
  border: 0;
  background: #fff!important;
  text-align: center;
  vertical-align: middle;
padding: 1px !important;
}

.datepick-popup td {
  height: 40px;
}

/* Link/numeri giorno */
.t99-villa-calendar td a,
.t99-villa-calendar td span,
.datepick-popup td a,
.datepick-popup td span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  color: #777;
  font-size: 13px;
  text-decoration: none;
  box-sizing: border-box;
}

.datepick-popup td a,
.datepick-popup td span {
  height: 38px;
}
/* Date disponibili */
/*.t99-villa-calendar .mphb-available-date,
.t99-villa-calendar td:not(.datepick-unselectable):not(.mphb-not-available-date),
.datepick-popup .mphb-available-date, 
.datepick-popup td:not(.datepick-unselectable):not(.mphb-not-available-date),
.datepick-month td .datepick-weekend.mphb-available-date */

.t99-villa-calendar .mphb-available-date, .datepick-popup .mphb-available-date, .datepick-popup .mphb-date-cell.mphb-available-date.mphb-selectable-date.datepick-weekend {
  background: var(--mphb-available-date-bg, #cef093);
color: #000 !important;
cursor: pointer;
}

/* Date occupate / non disponibili */
.t99-villa-calendar .mphb-not-available-date,
.t99-villa-calendar .datepick-unselectable,
.datepick-popup .mphb-not-available-date,
.datepick-popup .datepick-unselectable {
  background: #f19a9a !important;
color: #000 !important;
}

/* Date non appartenenti al mese */
.t99-villa-calendar .datepick-other-month,
.t99-villa-calendar .datepick-other-month span,
.t99-villa-calendar .datepick-other-month a,
.datepick-popup .datepick-other-month,
.datepick-popup .datepick-other-month span,
.datepick-popup .datepick-other-month a {
  background: #f4f4f4 !important;
  color: transparent !important;
}

.t99-villa-calendar .mphb-calendar td .mphb-past-date,
.datepick-popup .mphb-calendar td .mphb-past-date,
.datepick-popup .mphb-datepick-popup .datepick-month td .mphb-past-date {
    opacity: 1;
}

.t99-villa-calendar .mphb-available-date.mphb-unselectable-date--check-out {background: #f4f4f4 !important;}

/* Hover */
.t99-villa-calendar td a:hover,
.datepick-popup td a:hover {
  background: rgba(0, 0, 0, 0.06);
}

/*.t99-villa-calendar .mphb-calendar td .mphb-selectable-date--check-in:hover,
.t99-villa-calendar .mphb-available-date:hover,
.datepick-popup .mphb-available-date a:hover, 
.datepick-popup td:not(.datepick-unselectable):not(.mphb-not-available-date) a:hover,
.datepick-month td .datepick-weekend.mphb-available-date a:hover {
  background: #808b7b
}

.t99-villa-calendar .mphb-available-date.mphb-unselectable-date--check-out.mphb-selected-date--check-in.datepick-selected, .t99-villa-calendar .mphb-date-cell.mphb-available-date.mphb-selectable-date--check-in.mphb-selected-date--check-in.datepick-selected, .t99-villa-calendar .mphb-date-cell.mphb-available-date.mphb-selectable-date--check-out.mphb-selected-date, .t99-villa-calendar .mphb-date-cell.mphb-available-date.mphb-selectable-date--check-out.datepick-highlight, .t99-villa-calendar .mphb-date-cell.mphb-available-date.mphb-selectable-date--check-in.mphb-selected-date, .t99-villa-calendar .mphb-calendar td .mphb-selected-date--check-out, .t99-villa-calendar .mphb-date-cell.mphb-available-date.mphb-unselectable-date--check-in.mphb-selected-date.datepick-selected {
  background: #808b7b!important;
}*/

/* Rimuove bordi interni strani */
.t99-villa-calendar .datepick-month table,
.t99-villa-calendar .datepick-month tbody,
.t99-villa-calendar .datepick-month tr,
.t99-villa-calendar .datepick-month td,
.t99-villa-calendar .datepick-month th,
.datepick-popup .datepick-month table,
.datepick-popup .datepick-month tbody,
.datepick-popup .datepick-month tr,
.datepick-popup .datepick-month td,
.datepick-popup .datepick-month th {
  border-color: transparent;
}

.datepick-popup .datepick-month {
    border: 0;
}
.datepick-popup .datepick-month.first {
    border-right: 1px solid #666;
}


.t99-villa-booking-form label,
.t99-villa-booking-form p.mphb-rooms-quantity-wrapper.mphb-rooms-quantity-single,
.t99-villa-booking-form section#mphb-booking-details,
.t99-villa-booking-form section#mphb-price-details,
.t99-villa-booking-form section#mphb-billing-details,
.t99-villa-booking-form p.mphb-total-price,
.t99-villa-booking-form p.mphb-deposit-amount,
.t99-villa-booking-form .mphb-errors-wrapper {font-size: 17px;}

.t99-villa-booking-form input[type=text], .t99-villa-booking-form input[type=email], .t99-villa-booking-form input[type=number], .t99-villa-booking-form input[type=url], .t99-villa-booking-form input[type=tel], .t99-villa-booking-form input[type=phone], .t99-villa-booking-form input[type=search], .t99-villa-booking-form select, .t99-villa-booking-form textarea {
    color: rgba(0,0,0,1);
    background-color: #ffffff;
    border-color: #d0d5dd;
    border-width: 0px 0px 1px 0px;
    border-style: solid;
    border-radius: 0px;
    max-width: 100%;
    font-size: 17px;
    padding: 8px 12px;
    box-sizing: border-box;
    outline: none;
    font-weight: normal;
}

.t99-villa-booking-form input.mphb-reserve-btn.button, .t99-villa-booking-form input.button.mphb-button.mphb-confirm-reservation, .t99-villa-booking-form .mphb_sc_checkout-submit-wrapper input {
    width: auto;
    font-size: 19px;
    height: auto;
    line-height: normal;
    text-align: center;
    background: rgba(128, 139, 123, 1);
    border-width: 0px;
    border-color: #000000;
    border-style: solid;
    color: #ffffff;
    cursor: pointer;
    font-weight: 300;
    border-radius: 0px;
    text-shadow: none;
    padding: 10px 24px 10px 24px;
    box-sizing: border-box;
    box-shadow: 0 1px 1px #eeeeee;
    margin: 10px;
    margin-left: 0;
    margin-right: 0;
    vertical-align: middle;
}


.t99-villa-booking-form input.mphb-reserve-btn.button:hover, .t99-villa-booking-form input.button.mphb-button.mphb-confirm-reservation:hover, .t99-villa-booking-form .mphb_sc_checkout-submit-wrapper input:hover {
    background: rgba(121,127,112,1);
}

.mphb_sc_checkout-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.mphb_sc_checkout-wrapper section {
    border-bottom: 1px solid #ccc;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.t99-villa-booking-form .mphb-table-price-column {
    padding-left: 20px;
    vertical-align: top;
}

.t99-villa-booking-form .mphb-room-details {
    padding-top: 30px;
}

.t99-villa-booking-form form.mphb_sc_checkout-form h3, .t99-villa-booking-form form.mphb_sc_checkout-form h4 {
    font-weight: 600;
    padding-bottom: 10px;
    font-size: 22px;
}

.t99-villa-booking-form p.mphb-room-type-title a {
    font-weight: 600;
}

.t99-villa-booking-form .mphb-price-breakdown {
    border-collapse: collapse;
    text-align: left;
    margin: 0;
    font-size: 0.875rem;
    width: 100%;
}

.t99-villa-booking-form  .mphb-price-breakdown th, .t99-villa-booking-form  .mphb-price-breakdown td {
    border: 1px solid #ccc;
    padding: 5px 8px;
}

h3.mphb-booking-details-title {
    font-weight: 600;
    padding-bottom: 10px;
    border-top: 1px solid #ccc;
    padding-top: 40px;
    margin-top: 20px;
}

.legenda {
    font-size: 14px;
    padding-top: 10px;
    line-height: 25px;
}

.legenda span.disponibile {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: var(--mphb-available-date-bg, #cef093);
}

.legenda span.non-disponibile {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: var(--mphb-booked-date-bg, #ddd);
}

.legenda span.check-out {
      width: 20px;
    height: 20px;
    display: inline-block;
background: linear-gradient(to bottom right, var(--mphb-available-date-bg, #cef093) 0, var(--mphb-available-date-bg, #cef093) 50%, var(--mphb-booked-date-bg, #ddd) 50%, var(--mphb-booked-date-bg, #ddd) 100%);
}

.legenda span.check-in {
      width: 20px;
    height: 20px;
    display: inline-block;
background: linear-gradient(to top left, var(--mphb-available-date-bg, #cef093) 0, var(--mphb-available-date-bg, #cef093) 50%, var(--mphb-not-available-date-bg, #ddd) 50%, var(--mphb-not-available-date-bg, #ddd) 100%);
}

.t99-villa-calendar .mphb-date-cell,
.t99-villa-calendar td,
.t99-villa-calendar td span,
.t99-villa-calendar td a {
  cursor: default !important;
}

.t99-villa-calendar .mphb-date-cell:hover,
.t99-villa-calendar td:hover,
.t99-villa-calendar td span:hover {
  filter: none !important;
  opacity: 1 !important;
}

.t99-villa-calendar .mphb-date-cell {
  pointer-events: none;
}

.t99-reset-booking-dates {
  display: none;
  margin: 5px 0 20px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid #999;
  color: #111;
  font-size: 14px;
  cursor: pointer;
}

.t99-reset-booking-dates.is-visible {
  display: inline-block;
}

.t99-reset-booking-dates:hover {
  background: #f5f5f5;
}

/* Responsive */
@media (max-width: 480px) {
  .t99-villa-calendar {
    max-width: 100%;
  }

  .t99-villa-calendar td,
  .t99-villa-calendar td a,
  .t99-villa-calendar td span {
    height: 44px;
  }
}

@media (max-width: 900px) {
  .t99-villa-booking-form input.mphb-reserve-btn.button, .t99-villa-booking-form input.button.mphb-button.mphb-confirm-reservation, .t99-villa-booking-form .mphb_sc_checkout-submit-wrapper input {
    min-width: 400px;
  }
}