.home-offer-float-shell {
  display: none !important;
  --home-offer-card-height: 10.15rem;
  --home-offer-card-width: 27rem;
  --home-offer-enter-duration: 1500ms;
  position: fixed;
  left: 50%;
  bottom: max(1.4rem, calc(env(safe-area-inset-bottom, 0px) + 0.4rem));
  display: flex;
  justify-content: flex-end;
  width: min(96vw, var(--content-max-width));
  transform: translateX(-50%);
  opacity: 1;
  transition:
    transform 240ms ease-out,
    opacity 240ms ease-out;
  z-index: 50;
  pointer-events: none;
  will-change: transform;
}

body:has(.site-header.site-header--desktop-fit) .home-offer-float-shell {
  width: min(
    calc(var(--content-shell-width) + clamp(3rem, 4vw, 5rem)),
    calc(100vw - 1.1rem)
  );
}

.home-offer-float-shell.is-scroll-hidden {
  transform: translateX(calc(-50% + 100vw));
  opacity: 0;
}

.home-offer-float-shell.is-entering {
  transition:
    transform var(--home-offer-enter-duration) ease-out,
    opacity var(--home-offer-enter-duration) ease-out;
}

.home-offer-float {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: clamp(0.45rem, 0.8vw, 0.75rem);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  will-change: transform, opacity;
  pointer-events: auto;
  cursor: pointer;
}

body:has(.form-modal.is-open) .home-offer-float-shell {
  opacity: 0 !important;
  pointer-events: none;
}

body:has(.form-modal.is-open) .home-offer-float {
  transform: translate3d(100vw, 0, 0) !important;
}

.home-offer-float__balloon {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: var(--home-offer-card-height);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.2));
}

.home-offer-float__balloon-image {
  display: block;
  width: auto;
  height: var(--home-offer-card-height);
  max-width: none;
  transform: rotate(0deg);
  transform-origin: center;
}

.home-offer-float-shell.is-entering .home-offer-float__balloon-image {
  animation: home-offer-wheel-in var(--home-offer-enter-duration) ease-out
    forwards;
}

.home-offer-float__card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: stretch;
  gap: clamp(1.2rem, 1.15vw, 1.45rem);
  width: var(--home-offer-card-width);
  height: var(--home-offer-card-height);
  padding: clamp(0.88rem, 1vw, 1rem) clamp(0.95rem, 1.2vw, 1.08rem);
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid var(--site-header-border);
  border-radius: 1.45rem;
  background: var(--site-header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--site-header-shadow);
}

.home-offer-float__price-row {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1;
}

.home-offer-float__price-was {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.98rem, 0.42vw + 0.9rem, 1.1rem);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  text-decoration: line-through;
  text-decoration-thickness: 0.08em;
}

.home-offer-float__price-now {
  color: #fff;
  font-size: clamp(1.2rem, 0.65vw + 1.08rem, 1.42rem);
  font-weight: 900;
  font-variation-settings: "wght" 900;
}

.home-offer-float__title {
  margin: 0;
  width: 100%;
  color: #fff;
  max-width: none;
  font-size: clamp(1.02rem, 0.34vw + 0.96rem, 1.18rem);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  line-height: 1.02;
  text-wrap: pretty;
}

.home-offer-float__copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 30ch;
  font-size: clamp(0.83rem, 0.16vw + 0.8rem, 0.92rem);
  line-height: 1.32;
  text-wrap: pretty;
}

.home-offer-float__field {
  width: 100%;
  min-height: 2.5rem;
  padding: 0.66rem 0.76rem;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: var(--form-field-bg);
  color: color-mix(in srgb, #fff 68%, transparent);
  font-size: 0.88rem;
  line-height: 1.2;
}

.home-offer-float:is(:hover, :focus-visible) {
  transform: translate3d(0, -0.22rem, 0);
}

@keyframes home-offer-wheel-in {
  from {
    transform: rotate(720deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@media (max-width: 1024px) {
  .home-offer-float-shell {
    display: none;
  }
}

@media (max-width: 767px) {
  .home-offer-float-shell {
    --home-offer-card-height: 7rem;
    --home-offer-card-width: min(calc(100vw - 5.9rem), 16.75rem);
  }

  .home-offer-float {
    gap: 0.45rem;
  }

  .home-offer-float__card {
    padding: 0.72rem 0.82rem;
    border-radius: 1.15rem;
  }

  .home-offer-float__price-row {
    gap: 0.38rem;
  }

  .home-offer-float__copy {
    font-size: 0.78rem;
    line-height: 1.22;
  }
}
