.wbt-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 24px;
  border-radius:999px;
  border:0;
  cursor:pointer;
  background:#0071EB;
  color:#fff;
  font-weight:700;
}
.wbt-btn:hover,
.wbt-btn:focus{
  background:#005ed1;
  color:#fff;
}
.wbt-btn-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  flex:0 0 20px;
  line-height:1;
}
.wbt-btn-svg{
  display:block;
  width:20px;
  height:20px;
  fill:#ffffff;
}
.wbt-btn .wbt-btn-label{
  letter-spacing:0;
}

.wbt-btn-label{
  display:inline-block;
  line-height:1.2;
}
.wbt-btn:active{ transform:translateY(1px); }

.wbt-modal{ display:none; position:fixed !important; inset:0 !important; z-index:2147483645 !important; isolation:isolate; }
.wbt-modal.is-open{ display:block; }
body.wbt-modal-open{ overflow:hidden; }

.wbt-modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:2147483646;
}
.wbt-modal-panel{
  position:fixed;
  z-index:2147483647;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(520px, calc(100% - 24px));
  background:#fff;
  border-radius:16px;
  padding:16px;
  isolation:isolate;
  max-height:calc(100vh - 24px);
  overflow:auto;
}
.wbt-modal-close{
  position:absolute;
  right:12px; top:10px;
  border:0; background:transparent;
  font-size:22px; cursor:pointer;
  line-height:1;
  color:#111;
  padding:6px;
  opacity:.85;
}
.wbt-modal-close:hover{opacity:1;}
.wbt-modal-close:focus{outline:2px solid rgba(0,0,0,.25);outline-offset:2px;border-radius:8px;}

.wbt-title{ margin:0 0 12px; }

.wbt-form label{ display:block; font-weight:600; margin-top:10px; }

.wbt-form-row{
  display:grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr);
  gap:12px;
  align-items:start;
}
.wbt-form-col{
  min-width:0;
}
.wbt-form-col label{
  margin-top:0;
}
.wbt-form-row + label,
.wbt-form-row + .wbt-summary,
.wbt-form-row + .wbt-step-next,
.wbt-form-row + .wbt-step-actions,
.wbt-form-row + .wbt-msg,
.wbt-form-row + .wbt-field,
.wbt-form-row + .wbt-date-wrap{
  margin-top:0;
}
.wbt-form-col .wbt-field,
.wbt-form-col .wbt-date-wrap{
  margin-top:6px;
}
.wbt-form-col .wbt-date-wrap .wbt-date{
  min-width:0;
}

.wbt-field{
  width:100%;
  padding:10px 12px;
  border:1px solid #ddd;
  border-radius:12px;
  margin-top:6px;
}

.wbt-summary{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:#f7f7f7;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.wbt-book-now{
  width:100%;
  margin-top:12px;
  padding:14px 20px;
  border-radius:999px;
  border:0;
  background:#000000;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.wbt-book-now:hover,.wbt-book-now:focus{ background:#111111; color:#fff; }
.wbt-msg{ margin-top:10px; font-size:13px; }


/* Date field: show icon + placeholder overlay (iOS friendly) */
.wbt-date-wrap{
  position: relative;
  width: 100%;
  display: block;
}

.wbt-date-wrap .wbt-date{
  width: 100%;
  box-sizing: border-box;
  padding-right: 58px; /* space for icon */
  /* IMPORTANT: do NOT remove native date UI on desktop.
     Some browsers won't open the picker if appearance is stripped. */
  -webkit-appearance: auto;
  appearance: auto;
}

/* Our calendar icon (bigger + tappable) */
.wbt-date-icon{
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  opacity: .85;
  pointer-events: auto;
  user-select: none;
  cursor: pointer;
}

/*
  Fake placeholder overlay is ONLY needed on iOS Safari (where date placeholders can be unreliable).
  On desktop it can appear "double" and look like text is stacked.
*/
@supports (-webkit-touch-callout: none) {
  /* Fake placeholder for iOS (shown when empty) */
  .wbt-date-wrap::before{
    content: attr(data-placeholder);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: .55;
    pointer-events: none;
    font-size: 14px;
  }

  /* Hide fake placeholder when value exists */
  .wbt-date-wrap.has-value::before{
    display: none;
  }
}

/* Keep the native date picker working on desktop */
.wbt-date{ cursor: pointer; }



/* Calendar SVG icon */
.wbt-date-icon{
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0,0,0,.04);
}
.wbt-date-svg{
  width: 22px;
  height: 22px;
  fill: rgba(0,0,0,.70);
}

/* iOS Safari-specific reset (safe on touch Safari only) */
@supports (-webkit-touch-callout: none) {
  .wbt-date-wrap .wbt-date{
    -webkit-appearance: none;
    appearance: none;
    background-color: #f2f2f2;
  }

  /* Hide native indicator on iOS, we use our own icon */
  .wbt-date::-webkit-calendar-picker-indicator{
    opacity: 0 !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wbt-date::-webkit-inner-spin-button,
  .wbt-date::-webkit-clear-button{
    display: none;
  }

  .wbt-date::-webkit-datetime-edit{
    color: inherit;
  }
}


/* Inline form mode (shortcode [wbt_booking_form]) */

.wbt-inline{
  position:relative !important;
}
.wbt-inline .wbt-inline-card{
  position:static !important;
  inset:auto !important;
  left:auto !important;
  top:auto !important;
  transform:none !important;
  width:100%;
  max-width:100%;
  z-index:auto !important;
  background:#fff;
  padding:20px;
  border-radius:20px;
  box-shadow:0 16px 48px rgba(0,0,0,.08);
}
.wbt-inline .wbt-form,
.wbt-inline .wbt-step,
.wbt-inline .wbt-summary,
.wbt-inline .wbt-step-head,
.wbt-inline .wbt-inline-price{
  position:static !important;
}
.wbt-inline .wbt-modal{
  display:block;
}
.wbt-inline .wbt-modal-backdrop{
  display:none;
}
.wbt-inline .wbt-modal-panel{
  position:relative;
  left:auto;
  top:auto;
  transform:none;
  width:100%;
  max-width:100%;
  z-index:auto;
  padding:0;
  border-radius:0;
}
.wbt-inline .wbt-title{
  margin:0 0 12px;
}

.wbt-inline .wbt-modal-panel.wbt-inline-steps{
  background:#fff;
  padding:20px;
  border-radius:20px;
  box-shadow:0 16px 48px rgba(0,0,0,.08);
}

.wbt-inline-price{
  margin:0 0 18px;
  padding:0 0 16px;
  border-bottom:1px solid #e5e7eb;
}
.wbt-inline-price-top{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:4px;
  font-size:14px;
  color:#111827;
}
.wbt-inline-price-from{
  font-weight:700;
}
.wbt-inline-price-strike{
  color:#6b7280;
  text-decoration:line-through;
  font-weight:700;
}
.wbt-inline-price-main{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.wbt-inline-price-amount{
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  color:#d92d20;
}
.wbt-inline-price-suffix{
  font-size:14px;
  color:#111827;
  font-weight:600;
}
.wbt-inline .wbt-inline-steps .wbt-step-head{
  margin-bottom:16px;
}

/* Two-step popup booking form */
.wbt-modal-panel-steps{
  max-width: 560px;
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
}
.wbt-step-head{
  margin-bottom: 14px;
}
.wbt-step-kicker{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}
.wbt-step-progress{
  display:flex;
  align-items:center;
  gap:8px;
  margin: 0 0 12px;
}
.wbt-step-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d1d5db;
}
.wbt-step-dot.is-active{
  background: #111827;
}
.wbt-step-line{
  flex:1;
  height:2px;
  background:#e5e7eb;
}
.wbt-step{
  display:block;
}
.wbt-step[hidden]{
  display:none !important;
}
.wbt-step-next,
.wbt-step-back{
  width:100%;
  margin-top:12px;
  padding:14px 20px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.wbt-step-next{
  border:0;
  background:#111827;
  color:#fff;
}
.wbt-step-next:hover,
.wbt-step-next:focus{
  background:#000;
  color:#fff;
}
.wbt-step-back{
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
}
.wbt-step-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.wbt-step-summary-item{
  padding:12px 14px;
  border:1px solid #ececec;
  border-radius:14px;
  background:#fafafa;
}
.wbt-step-summary-item span{
  display:block;
  font-size:12px;
  color:#6b7280;
  margin-bottom:4px;
}
.wbt-step-summary-item strong{
  display:block;
  font-size:14px;
  color:#111827;
}
.wbt-step-actions{
  display:grid;
  grid-template-columns: 1fr 1.3fr;
  gap:12px;
  align-items:center;
}
.wbt-step-actions .wbt-book-now,
.wbt-step-actions .wbt-step-back{
  margin-top:0;
}
.wbt-has-steps .wbt-summary{
  margin-top:14px;
  padding:14px;
  background:#f9fafb;
  border:1px solid #ececec;
}

@media (max-width: 767px){
  .wbt-modal-panel-steps{
    width: min(100% - 16px, 560px);
    padding: 18px;
    border-radius: 18px;
    max-height: calc(100vh - 24px);
    overflow:auto;
  }
  .wbt-step-actions{
    grid-template-columns:1fr;
  }
}

@media (max-width: 480px){
  .wbt-form-row{
    grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr);
    gap:10px;
  }
  .wbt-form-col .wbt-field{
    padding:10px 10px;
  }
  .wbt-form-col .wbt-date-wrap .wbt-date{
    padding-right:46px;
  }
  .wbt-form-col .wbt-date-icon{
    right:10px;
    width:34px;
    height:34px;
  }
}
