/* === STILE BOOKING FORM PERSONALIZZATO === */

/* Wrapper principale */
#or-cbf-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  background-color: #f8bc3e;
  padding-top: 0px !important;
  padding: 20px;
  gap: 12px;
  font-family: 'Raleway', sans-serif;
  position: relative;
  z-index: 2;
  align-items: stretch;
}

/* Gruppi input */
.or-cbf-group {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #000;
  font-weight: bold;
  min-width: 150px;
  justify-content: space-between
}

.or-cbf-group input[type="date"],
.or-cbf-group input[type="text"] {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  padding: 2px 0;
}

@media (max-width: 1470px) and (min-width: 1300px){
  .or-cbf-group input[type="date"],
.or-cbf-group input[type="text"] {
      font-size: 14px;
  }
  #or-cbf-trigger{
    font-size:14px !important;
  }
  #or-cbf-submit, #or-cbf-request, #or-cbf-quote {
    font-size: 13px !important;
  }
  .or-cbf-link{
    font-size: 12px !important;
  }
  #or-cbf-popup{
    overflow-y: scroll;
    max-height: 60vh;
  }
}

#or-cbf-trigger {
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: left;
}

/* Pulsanti azione */
#or-cbf-submit,
#or-cbf-request,
#or-cbf-quote {
  background-color: #2b72c9;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px 18px !important;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  margin: 0px !important;
  line-height: 1.2 !important;
  height: 70px;
  transition: none !important;
  margin: 0px !important;
  border: 0px !important;
}

#or-cbf-submit,
#or-cbf-quote {
  white-space: pre-line;
  text-align: center;
}

#or-cbf-request {
  background-color: #2b2b2b;
}

/* Codice promo e link */
#or-cbf-extras {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 14px;
  width: 100%;
}

#or-cbf-extras input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 120px;
}

/* POPUP */
#or-cbf-popup {
  position: absolute;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: 300px;
  font-size: 14px;
  display: none;
  flex-direction: column;
  top: 50%; /* fallback */
  left: 0;
  transform: translateY(8px);
  max-height: 90vh;
  overflow-y: auto;
}

#or-cbf-popup.active {
  display: flex;
}

/* Nascondi */
.or-cbf-hidden {
  display: none !important;
}

/* Sezioni camera */
.or-cbf-room {
  margin-bottom: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

/* Righe adulti/bambini */
.or-cbf-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.or-cbf-label {
  font-weight: bold;
}

.or-cbf-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.or-cbf-controls button {
  width: 32px;
  height: 32px;
  background: #2b2b2b;
  color: white;
  border: 2px solid #a045b5;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.or-cbf-count {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.or-cbf-increase,
.or-cbf-decrease {
  background: #2b2b2b;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #7c2a7c;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Età bambini */
.or-cbf-child-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.or-cbf-child-ages select {
  width: 60px;
  padding: 4px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Aggiungi camera */
#or-cbf-add-room {
  margin-top: 10px;
  font-weight: bold;
  color: #0066cc;
  background: transparent;
  border: none !important;
  cursor: pointer;
  font-size: 15px !important;
  text-align: left;
  padding-left: 2px;
}

/* Footer popup */
.or-cbf-footer {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

#or-cbf-form #or-cbf-popup .or-cbf-footer button {
  flex: 1 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

#or-cbf-cancel {
  background-color: #fff !important;
  color: #333 !important;
  border: 2px solid #ccc !important;
}

#or-cbf-cancel:hover {
  border-color: #999 !important;
  background-color: #f9f9f9 !important;
}

#or-cbf-confirm {
  background-color: #007bff !important;
  color: white !important;
  border: 2px solid #007bff !important;
}

#or-cbf-confirm:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

/* Tooltip errori */
select:invalid {
  border-color: red;
}

/* Rimuovi Camera */
.or-cbf-room button.or-cbf-remove-room{
  color:#86267A !important; 
  background:none !important; 
  border:none !important; 
  cursor:pointer !important; 
  font-size: 12px !important; 
  padding: 2px !important;
  margin: 0 !important;
}

/* Errore età */
.or-cbf-error {
  border: 2px solid red !important;
}

.or-cbf-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 10px 0 !important;
}

.or-cbf-item-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.or-cbf-promo-link {
  font-size: 12px;
  color: #004b8d;
  cursor: pointer;
  margin-right: 10px;
}

#or-cbf-promo-popup {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
  top: 100%; /* o regola in base alla posizione */
  left: 0;
  margin-top: 5px;
}

.or-cbf-hidden {
  display: none;
}

.or-cbf-link {
  color: #1462a2;
  font-size: 14px;
  cursor: pointer;
  margin-left: 20px;
  text-transform: uppercase;
  font-weight: 500;
}

.button-next-month:hover svg, .button-previous-month:hover svg{
  fill: white !important;
}



/* === STILE BOOKING FORM PERSONALIZZATO === */

#or-cbf-form {
  display: block;
  background: transparent;
  padding: 0 !important;
  max-width: 360px;
  width: 100%;
  position: relative;
  z-index: 2;
  font-family: 'Raleway', sans-serif;
  overflow: hidden;
}

/* Gruppi input */
.or-cbf-group {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #000;
  font-weight: bold;
  min-width: 150px;
  justify-content: space-between;
}

.or-cbf-group input[type="date"],
.or-cbf-group input[type="text"] {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  padding: 2px 0;
}

@media (max-width: 1470px) and (min-width: 1300px) {
  .or-cbf-group input[type="date"],
  .or-cbf-group input[type="text"] {
    font-size: 14px;
  }

  #or-cbf-trigger {
    font-size: 14px !important;
  }

  #or-cbf-submit,
  #or-cbf-request,
  #or-cbf-quote {
    font-size: 13px !important;
  }

  .or-cbf-link {
    font-size: 12px !important;
  }

  #or-cbf-popup {
    overflow-y: scroll;
    max-height: 60vh;
  }
}

#or-cbf-trigger {
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: left;
  position: relative;
}

/* Pulsanti azione */
#or-cbf-submit,
#or-cbf-request,
#or-cbf-quote {
  background-color: #2b72c9;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px 18px !important;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  margin: 0 !important;
  line-height: 1.2 !important;
  height: 70px;
  transition: none !important;
  border: 0 !important;
}

#or-cbf-submit,
#or-cbf-quote {
  white-space: pre-line;
  text-align: center;
}

#or-cbf-request {
  background-color: #2b2b2b;
}

/* Extras */
#or-cbf-extras {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  width: 100%;
}

#or-cbf-extras input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 120px;
}

/* Popup camere/persone */
#or-cbf-popup {
  position: absolute;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  width: 300px;
  font-size: 14px;
  display: none;
  flex-direction: column;
  top: calc(100% + 8px);
  left: 0 !important;
  right: 0;
  transform: none;
  max-height: 90vh;
  overflow-y: auto;
}

#or-cbf-popup.active {
  display: flex;
}

.or-cbf-hidden {
  display: none !important;
}

/* Sezioni camera */
.or-cbf-room {
  margin-bottom: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

/* Righe adulti/bambini */
.or-cbf-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.or-cbf-label {
  font-weight: bold;
}

.or-cbf-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.or-cbf-controls button {
  width: 32px;
  height: 32px;
  background: #2b2b2b;
  color: white;
  border: 2px solid #a045b5;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.or-cbf-count {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.or-cbf-increase,
.or-cbf-decrease {
  background: #2b2b2b;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #7c2a7c;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Età bambini */
.or-cbf-child-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.or-cbf-child-ages select {
  width: 60px;
  padding: 4px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* Aggiungi camera */
#or-cbf-add-room {
  margin-top: 10px;
  font-weight: bold;
  color: #0066cc;
  background: transparent;
  border: none !important;
  cursor: pointer;
  font-size: 15px !important;
  text-align: left;
  padding-left: 2px;
}

/* Footer popup */
.or-cbf-footer {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

#or-cbf-form #or-cbf-popup .or-cbf-footer button {
  flex: 1 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

#or-cbf-cancel {
  background-color: #fff !important;
  color: #333 !important;
  border: 2px solid #ccc !important;
}

#or-cbf-cancel:hover {
  border-color: #999 !important;
  background-color: #f9f9f9 !important;
}

#or-cbf-confirm {
  background-color: #007bff !important;
  color: white !important;
  border: 2px solid #007bff !important;
}

#or-cbf-confirm:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

/* Errori */
select:invalid {
  border-color: red;
}

.or-cbf-room button.or-cbf-remove-room {
  color: #86267A !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 12px !important;
  padding: 2px !important;
  margin: 0 !important;
}

.or-cbf-error {
  border: 2px solid red !important;
}

.or-cbf-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 10px 0 !important;
}

.or-cbf-item-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.or-cbf-promo-link {
  font-size: 12px;
  color: #004b8d;
  cursor: pointer;
  margin-right: 10px;
}

#or-cbf-promo-popup {
  position: static;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  margin-top: 4px;
}

#or-cbf-promo-input {
  flex: 1 1 100%;
}

#or-cbf-promo-confirm,
#or-cbf-promo-cancel {
  flex: 1 1 calc(50% - 5px);
}

.or-cbf-link {
  margin-left: 0;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
}

.button-next-month:hover svg,
.button-previous-month:hover svg {
  fill: white !important;
}

/* === STILE BOOKING FORM PERSONALIZZATO === */

#or-cbf-form {
  display: block;
  background: transparent;
  padding: 0 !important;
  max-width: 360px;
  width: 100%;
  position: relative;
  z-index: 2;
  font-family: 'Raleway', sans-serif;
}

/* === VERSIONE COLLASSABILE SENZA ANIMAZIONI === */

.or-cbf-launcher {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

#or-cbf-open {
  width: 100%;
  background: #4f84a7;
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
}

.or-cbf-launcher-link {
  font-size: 15px;
  color: #222;
  cursor: pointer;
  text-decoration: none;
  text-transform: none;
}

#or-cbf-panel {
  display: none;
  width: 100%;
  margin-top: 12px;
  background: #4f84a7;
  padding: 50px 18px 18px;
  box-sizing: border-box;
  position: relative;
}

#or-cbf-form.is-open .or-cbf-launcher {
  display: none;
}

#or-cbf-form.is-open #or-cbf-panel {
  display: block;
  margin-top: 0;
}

#or-cbf-close {
  position: absolute;
  top: 8px;
  right: 20px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.or-cbf-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

/* === GRUPPI INPUT === */

.or-cbf-group {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  color: #000;
  font-weight: bold;
  min-width: 150px;
  justify-content: space-between;
}

#or-cbf-panel .or-cbf-group {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 3px;
}

.or-cbf-group input[type="date"],
.or-cbf-group input[type="text"] {
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  padding: 2px 0;
}

/* === TRIGGER CAMERE/PERSONE === */

#or-cbf-trigger {
  position: relative;
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
}

/* === PULSANTI AZIONE === */

#or-cbf-submit,
#or-cbf-request,
#or-cbf-quote {
  background-color: #2b72c9;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 12px 18px !important;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  margin: 0 !important;
  line-height: 1.2 !important;
  height: 70px;
  border: 0 !important;
}

#or-cbf-panel #or-cbf-submit,
#or-cbf-panel #or-cbf-quote {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 58px;
  box-sizing: border-box;
}

#or-cbf-panel #or-cbf-submit {
  background-color: #20486b;
}

#or-cbf-panel #or-cbf-quote {
  background: transparent;
  border: 1px solid #fff !important;
  color: #fff;
}

#or-cbf-submit,
#or-cbf-quote {
  white-space: pre-line;
  text-align: center;
}

#or-cbf-request {
  background-color: #2b2b2b;
}

/* === EXTRA LINKS / PROMO === */

#or-cbf-extras {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 14px;
  width: 100%;
}

#or-cbf-extras input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 120px;
}

.or-cbf-link {
  margin-left: 0;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
}

.or-cbf-promo-link {
  color: #fff;
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
  margin-right: 10px;
}

#or-cbf-promo-popup {
  position: static;
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
  margin-top: 4px;
}

#or-cbf-promo-input {
  flex: 1 1 100%;
}

#or-cbf-promo-confirm,
#or-cbf-promo-cancel {
  flex: 1 1 calc(50% - 5px);
}

/* === POPUP CAMERE / PERSONE === */

#or-cbf-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0 !important;
  right: 0;
  width: auto;
  transform: none;
  z-index: 9999;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  display: none;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

#or-cbf-popup.active {
  display: flex;
}

.or-cbf-hidden {
  display: none !important;
}

/* === SEZIONI CAMERA === */

.or-cbf-room {
  margin-bottom: 18px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 12px;
}

/* === RIGHE ADULTI / BAMBINI === */

.or-cbf-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.or-cbf-label {
  font-weight: bold;
}

.or-cbf-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.or-cbf-controls button,
.or-cbf-increase,
.or-cbf-decrease {
  width: 32px;
  height: 32px;
  background: #2b2b2b;
  color: #fff;
  border: 2px solid #7c2a7c;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.or-cbf-count {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

/* === ETÀ BAMBINI === */

.or-cbf-child-ages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.or-cbf-child-ages select {
  width: 60px;
  padding: 4px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* === AGGIUNGI / RIMUOVI CAMERA === */

#or-cbf-add-room {
  margin-top: 10px;
  font-weight: bold;
  color: #0066cc;
  background: transparent;
  border: none !important;
  cursor: pointer;
  font-size: 15px !important;
  text-align: left;
  padding-left: 2px;
}

.or-cbf-room button.or-cbf-remove-room {
  color: #86267A !important;
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 12px !important;
  padding: 2px !important;
  margin: 0 !important;
}

/* === FOOTER POPUP === */

.or-cbf-footer {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-top: 20px !important;
}

#or-cbf-form #or-cbf-popup .or-cbf-footer button {
  flex: 1 !important;
  padding: 12px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: bold !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  border: 2px solid transparent !important;
}

#or-cbf-cancel {
  background-color: #fff !important;
  color: #333 !important;
  border: 2px solid #ccc !important;
}

#or-cbf-cancel:hover {
  border-color: #999 !important;
  background-color: #f9f9f9 !important;
}

#or-cbf-confirm {
  background-color: #007bff !important;
  color: #fff !important;
  border: 2px solid #007bff !important;
}

#or-cbf-confirm:hover {
  background-color: #0056b3 !important;
  border-color: #0056b3 !important;
}

/* === ERRORI === */

select:invalid {
  border-color: red;
}

.or-cbf-error {
  border: 2px solid red !important;
}

.or-cbf-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 10px 0 !important;
}

.or-cbf-item-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* === LITEPICKER OVERRIDE === */

.button-next-month:hover svg,
.button-previous-month:hover svg {
  fill: #fff !important;
}



/* === RESPONSIVE === */

@media (max-width: 1470px) and (min-width: 1300px) {
  .or-cbf-group input[type="date"],
  .or-cbf-group input[type="text"] {
    font-size: 14px;
  }

  #or-cbf-trigger {
    font-size: 14px !important;
  }

  #or-cbf-submit,
  #or-cbf-request,
  #or-cbf-quote {
    font-size: 13px !important;
  }

  .or-cbf-link {
    font-size: 12px !important;
  }

  #or-cbf-popup {
    overflow-y: scroll;
    max-height: 60vh;
  }
}