.bsr {
  --bsr-primary: #edd600;
  --bsr-text: #111111;
  align-items: center;
  display: flex;
  font-family: Outfit, Arial, sans-serif;
  gap: 10px;
  z-index: 99998;
}

.bsr--floating {
  bottom: max(22px, env(safe-area-inset-bottom));
  position: fixed;
}

.bsr--right { right: max(22px, env(safe-area-inset-right)); }
.bsr--left { left: max(22px, env(safe-area-inset-left)); }

.bsr__button,
.bsr__calendar {
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  display: flex;
  height: 58px;
  justify-content: center;
  position: relative;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  width: 58px;
}

.bsr__button {
  background: var(--bsr-primary);
  color: var(--bsr-text) !important;
}

.bsr__calendar {
  background: #fff;
  border: 2px solid var(--bsr-primary);
  color: #111 !important;
}

.bsr__button:hover,
.bsr__button:focus-visible,
.bsr__calendar:hover,
.bsr__calendar:focus-visible {
  box-shadow: 0 14px 32px rgba(0, 0, 0, .32);
  filter: brightness(1.035);
  transform: translateY(-3px);
}

.bsr__button:focus-visible,
.bsr__calendar:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.bsr__calendar-svg,
.bsr__target-svg {
  fill: none;
  height: 27px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 27px;
}

.bsr__tooltip {
  background: #171717;
  border-radius: 8px;
  bottom: calc(100% + 11px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  padding: 9px 11px;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  visibility: hidden;
  white-space: nowrap;
}

.bsr__tooltip::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #171717;
  content: "";
  position: absolute;
  right: 22px;
  top: 100%;
}

.bsr--left .bsr__tooltip {
  left: 0;
  right: auto;
}

.bsr--left .bsr__tooltip::after {
  left: 22px;
  right: auto;
}

.bsr__button:hover .bsr__tooltip,
.bsr__button:focus-visible .bsr__tooltip,
.bsr__calendar:hover .bsr__tooltip,
.bsr__calendar:focus-visible .bsr__tooltip {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.bsr--mode-button .bsr__calendar,
.bsr--mode-icon .bsr__button {
  display: none;
}

@media (max-width: 767px) {
  .bsr--floating {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .bsr--right { right: max(14px, env(safe-area-inset-right)); }
  .bsr--left { left: max(14px, env(safe-area-inset-left)); }

  .bsr__button,
  .bsr__calendar {
    height: 52px;
    width: 52px;
  }

  .bsr__calendar-svg,
  .bsr__target-svg {
    height: 24px;
    width: 24px;
  }
}

@media (hover: none) {
  .bsr__tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsr__button,
  .bsr__calendar,
  .bsr__tooltip {
    transition: none;
  }
}
