.calendar-refresh-surface {
  position: relative;
}

.calendar-refresh-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(245, 238, 225, 0.82);
  border: 3px dashed rgba(23, 20, 15, 0.42);
  color: #17140F;
  pointer-events: none;
}

.calendar-refresh-overlay__boots {
  display: flex;
  align-items: flex-end;
  flex: none;
}

.calendar-refresh-overlay__boot {
  display: block;
  width: clamp(58px, 8vw, 96px);
  height: auto;
}

.calendar-refresh-overlay__boot--left {
  transform-origin: 84% 97%;
  animation: calendarBootLean 2.4s ease-in-out infinite;
}

.calendar-refresh-overlay__boot--right {
  margin-left: -8px;
  transform-origin: 16% 97%;
  animation: calendarBootTap 2.4s ease-in-out infinite;
}

.calendar-refresh-overlay__copy {
  font-family: 'Caveat', cursive;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  color: #B23A2B;
  white-space: nowrap;
}

.calendar-refresh-overlay__dots {
  display: inline-block;
  min-width: 1.2em;
  animation: calendarBootDots 1.1s steps(4, end) infinite;
}

@keyframes calendarBootLean {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-5px); }
}

@keyframes calendarBootTap {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}

@keyframes calendarBootDots {
  0%, 20% { opacity: 0.25; }
  45% { opacity: 1; }
  70%, 100% { opacity: 0.25; }
}

@media (max-width: 900px) {
  .calendar-refresh-overlay {
    gap: 8px;
    padding: 16px;
  }

  .calendar-refresh-overlay__boot {
    width: clamp(46px, 15vw, 70px);
  }

  .calendar-refresh-overlay__boot--right {
    margin-left: -5px;
  }

  .calendar-refresh-overlay__copy {
    font-size: clamp(22px, 7vw, 30px);
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-refresh-overlay__boot--left,
  .calendar-refresh-overlay__boot--right,
  .calendar-refresh-overlay__dots {
    animation: none;
  }
}
