#clock-pms-wbe-iframe {
  width: 100%;
  height: 100%;
}

#clock-pms-wbe-container {
  position: fixed;
  z-index: 10000;
  transition: transform 400ms ease-out;
  box-shadow: 0 6px 6px -3px #0003, 0 10px 14px 1px #00000024, 0 4px 18px 3px #0000001f;
  overflow: hidden;
}

#clock-pms-wbe-container.clock-pms-mode-standard {
  top: 20px;
  right: 20px;
  width: 1024px;
  height: calc(100vh - 40px);
}

#clock-pms-wbe-container.clock-pms-mode-mobile {
  top: 20px;
  right: 20px;
  width: 500px;
  height: calc(100vh - 40px);
}

#clock-pms-wbe-container.clock-pms-mode-fullscreen {
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
}

#clock-pms-wbe-container.clock-pms-wbe-rounded-corners {
  border-radius: 4px;
}

@media only screen and (max-width: 1064px) {
  #clock-pms-wbe-container.clock-pms-mode-standard, #clock-pms-wbe-container.clock-pms-mode-mobile {
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
  }
}

#clock-pms-wbe-backdrop {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0006;
}

@keyframes clock-pms-wbe-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.clock-pms-wbe-fade-in {
  animation-name: clock-pms-wbe-fade-in;
  animation-duration: 400ms;
}

@keyframes clock-pms-wbe-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.clock-pms-wbe-fade-out {
  animation-name: clock-pms-wbe-fade-out;
  animation-duration: 400ms;
  animation-fill-mode: forwards;
}

.clock-pms-wbe-prevent-scroll {
  overflow: hidden;
}

/* History restoration and keyboard focus must not animate the viewport or track.
   The gallery's arrows and dots still request animated scrolling explicitly. */
html:has([data-room-carousel]),
.rooms-editorial-list[data-room-carousel] {
  scroll-behavior: auto !important;
}


@media (min-width: 1065px) {
  #clock-pms-wbe-container.clock-pms-mode-standard {
    top: 3.5vh !important;
    left: 3.5vw !important;
    right: 3.5vw !important;
    width: auto !important;
    height: 93dvh !important;
    border-radius: 8px;
    box-shadow: 0 24px 72px #0918244d;
  }
}

[data-retro-booking-error] {
  position: fixed;
  z-index: 2147483647;
  inset: auto 16px 16px;
  max-width: 560px;
  padding: 16px;
  margin: auto;
  border: 1px solid #b08b53;
  background: #fff;
  color: #263947;
  box-shadow: 0 12px 34px #0004;
  font: 15px/1.5 system-ui, sans-serif;
}

[data-retro-booking-error] button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}


/* Commit the official open position in the tap's paint. Leave its close animation intact. */
#clock-pms-wbe-container[style*="translateX(0"]:not([style*="translateX(100%)"]) {
  transition: none;
}

/* Reapplying a selection to an already open native pane must not fade its
   visible backdrop a second time. Clock keeps control of the close animation. */
#clock-pms-wbe-backdrop.clock-pms-wbe-fade-in {
  animation: none;
}

#clock-pms-wbe-container[data-retro-clock-switching] {
  background-color: #fff;
}

#clock-pms-wbe-container[data-retro-clock-switching] #clock-pms-wbe-iframe,
#clock-pms-wbe-container[data-retro-clock-idle] #clock-pms-wbe-iframe {
  visibility: hidden;
}

/* On the first room choice the original calendar stays visible while Clock
   acknowledges the requested room. The controller enables its date controls on ACK. */
#clock-pms-wbe-container[data-retro-clock-switching][data-retro-clock-calendar-visible] #clock-pms-wbe-iframe {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  #clock-pms-wbe-container { transition: none; }
  #clock-pms-wbe-backdrop { animation-duration: .001s; }
}

[data-retro-booking-direct] {
  display: inline-block;
  padding: 10px 8px;
  color: #704d21;
  text-decoration: underline;
}

/* Slow provider responses keep their real calendar and its interactive area.
   The optional escape link takes its own row, with no overlay over the dates. */
#clock-pms-wbe-container[data-retro-clock-has-help] {
  display: flex;
  flex-direction: column;
}
#clock-pms-wbe-container[data-retro-clock-has-help] #clock-pms-wbe-iframe {
  flex: 1 1 0;
  min-height: 0;
  height: 0;
}
[data-retro-booking-slow] {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: #fff;
  color: #263947;
  font: 14px/1.35 system-ui, sans-serif;
}
[data-retro-booking-slow] button {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 10px 8px;
  font: inherit;
  cursor: pointer;
}

/* Keep the booking action reachable above a visible bottom cookie banner.
   A short phone viewport scrolls the two panels within the available space. */
@media (max-width: 900px) {
  html:root body:has(.retro-consent-banner:not([hidden])) [data-retro-mobile-actions].retro-mobile-menu {
    bottom: var(--retro-visible-banner-height, 0px);
  }
  html:root body:has(.retro-consent-banner:not([hidden])) [data-retro-mobile-actions].retro-mobile-menu [data-mobile-options] {
    max-height: max(52px, calc(100dvh - var(--retro-visible-banner-height, 0px) - 82px)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }
}
@media (max-width: 900px) and (max-height: 600px) {
  html:root body:has([data-retro-mobile-actions]:not([hidden])) .retro-consent-banner:not([hidden]) {
    max-height: 50dvh !important;
    overflow-y: auto !important;
  }
}

/* A guest can open the booking directly while the consent banner is still
   present. Keep the native booking above it until the guest closes Clock. */
body.clock-pms-wbe-prevent-scroll #clock-pms-wbe-backdrop { z-index: 2147483001; }
body.clock-pms-wbe-prevent-scroll #clock-pms-wbe-container { z-index: 2147483002; }
