.slc-booking-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.slc-booking-embed__frame {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  overflow: hidden;
  opacity: 1;
  transition: height 300ms ease-out, opacity 160ms ease-out;
}

/* Keep the WordPress artwork visible while the remote document boots. The
   first measured resize confirms that the styled widget is ready to paint. */
.slc-booking-embed.is-loading .slc-booking-embed__frame {
  opacity: 0;
  visibility: hidden;
}

.slc-booking-embed.is-ready .slc-booking-embed__frame {
  opacity: 1;
  visibility: visible;
}

/* Grow-up mode: the iframe is anchored on the bottom edge of its block, so
   opening a panel expands the widget upward over the hero and never moves
   the page content below it. */
.slc-booking-embed.is-anchored-bottom .slc-booking-embed__frame {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
}

@media (max-width: 640px) {
  .slc-booking-embed__frame {
    transition: opacity 160ms ease-out;
  }

  .slc-booking-embed.is-anchored-bottom .slc-booking-embed__frame {
    position: relative;
    bottom: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slc-booking-embed__frame {
    transition: none;
  }
}

