/* Floating dock: fixed buttons on the side of the screen, vertically centered. */
.olympus-floating-dock {
  --dock-bg: var(--wp--preset--color--primary, #c1282e);
  --dock-color: var(--wp--preset--color--primary-contrast, #fff);
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
}
.olympus-floating-dock.is-left {
  right: auto;
  left: 0;
  border-radius: 0 10px 10px 0;
}

.olympus-floating-dock__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 64px;
  min-height: 56px;
  margin: 0;
  padding: 10px 6px;
  border: 0;
  border-radius: 0;
  background: var(--dock-bg);
  color: var(--dock-color) !important;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.olympus-floating-dock__btn:hover,
.olympus-floating-dock__btn:focus-visible {
  filter: brightness(0.9);
}
.olympus-floating-dock__btn:focus-visible {
  outline: 2px solid var(--dock-color);
  outline-offset: -4px;
}
.olympus-floating-dock__btn svg {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}
.olympus-floating-dock:not(.has-labels) .olympus-floating-dock__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.olympus-floating-dock:not(.has-labels) .olympus-floating-dock__btn {
  width: 52px;
  min-height: 52px;
}

@media (max-width: 600px) {
  .olympus-floating-dock__btn {
    width: 54px;
    min-height: 50px;
    padding: 8px 4px;
    font-size: 10px;
  }
  .olympus-floating-dock__btn svg {
    width: 22px;
    height: 22px;
  }
}

/* Phones, "Bottom bar": buttons side by side across the bottom of the screen. */
@media (max-width: 781px) {
  .olympus-floating-dock.is-mobile-bottom:not(.is-preview) {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    padding-bottom: env(safe-area-inset-bottom, 0);
    border-radius: 0;
    background: var(--dock-bg);
    box-shadow: 0 -6px 20px -8px rgba(0, 0, 0, 0.35);
    transform: none;
  }
  .olympus-floating-dock.is-mobile-bottom:not(.is-preview) .olympus-floating-dock__btn {
    flex: 1 1 0;
    flex-direction: row;
    gap: 8px;
    width: auto;
    min-height: 56px;
    font-size: 15px;
  }
  .olympus-floating-dock.is-mobile-bottom:not(.is-preview) .olympus-floating-dock__btn + .olympus-floating-dock__btn {
    box-shadow: inset 1px 0 0 color-mix(in srgb, var(--dock-color) 25%, transparent);
  }
  /* Keep the end of the page reachable above the bar: the space goes inside the footer (its colour, no white strip
     below it), or on the body when the page has no footer template part. */
  body:has(.olympus-floating-dock.is-mobile-bottom:not(.is-preview)) .wp-site-blocks > footer:last-child > :last-child::after {
    content: "";
    display: block;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.olympus-floating-dock.is-mobile-bottom:not(.is-preview)):not(:has(.wp-site-blocks > footer:last-child)) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* Editor: shown in place (not fixed) so it can be selected. */
.olympus-floating-dock.is-preview {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  flex-direction: row;
  width: fit-content;
  margin-left: auto !important;
  border-radius: 10px;
  transform: none;
}
.olympus-floating-dock.is-left.is-preview {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.olympus-floating-dock-empty {
  padding: 12px 16px;
  border: 1px dashed currentColor;
  font-size: 14px;
}

/* Popup (several booking links). */
.olympus-floating-dock-popup {
  --dock-bg: var(--wp--preset--color--primary, #c1282e);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--wp--preset--color--contrast, #1a1a1a);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45);
}
.olympus-floating-dock-popup::backdrop {
  background: rgba(17, 17, 17, 0.55);
}
.olympus-floating-dock-popup[open] {
  animation: olympus-dock-pop 0.18s ease-out;
}
@keyframes olympus-dock-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
@media (prefers-reduced-motion: reduce) {
  .olympus-floating-dock-popup[open] {
    animation: none;
  }
}
.olympus-floating-dock-popup__inner {
  padding: 20px;
}
.olympus-floating-dock-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.olympus-floating-dock-popup__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}
.olympus-floating-dock-popup__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f2f3;
  color: inherit;
  cursor: pointer;
}
.olympus-floating-dock-popup__close:hover {
  background: #e4e6e8;
}
.olympus-floating-dock-popup__close svg {
  width: 20px;
  height: 20px;
}
.olympus-floating-dock-popup__links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.olympus-floating-dock-popup__links li {
  margin: 0;
}
.olympus-floating-dock-popup__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e4e6e8;
  border-radius: 10px;
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.olympus-floating-dock-popup__link:hover,
.olympus-floating-dock-popup__link:focus-visible {
  border-color: var(--dock-bg);
  background: color-mix(in srgb, var(--dock-bg) 6%, #fff);
}
.olympus-floating-dock-popup__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--dock-bg) 12%, #fff);
  color: var(--dock-bg);
}
.olympus-floating-dock-popup__icon svg {
  width: 24px;
  height: 24px;
}
.olympus-floating-dock-popup__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.olympus-floating-dock-popup__link-title {
  font-weight: 600;
  line-height: 1.3;
}
.olympus-floating-dock-popup__description {
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0.75;
}
.olympus-floating-dock-popup__chevron {
  flex: none;
  color: var(--dock-bg);
}
.olympus-floating-dock-popup__chevron svg {
  display: block;
  width: 20px;
  height: 20px;
}
