.floating-reserve-action {
  position: fixed;
  right: clamp(24px, 2vw, 32px);
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
  z-index: 850;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #9c6240;
  text-decoration: none;
  filter: drop-shadow(0 7px 5px rgba(70, 53, 38, .16));
  isolation: isolate;
  transition: width 260ms cubic-bezier(.2, .75, .25, 1), filter 220ms ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-reserve-motion {
  position: relative;
  width: 148px;
  height: 64px;
  display: flex;
  align-items: center;
  flex: 0 0 148px;
  animation: floatingReserveDrift 6.4s ease-in-out infinite;
}

@keyframes floatingReserveDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.floating-reserve-shape {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 148px;
  height: 64px;
  overflow: visible;
  fill: #fff;
}

.floating-reserve-extension {
  opacity: 0;
  transition: opacity 120ms ease 35ms;
}

.floating-reserve-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  transition: transform 260ms cubic-bezier(.2, .75, .25, 1);
}

.floating-reserve-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-reserve-label {
  width: 0;
  margin-left: -1px;
  overflow: hidden;
  opacity: 0;
  font-family: Quicksand, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-5px);
  transition: width 260ms cubic-bezier(.2, .75, .25, 1), opacity 160ms ease 40ms, transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .floating-reserve-action:hover,
  .floating-reserve-action:focus-visible {
    width: 148px;
    filter: drop-shadow(0 8px 6px rgba(70, 53, 38, .2));
  }

  .floating-reserve-action:hover .floating-reserve-icon,
  .floating-reserve-action:focus-visible .floating-reserve-icon {
    transform: translateX(2px);
  }

  .floating-reserve-action:hover .floating-reserve-extension,
  .floating-reserve-action:focus-visible .floating-reserve-extension {
    opacity: 1;
  }

  .floating-reserve-action:hover .floating-reserve-label,
  .floating-reserve-action:focus-visible .floating-reserve-label {
    width: 65px;
    opacity: 1;
    transform: none;
  }
}

.floating-reserve-action:focus-visible {
  outline: 3px solid rgba(156, 98, 64, .38);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .floating-reserve-action {
    right: 20px;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  }
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .floating-reserve-action,
  .floating-reserve-action:hover,
  .floating-reserve-action:focus-visible {
    right: 14px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 10px));
    width: 60px;
    height: 60px;
    transform: none;
  }

  .floating-reserve-shape {
    width: 139px;
    height: 60px;
  }

  .floating-reserve-motion {
    width: 139px;
    height: 60px;
    flex-basis: 139px;
  }

  .floating-reserve-icon {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    transform: none !important;
  }

  .floating-reserve-label {
    width: 0 !important;
    opacity: 0 !important;
  }

  .floating-reserve-extension {
    opacity: 0 !important;
  }

  body[data-site-page="day-pass"] .floating-reserve-action {
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 78px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-reserve-action,
  .floating-reserve-icon,
  .floating-reserve-label {
    transition-duration: 0ms;
  }

  .floating-reserve-extension {
    transition-duration: 0ms;
  }

  .floating-reserve-motion {
    animation: none;
  }
}
