/* How-to-book guide — sits top-right on Mindbody booking widgets */

.lmyc-mindbody-widget {
  position: relative;
}

.lmyc-booking-guide {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  max-width: min(100%, 42rem);
  pointer-events: none;
}

.lmyc-booking-guide.is-open {
  left: 0.75rem;
  right: 0.75rem;
  max-width: none;
  align-items: stretch;
}

.lmyc-booking-guide > * {
  pointer-events: auto;
}

.lmyc-booking-guide.is-open .lmyc-booking-guide__toggle {
  align-self: flex-end;
}

.lmyc-booking-guide__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.55rem 0.95rem 0.55rem 0.55rem;
  border: 1px solid rgba(66, 89, 54, 0.18);
  border-radius: 999px;
  background: rgba(255, 254, 244, 0.96);
  color: #425936;
  box-shadow:
    0 8px 22px rgba(47, 61, 40, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  cursor: pointer;
  font-family: var(--font-body-family, "GeneralSans-Light", Helvetica, Arial, sans-serif);
  text-align: left;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.lmyc-booking-guide__toggle:hover,
.lmyc-booking-guide__toggle:focus-visible {
  transform: translateY(-1px);
  background: #fffef4;
  border-color: rgba(66, 89, 54, 0.32);
  box-shadow: 0 12px 28px rgba(47, 61, 40, 0.18);
  outline: none;
}

.lmyc-booking-guide__icon {
  position: relative;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #425936;
  color: #fffef4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lmyc-booking-guide__icon::before {
  content: "";
  position: absolute;
  inset: -0.2rem;
  border-radius: 50%;
  border: 2px solid rgba(66, 89, 54, 0.35);
  animation: lmyc-booking-guide-pulse 2s ease-out infinite;
}

.lmyc-booking-guide__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.12rem;
  fill: currentColor;
}

.lmyc-booking-guide__copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  padding-right: 0.15rem;
}

.lmyc-booking-guide__label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: #425936;
}

.lmyc-booking-guide__hint {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(66, 89, 54, 0.72);
}

.lmyc-booking-guide.is-open .lmyc-booking-guide__toggle {
  background: #425936;
  border-color: #425936;
  color: #fffef4;
}

.lmyc-booking-guide.is-open .lmyc-booking-guide__label,
.lmyc-booking-guide.is-open .lmyc-booking-guide__hint {
  color: #fffef4;
}

.lmyc-booking-guide.is-open .lmyc-booking-guide__hint {
  opacity: 0.82;
}

.lmyc-booking-guide.is-open .lmyc-booking-guide__icon {
  background: #fffef4;
  color: #425936;
}

.lmyc-booking-guide.is-open .lmyc-booking-guide__icon::before {
  animation: none;
  opacity: 0;
}

.lmyc-booking-guide__panel {
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #0f1410;
  border: 1px solid rgba(66, 89, 54, 0.2);
  box-shadow: 0 18px 48px rgba(20, 28, 16, 0.28);
  transform-origin: top right;
  animation: lmyc-booking-guide-open 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.lmyc-booking-guide__panel[hidden] {
  display: none !important;
}

.lmyc-booking-guide__panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.6rem;
  padding: 0.55rem 3.4rem;
  background: #425936;
  color: #fffef4;
}

.lmyc-booking-guide__panel-title {
  margin: 0;
  font-family: var(--font-body-family, "GeneralSans-Light", Helvetica, Arial, sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

/* Match Our Team modal close — cream circle + thin X */
.lmyc-booking-guide__close {
  position: absolute;
  top: 50%;
  right: 0.55rem;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.6rem;
  height: 2.6rem;
  min-width: 2.6rem;
  max-width: 2.6rem;
  min-height: 2.6rem;
  max-height: 2.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  aspect-ratio: 1;
  background: rgba(255, 254, 244, 0.96);
  color: #303d1c;
  cursor: pointer;
  line-height: 0;
  flex: 0 0 2.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 0.25rem 0.7rem rgba(47, 61, 40, 0.14),
    0 0 0 1px rgba(66, 89, 54, 0.1);
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.lmyc-booking-guide__close svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.lmyc-booking-guide__close:hover,
.lmyc-booking-guide__close:focus-visible {
  background: #fffef4;
  color: #425936;
  box-shadow: 0 0.55rem 1.4rem rgba(66, 89, 54, 0.22);
  outline: none;
}

.lmyc-booking-guide__video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.lmyc-booking-guide__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@keyframes lmyc-booking-guide-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.28);
    opacity: 0;
  }
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}

@keyframes lmyc-booking-guide-open {
  from {
    opacity: 0;
    transform: translateY(-0.4rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media screen and (max-width: 767px) {
  .lmyc-booking-guide {
    top: 0.55rem;
    right: 0.55rem;
    left: 0.55rem;
    align-items: stretch;
    max-width: none;
  }

  .lmyc-booking-guide__toggle {
    align-self: flex-end;
    width: fit-content;
    max-width: 100%;
  }

  .lmyc-booking-guide__panel {
    width: 100%;
  }

  .lmyc-booking-guide__label {
    font-size: 1.1rem;
  }

  .lmyc-booking-guide__hint {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lmyc-booking-guide__icon::before,
  .lmyc-booking-guide__panel,
  .lmyc-booking-guide__toggle {
    animation: none !important;
    transition: none !important;
  }
}
