.wbt-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  background:#FF7E11;
  color:#fff;
  font-weight:700;
}
.wbt-btn-icon{ font-size:18px; line-height:1; }
.wbt-btn:active{ transform:translateY(1px); }

.wbt-modal{ display:none; }
.wbt-modal.is-open{ display:block; }
.wbt-modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  z-index:9998;
}
.wbt-modal-panel{
  position:fixed;
  z-index:9999;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:min(520px, calc(100% - 24px));
  background:#fff;
  border-radius:16px;
  padding:16px;
}
.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-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:12px 14px;
  border-radius:12px;
  border:0;
  background:#111;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.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 .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;
}
