/* ==========================================================================
   Booking Steps Top Head
   ========================================================================== */
.booking-steps {
  display: flex;
  align-items: center;
  justify-content: left;
  font-family: sans-serif;
  margin: 2rem 0 3rem 0;
  overflow: auto;
}
.booking-steps::-webkit-scrollbar { display: none; }

/* Ogni step è un flex-item */
.booking-steps .step {
  display: flex;
  align-items: center;
  position: relative;
}

/* La linea tra uno step e l'altro */
.booking-steps .step:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #ccc;
  margin: 0 1rem;
  width: 50px;
}

/* Il cerchio numerato */
.booking-steps .step .circle {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
}

/* Testo sotto il cerchio */
.booking-steps .step .label {
  margin-left: .75rem;
  font-size: .8rem;
  white-space: nowrap;
  color:#8a8a8a;
}

/* Stati */
h2.booking-step-title { font-size: 2rem !important; }

/* Completato: cerchio pieno grigio e ✓ bianco */
.booking-steps .step.completed .circle {
  background-color: #888;
  color: transparent; /* nasconde il numero */
  border: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M5%2012.5l4%204L19%207%27%20fill%3D%27none%27%20stroke%3D%27white%27%20stroke-width%3D%272.5%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 40% 40%;
}

/* Corrente: cerchio pieno nero e numero bianco */
.booking-steps .step.current .circle {
  background: #000;
  color: #fff;
}

/* Upcoming: cerchio bianco con bordo grigio e numero grigio */
.booking-steps .step.upcoming .circle {
  background: #fff;
  border: 1px solid #8a8a8a;
  color: #333;
  font-weight: 400;
}

/* ==========================================================================
   Booking & Guest Layout 1/3 DX
   ========================================================================== */
.booking-options h3 { font-size:1.6rem !important; font-weight:500; }

.booking-grid, .guest-grid {
  display: flex;
  gap: 10%;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.booking-options, .guest-forms { width: 55%; margin-bottom:30px; }
.booking-summary, .guest-summary { width: 35%; }

@media (max-width: 768px) {
  .booking-options, .guest-forms,
  .booking-summary, .guest-summary { width: 100%; }
  input.qty-input { justify-items: center !important; }
}

.summary {
  padding: 0;
  padding-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 24px 0 rgba(0, 0, 0, .15);
}

/* ==========================================================================
   Booking Header & Table
   ========================================================================== */
.booking-header-grid {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 25px;
  border-bottom:1px solid lightgray;
  padding: 20px;
}

.booking-meta { flex: 1; min-width: 60% !important; }
.booking-meta h3 { margin: 0 0 15px; font-size: 1.6rem; font-weight: 400; }
.booking-meta p { margin: 0; font-size: 0.95rem; color: #333; }

.booking-thumb img {
  min-width: 40% !important;
  height:125px !important;
  border-radius: 12px;
  object-fit: cover;
}
.booking-thumb img.attachment-medium.size-medium.wp-post-image {
  max-width: -webkit-fill-available !important;
}
.booking-thumb { width: calc(40% - 10px); }

.booking-summary h2, .guest-summary h2 {
  margin-top: 0;
  font-size:1.6rem;
  font-weight:400;
  padding: 0 20px 0 20px;
}

.price-details-table { width: 100%; border-collapse: collapse; background: transparent; }
.price-details-table, .price-details-table tr,
.price-details-table td, .price-details-table th {
  border: none !important;
  background: transparent !important;
  padding: 0 20px;
}

.booking-total {
  padding:10px 20px ;
  background:black;
  justify-content: space-between;
  display: flex;
  text-transform:uppercase;
  font-weight: 500;
  color:#C2ED40;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
button.buttonc {
  width:-webkit-fill-available;
  margin:20px;
  border:none;
  border-radius:40px;
  background:#C2ED40;
  text-transform:uppercase;
  font-weight:500;
  color:black;
  justify-self:center;
}
button.buttonc:hover {
  background:black !important;
  color:white !important;
  font-weight:500 !important;
}

/* ==========================================================================
   Guest Form Styles
   ========================================================================== */
.guest-form-block { padding: 5px 0 35px 0; }
.guest-form-block h3 {
  border: 1px solid lightgray;
  border-radius: 40px;
  padding: 5px 15px;
  width: fit-content;
  font-size: 1rem !important;
  text-transform: uppercase;
  background: black;
  color: white;
}

/* ==========================================================================
   Quantity Controls & Booking Line
   ========================================================================== */
.qty-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width:130px;
  justify-content: space-around;
}
.qty-input { width: 40px; text-align: center; }

.booking-line {
  padding: 30px 0;
  border-bottom: 1px solid #ccc;
  min-height: 90px;
  align-content: center;
}
.line-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px !important;
}
.line-title { font-weight: 500; font-size: 1.1rem; }
.line-price { font-weight: 500; margin-left: auto; margin-right: 20px; }

.qty-controls {
  display: flex;
  align-items: center;
  border:1px solid lightgray;
  border-radius: 30px;
  padding: 5px 5px;
  gap: 10px;
}
.qty-controls button {
  border: 0.9px solid lightgray;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.qty-input {
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 400;
}
input.qty-input {
  border: none !important;
  width: 40px !important;
  padding: 0 !important;
  justify-items: right;
}
button.qty-minus,
button.qty-plus {
  color: lightgrey !important;
  font-weight: 600 !important;
  padding: 0 !important;
  padding-bottom: 1px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.qty-controls button:focus,
.qty-controls button:hover {
  background: transparent !important;
  font-weight: 900;
}
.line-description { margin-top: 25px; color: #444; font-size: 0.95rem; }

strong.line-title { min-width: 150px !important; }
span.badge-out {
  min-width: 130px;
  text-align: center;
  color: black !important;
  border-radius: 100px !important;
  max-width: 130px;
  margin: 0 !important;
  justify-self: flex-end;
  padding:5px !important;
}

/* ==========================================================================
   Form Inputs & Selects Guest
   ========================================================================== */
#guest-form-wrapper input[type="text"],
#guest-form-wrapper input[type="email"] {
  border: 1px solid lightgray !important;
  border-radius: 40px !important;
  margin-top:0 !important;
}
#guest-form-wrapper label {
  width: 100% !important;
  font-size:1rem !important;
  font-weight:600 !important;
}
#guest-form-wrapper select {
  border-radius: 40px !important;
  border:1px solid lightgray !important;
  margin-top:10px !important;
}
.guest-row-1 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 1.5rem 1rem !important;
}

/* Evita che Telefono/Cognome allarghino la seconda colonna del grid su mobile. */
#guest-form-wrapper .guest-row-1 > div,
#guest-form-wrapper .guest-row-1 label {
  min-width: 0;
}

#guest-form-wrapper .guest-row-1 input[type="text"],
#guest-form-wrapper .guest-row-1 input[type="email"],
#guest-form-wrapper .guest-row-1 input[type="tel"] {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

#guest-form-wrapper .guest-row-1 .telefono-wrapper {
  min-width: 0;
}

/* Nazione + data di nascita: due gruppi indipendenti e allineati */
.guest-row-2 {
  display: grid !important;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 3fr) !important;
  gap: 1rem !important;
  align-items: start;
  margin-top: 1.5rem !important;
}
.guest-row-2 .guest-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.guest-row-2 .guest-field-label {
  display: block;
  width: 100%;
  min-height: 2.35em;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
}
.guest-row-2 select {
  width: 100% !important;
  min-width: 0;
  margin-top: 10px !important;
}
.guest-dob-selects {
  display: grid;
  grid-template-columns: .8fr 1.25fr 1fr;
  gap: 1rem;
  min-width: 0;
}

/* Select dello Step 2: testo nero e freccia interna coerente */
#guest-form-wrapper .guest-form-block select {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background-color: #fff !important;
}

#guest-form-wrapper .guest-row-2 select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%3E%3Cpath%20d%3D%22M1%201l4%204%204-4%22%20fill%3D%22none%22%20stroke%3D%22%23222%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 10px 6px !important;
  padding-right: 36px !important;
}

#guest-form-wrapper .guest-form-block select option {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #888 transparent transparent transparent !important;
}
span.select2-selection__arrow { height: -webkit-fill-available !important; right: 15px !important; }
span#select2-billing_state-container { line-height: 25px !important; }

/* Telefono Step 2: il bordo appartiene solo al wrapper.
   Select e input interni restano perfettamente allineati e senza "doppio pill". */
.telefono-wrapper {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
}

#guest-form-wrapper .telefono-wrapper select {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 90px;
  max-width: 110px;
  min-height: 42px;
  height: auto !important;
  margin: 0 !important;
  padding: 0 34px 0 14px !important;
  border: 0 !important;
  border-right: 1px solid #ccc !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  background-color: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%3E%3Cpath%20d%3D%22M1%201l4%204%204-4%22%20fill%3D%22none%22%20stroke%3D%22%23222%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 10px 6px !important;
}

#guest-form-wrapper .telefono-wrapper input[type="text"],
#guest-form-wrapper .telefono-wrapper input[type="tel"] {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  min-height: 42px;
  height: auto !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box;
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
}

#guest-form-wrapper .telefono-wrapper input::placeholder {
  color: #777 !important;
  -webkit-text-fill-color: #777 !important;
  opacity: 1;
}

.telefono-wrapper:focus-within {
  border-color: #777;
  outline: 2px solid #777;
  outline-offset: 2px;
}

/* Il focus resta sul wrapper: niente bordi doppi sui due controlli interni. */
#guest-form-wrapper .telefono-wrapper select:focus-visible,
#guest-form-wrapper .telefono-wrapper input:focus-visible {
  outline: none !important;
}


/* Note facoltative per ciascun ospite */
#guest-form-wrapper .guest-notes-field {
  margin-top: 1.1rem;
}
#guest-form-wrapper .guest-notes-field label {
  display: block;
  margin-bottom: .55rem;
}
#guest-form-wrapper .guest-notes-field textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid lightgray !important;
  border-radius: 18px !important;
  padding: 12px 16px !important;
  margin: 0 !important;
  background: #fff !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  font: inherit;
  line-height: 1.45;
}
#guest-form-wrapper .guest-notes-field textarea::placeholder {
  color: #777 !important;
  -webkit-text-fill-color: #777 !important;
  opacity: 1;
}
#guest-form-wrapper .guest-notes-field textarea:focus-visible {
  outline: 2px solid #777;
  outline-offset: 2px;
}

/* ==========================================================================
   Mobile layout tweaks
   ========================================================================== */
@media (max-width: 768px) {
  .line-top {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 5px;
    align-items: start;
  }
  .line-top .line-title { grid-column: 1 / 2; grid-row: 1 / 2; margin: 0; }
  .line-top .line-price { grid-column: 1 / 2; grid-row: 2 / 3; margin: 0; }
  .line-top .qty-controls { grid-column: 2 / 3; grid-row: 1 / 3; justify-self: end; }

  .booking-steps .step.current .circle { background: #000; color: #fff; }
  .booking-steps .step .circle { width: 1.2rem; height: 1.2rem; font-size: 0.8rem; }
  .booking-steps .step:not(:last-child)::after { width: 25px; }

  .booking-header-grid { width: 100%; padding: 0; border: none; }
  .booking-thumb img.attachment-medium.size-medium.wp-post-image { width: 100%; }
  .booking-thumb { width: calc(40% - 10px); }
  .summary { box-shadow: none; }
  button.buttonc { margin: 20px 0; }
  .booking-summary h2, .guest-summary h2 { padding: 0; }
  h2.booking-step-title { font-size: 2rem !important; }

  .oc-two-col { grid-template-columns: 1fr !important; }
  .oc-guests-grid { grid-template-columns: 1fr !important; }

  .guest-row-2 {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  .guest-row-2 .guest-field-label {
    min-height: 0;
  }
  .guest-dob-selects {
    grid-template-columns: .8fr 1.25fr 1fr;
    gap: .65rem;
  }
  #guest-form-wrapper .guest-row-2 select {
    background-position: right 12px center !important;
    background-size: 10px 6px !important;
    padding-left: 14px !important;
    padding-right: 32px !important;
  }

  .telefono-wrapper {
    min-height: 44px;
  }
  #guest-form-wrapper .telefono-wrapper select {
    min-width: 86px;
    max-width: 100px;
    padding-left: 13px !important;
    padding-right: 31px !important;
    background-position: right 11px center !important;
  }
  #guest-form-wrapper .telefono-wrapper input[type="text"],
  #guest-form-wrapper .telefono-wrapper input[type="tel"] {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


@media (max-width: 420px) {
  .guest-dob-selects {
    grid-template-columns: .72fr 1.28fr 1fr;
    gap: .45rem;
  }
  .guest-row-2 select {
    font-size: .95rem;
  }
  #guest-form-wrapper .guest-row-2 select {
    background-position: right 10px center !important;
    padding-left: 11px !important;
    padding-right: 29px !important;
  }
}


@media (max-width: 360px) {
  .guest-row-1 {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Extra lines block
   ========================================================================== */
.extra-line {
  border-bottom: solid 1px #cccccc;
  padding-bottom: 35px;
  padding-top: 25px;
}

/* ==========================================================================
   Checkout Summary (ex inline)
   ========================================================================== */
#oc-checkout-summary .oc-extra-row td { font-size: 14px; color:#444; }
#oc-checkout-summary .oc-extra-tag { opacity:.7; font-weight:500; }
#oc-checkout-summary .coupon-row .coupon-code { margin-left:.35rem; }

/* ==========================================================================
   Thank You – Grids & overrides
   ========================================================================== */
.oc-5cols {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:24px;
  padding:12px 0;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
}
@media (max-width:1024px){ .oc-5cols{grid-template-columns:repeat(3,1fr);} }
@media (max-width:640px){ .oc-5cols{grid-template-columns:repeat(2,1fr);} }

.oc-two-col { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:1024px){ .oc-two-col{grid-template-columns:1fr;} }

.oc-guests-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:1024px){ .oc-guests-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .oc-guests-grid{grid-template-columns:1fr;} }

/* Thank You page extra (tuo blocco) */
.oc-order-col { padding: 0 !important; border: none !important; }
.oc-billing-box{ padding: 0 !important; border: none !important; }
.oc-two-col { gap: 3rem !important; }

.oc-order-table th,
.price-details-table th { font-weight: 700; text-align: left; }
.oc-order-table td,
.oc-order-table th,
.price-details-table td,
.price-details-table th { border-left: none; border-right: none; }

.oc-guest-card { font-size: 1rem; border: 1px solid #c3ed40 !important; padding: 20px !important; }

.booking-header-grid { margin-bottom: 55px; gap: 3rem !important; }
.elementor-widget-woocommerce-purchase-summary .woocommerce h2 { margin-bottom: 25px; }

.booking-meta { min-width: 48% !important; max-width: 48%; }
.oc-blocco1 small,
.oc-blocco2 small,
.oc-blocco3 small,
.oc-blocco4 small,
.oc-billing-box small { font-size: 1rem; font-weight: 500; }




.e-checkout__order_review { display: none !important; }

.woocommerce-button:hover { background: #033B40 !important; }
button.woocommerce-button.button.e-apply-coupon { margin-top: 10px; }

.coupon-container-grid { display: flex !important; gap:10px; }
.col.coupon-col-1 { width: 100% !important; }

button#place_order:hover{ background: #033B40 !important; }

textarea#text_area { border-radius: 20px !important; display: none; }

/* Il telefono checkout può essere dentro un wrapper prefisso + numero: niente offset verticale. */
input#billing_phone { margin: 0 !important; }
input#password { margin: 10px 0; }

button.woocommerce-button.button.woocommerce-form-login__submit.e-woocommerce-form-login-submit { margin: 10px; }

button#place_order { margin-top: 20px; }

.elementor-widget-woocommerce-checkout-page .select2-container--default .select2-selection--single {
  border-radius: 100px !important;
  margin-bottom: 1px !important;
}
input.select2-search__field { border-radius: 0 !important; }

span.select2-dropdown.select2-dropdown--below,
span.select2-dropdown.select2-dropdown--above {
  border: 1px solid #d3d3d3;
  padding: 10px;
}

.e-coupon-anchor { display: block !important; }
p.e-woocommerce-coupon-nudge.e-checkout-secondary-title { display: none; }

.e-checkout__container { gap: 0 !important; }
.elementor-widget-woocommerce-checkout-page label.checkbox { line-height: 1.5 !important; }
p#ws_opt_in_field { padding: 3px !important; }

.elementor-widget-woocommerce-checkout-page .woocommerce-checkout .form-row .input-checkbox {
  height: 18px; width: 18px;
}


/* Brand/Favicon prima degli step */
.booking-brand{
  display:inline-flex;align-items:center;justify-content:center;margin-right:12px;text-decoration:none
}
.booking-favicon{width:40px;height:40px !important;border-radius:4px;display:block; margin-right: 20px;}
.booking-favicon-fallback{font-size:18px;line-height:1;display:inline-block}
@media (max-width:768px){.booking-brand{margin-right:8px; margin-left:15px;}
    
}


/* Rendiamo "cliccabile" lo step completato senza stile da bottone */
.step .step-go{all:unset;display:flex;align-items:center;cursor:pointer;color:inherit}



/* Meta extra sotto le righe ordine (Thank You / email-like) */
.oc-order-table .oc-item-extras { color:#555; font-size:13px; line-height:1.4; }


.booking-line.is-out .badge-out {
   opacity:.65;
}

.booking-line.is-out .line-top {
    opacity:.65;
}

/* Accessibilità: focus visibile senza influenzare i campi globali del tema. */
#booking-funnel button:focus-visible,
#guest-form-wrapper input:focus-visible,
#guest-form-wrapper select:focus-visible,
#guest-form-wrapper button:focus-visible,
.booking-steps .step-go:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px !important;
}


@media (max-width: 767px) {

  #guest-form-wrapper .guest-row-1 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #guest-form-wrapper .guest-row-1 > div,
  #guest-form-wrapper .guest-row-1 label {
    width: 100%;
    min-width: 0;
  }

  #guest-form-wrapper .guest-row-1 input[type="text"],
  #guest-form-wrapper .guest-row-1 input[type="email"],
  #guest-form-wrapper .guest-row-1 input[type="tel"],
  #guest-form-wrapper .guest-row-1 .telefono-wrapper {
    width: 100% !important;
    min-width: 0 !important;
  }
}