/* Embeddable booking UI — popup-friendly (.shm-book-popup) and full page */
.shm-book-popup {
  max-height: none;
  overflow: visible;
}

.shm-book,
.shm-book *,
.shm-book button,
.shm-book input,
.shm-book a,
.shm-book select,
.shm-book textarea {
  font-family: Poppins, system-ui, -apple-system, Segoe UI, sans-serif;
}

.shm-book {
  --page: #eef1f4;
  --ink: #0f1b2d;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --orange: #e87722;
  --green: #1f7a63;
  position: relative;
  z-index: 1;
  background: transparent;
  padding: 8px 12px 16px;
}

.shm-book-embed {
  padding: 0 0 8px;
}

.shm-book * {
  box-sizing: border-box;
}

.shm-book-inner {
  max-width: 920px;
  margin: 0 auto;
}

.shm-book .card {
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.shm-book-popup .shm-book .card {
  box-shadow: none;
}

.shm-book .intro {
  padding: 12px 20px 0;
  border-bottom: none;
  text-align: center;
}

@media (min-width: 640px) {
  .shm-book .intro {
    padding: 22px 32px;
  }
}

.shm-book .intro p.kicker {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.shm-book h1 {
  margin: 6px 0 16px;
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
}

@media (min-width: 640px) {
  .shm-book h1 {
    font-size: 22px;
  }
}

.shm-book .intro-lead {
  margin: 0;
  color: #6b6b6b;
  font-size: 14px;
  text-align: center;
}

.shm-book .fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 16px;
  text-align: left;
}

@media (min-width: 800px) {
  .shm-book .fields {
    grid-template-columns: 1fr 1fr;
  }

  .shm-book .split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.shm-book .meet-note {
  margin: 10px auto 0;
  font-size: 13px;
  color: #3b4657;
  background: #f3faf7;
  border: 1px solid #d7ebe3;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  max-width: 720px;
}

.shm-book label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: block;
  color: var(--ink);
  text-align: left;
}

.shm-book input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.shm-book input:focus {
  outline: none;
  border-color: var(--orange);
}

.shm-book .cal {
  padding: 16px 20px;
  background: #fafbfc;
}

@media (min-width: 800px) {
  .shm-book .cal {
    border-radius: 12px 0 0 12px;
  }
}

.shm-book .times {
  padding: 16px 20px;
  border-top: none;
  display: flex;
  flex-direction: column;
}

@media (min-width: 800px) {
  .shm-book .cal,
  .shm-book .times {
    padding: 24px 32px;
  }

  .shm-book .times {
    border-left: none;
  }
}

.shm-book .cal-prompt,
.shm-book .times-prompt {
  text-align: center;
  margin: 0;
  font-size: 14px;
}

.shm-book .month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  margin: 16px 0 12px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.shm-book .month button {
  border: 0;
  background: #f3f4f6;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  color: #5b6470;
  cursor: pointer;
  flex-shrink: 0;
}

.shm-book .month button:hover {
  background: #e8eaed;
  color: var(--ink);
}

.shm-book .gridbox {
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 12px 10px 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 27, 45, 0.06);
}

.shm-book .wk,
.shm-book .days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.shm-book .wk {
  border-bottom: 1px solid #eef0f3;
  margin-bottom: 6px;
  padding-bottom: 4px;
}

.shm-book .wk div {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  padding: 6px 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shm-book .day {
  height: 40px;
  width: 40px;
  margin: 3px auto;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shm-book .day:not([disabled]):hover {
  background: #fff5eb;
  border-color: #fcd9b8;
}

.shm-book .day[disabled] {
  color: #c5c9d0;
  cursor: default;
}

.shm-book .day.sel {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(232, 119, 34, 0.35);
}

.shm-book .day.sel .dot {
  background: #fff;
}

.shm-book .dot {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--orange);
  border-radius: 50%;
  margin: 2px auto 0;
  opacity: 0.85;
}

.shm-book .slotlist {
  max-height: 240px;
  overflow: auto;
  margin-top: 16px;
}

@media (min-width: 800px) {
  .shm-book .slotlist {
    max-height: 340px;
  }
}

.shm-book .slot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0;
  background: 0;
  cursor: pointer;
  font-size: 14px;
  color: #3b4657;
  border-radius: 8px;
}

.shm-book .slot-tz {
  color: #8a8a92;
  font-size: 12px;
}

.shm-book .slot.on {
  background: #fff5eb;
  color: var(--orange);
  font-weight: 600;
  border: 1px solid #fcd9b8;
}

.shm-book .muted-inline {
  color: #8a8a92;
  font-size: 14px;
  margin: 0;
}

.shm-book .err {
  color: #d63638;
  font-size: 13px;
  margin-top: 12px;
}

.shm-book .confirm {
  margin-top: 20px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  background: #d9d9de;
  color: #6b6b6b;
}

.shm-book .confirm.go {
  background: var(--orange);
  color: #fff;
  cursor: pointer;
}

.shm-book .confirm.go:hover {
  background: #d06918;
}

.shm-book .success {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 32px 24px 28px;
  text-align: center;
}

.shm-book .success-icon {
  margin: 0 auto 22px;
  width: 88px;
  height: 88px;
}

.shm-book .success-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f7a63;
}

.shm-book .success-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

.shm-book .success-sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #5b6470;
}

.shm-book .success-when {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: #f7f8fa;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  text-align: center;
}

.shm-book .success-when .label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a92;
}

.shm-book .success-when .value {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.shm-book .success-when .tz {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #8a8a92;
}

.shm-book .success-meta {
  margin: 0 0 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: #3b4657;
}

.shm-book .success-meta p {
  margin: 0 0 8px;
}

.shm-book .success-meta p:last-child {
  margin-bottom: 0;
}

.shm-book .success-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.shm-book .success-note {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: #5b6470;
}

.shm-book .success-note-soft {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8a8a92;
}

.shm-book .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.shm-book .btn {
  display: inline-block;
  border-radius: 10px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.shm-book .btn-p {
  background: var(--orange);
  color: #fff;
  border: 0;
  cursor: pointer;
}

.shm-book .btn-p:hover {
  background: #d06918;
}

.shm-book .btn-s {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.shm-book .btn-s:hover {
  background: #f7f7f8;
}

.shm-book .note {
  text-align: center;
  color: #8a8a92;
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.45;
  padding: 0 8px;
}

/* Popup / Elementor modal — compact, no outer scroll, uniform fields */
.shm-book-popup {
  padding: 0;
  margin: 0;
}

.shm-book-popup .shm-book {
  padding: 0 8px 4px;
}

.shm-book-popup .shm-book-inner {
  max-width: 100%;
}

.shm-book-popup .shm-book .intro {
  padding: 0 12px 6px !important;
}

.shm-book-popup .shm-book .fields {
  margin-top: 0;
  gap: 10px;
  grid-template-columns: 1fr;
}

.shm-book-popup .shm-book label {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  min-height: 66px;
}

.shm-book-popup .shm-book input {
  width: 100%;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  margin-top: 4px;
  padding: 0 12px;
  font-size: 14px;
  line-height: normal;
}

.shm-book-popup .shm-book .split {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.shm-book-popup .shm-book .cal {
  padding: 8px 10px 6px;
  background: #fafbfc;
  border-radius: 0;
}

.shm-book-popup .shm-book .times {
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.shm-book-popup .shm-book .cal-prompt,
.shm-book-popup .shm-book .times-prompt {
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.shm-book-popup .shm-book .month {
  margin: 8px auto 6px;
  padding: 6px 10px;
  font-size: 15px;
}

.shm-book-popup .shm-book .gridbox {
  padding: 8px 6px 10px;
}

.shm-book-popup .shm-book .day {
  height: 32px;
  width: 32px;
  margin: 2px auto;
  font-size: 13px;
}

.shm-book-popup .shm-book .slotlist {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin-top: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c5c9d0 transparent;
}

.shm-book-popup .shm-book .slotlist::-webkit-scrollbar {
  width: 5px;
}

.shm-book-popup .shm-book .slotlist::-webkit-scrollbar-track {
  background: transparent;
}

.shm-book-popup .shm-book .slotlist::-webkit-scrollbar-thumb {
  background: #c5c9d0;
  border-radius: 4px;
}

.shm-book-popup .shm-book .slotlist::-webkit-scrollbar-thumb:hover {
  background: #a8adb6;
}

.shm-book-popup .shm-book .confirm {
  flex-shrink: 0;
  margin-top: 10px;
  padding: 11px;
}

.shm-book-popup .shm-book .wk div {
  padding: 4px 0;
  font-size: 10px;
}

/* v1.0.7 — vertically center booking block in Elementor popup (no outer scroll) */
.elementor-popup-modal:has(.shm-book-popup) .dialog-widget-content,
.elementor-popup-modal:has(.shm-book-popup) .dialog-lightbox-widget-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  max-height: 100vh;
  box-sizing: border-box;
}

.elementor-popup-modal:has(.shm-book-popup) .dialog-message,
.elementor-popup-modal:has(.shm-book-popup) .dialog-lightbox-message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
}

.elementor-popup-modal:has(.shm-book-popup) .dialog-message > .elementor,
.elementor-popup-modal:has(.shm-book-popup) .dialog-lightbox-message > .elementor {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
}

.elementor-popup-modal:has(.shm-book-popup) .elementor-section,
.elementor-popup-modal:has(.shm-book-popup) .elementor-container,
.elementor-popup-modal:has(.shm-book-popup) .elementor-column,
.elementor-popup-modal:has(.shm-book-popup) .elementor-widget-wrap {
  min-height: 0;
}

.elementor-popup-modal:has(.shm-book-popup) .elementor-element:has(.shm-book-popup) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 1 auto;
  width: 100%;
}

.elementor-popup-modal:has(.shm-book-popup) .elementor-element:has(.shm-book-popup) .elementor-widget-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.elementor-popup-modal .shm-book-popup {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 1 auto;
  width: 100%;
  min-height: 0;
  margin: auto 0;
}

.elementor-popup-modal .shm-book-popup .shm-book,
.elementor-popup-modal .shm-book-popup .shm-book-inner {
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
}

/* v1.0.9 — kill legacy 128px cap (cached 1.0.5 CSS / Elementor custom CSS) */
.shm-book-popup .shm-book .slotlist,
.elementor-popup-modal .shm-book-popup .shm-book .slotlist {
  max-height: none !important;
  margin-top: 0 !important;
}

/* v1.0.10 — responsive: mobile / tablet / desktop */
.shm-book-popup,
.shm-book-popup .shm-book,
.shm-book-popup .shm-book-inner,
.shm-book-popup .shm-book .card {
  max-width: 100%;
  overflow-x: clip;
}

.shm-book .split {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 800px) {
  .shm-book .split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
  }
}

@media (max-width: 799px) {
  .shm-book .cal {
    border-radius: 12px 12px 0 0;
  }

  .shm-book .times {
    border-top: 1px solid #eef0f3;
  }
}

/* v1.0.12 — phone / small tablet: single column fields + stacked calendar/times */
@media (max-width: 767px) {
  .shm-book {
    padding-left: 10px;
    padding-right: 10px;
  }

  .shm-book-popup .shm-book {
    padding-left: 10px;
    padding-right: 10px;
  }

  .shm-book .intro,
  .shm-book-popup .shm-book .intro {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .shm-book .fields,
  .shm-book-popup .shm-book .fields {
    grid-template-columns: 1fr !important;
    gap: 10px;
    width: 100%;
  }

  .shm-book .split,
  .shm-book-popup .shm-book .split {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
    width: 100%;
  }

  .shm-book-popup .shm-book label {
    min-height: 0;
    width: 100%;
  }

  .shm-book .cal,
  .shm-book .times,
  .shm-book-popup .shm-book .cal,
  .shm-book-popup .shm-book .times {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .shm-book .gridbox,
  .shm-book .month {
    max-width: 100%;
  }

  .shm-book .day {
    width: auto;
    min-width: 36px;
    max-width: 44px;
    height: 40px;
  }

  .shm-book-popup .shm-book .day {
    width: auto;
    min-width: 32px;
    max-width: 40px;
    height: 36px;
  }

  .shm-book .month button {
    width: 44px;
    height: 44px;
  }

  .shm-book .slot {
    min-height: 44px;
    padding: 12px;
    align-items: center;
  }

  .shm-book .confirm {
    min-height: 48px;
    padding: 14px 12px;
  }

  .shm-book input {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .shm-book-popup .shm-book .fields {
    gap: 10px 12px;
    grid-template-columns: 1fr 1fr;
  }

  .shm-book-popup .shm-book .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .shm-book {
    padding-left: 8px;
    padding-right: 8px;
  }
}
