:root {
  --delivery-float-brand: var(--brand, #b69151);
  --delivery-float-brand-700: var(--brand-700, #8c6d34);
  --delivery-float-pink: var(--pink, #f473a7);
  --delivery-float-pink-700: var(--pink-700, #e45c9a);
  --delivery-float-text: var(--text, #463831);
  --delivery-float-border: rgba(182, 145, 81, 0.18);
  --delivery-float-shadow:
    0 16px 34px rgba(63, 45, 38, 0.12),
    0 4px 12px rgba(63, 45, 38, 0.06);
  --delivery-float-shadow-soft:
    0 20px 38px rgba(63, 45, 38, 0.15),
    0 6px 16px rgba(63, 45, 38, 0.08);
  --delivery-float-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.delivery-float-reserve {
  height: clamp(68px, 7vw, 82px);
  pointer-events: none;
}

.delivery-float {
  position: fixed;
  right: clamp(14px, 2.2vw, 24px);
  bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px));
  z-index: 920;
  pointer-events: none;
}

.delivery-float__inner {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--delivery-float-border);
  background: linear-gradient(180deg, rgba(255, 249, 246, 0.84), rgba(255, 255, 255, 0.72));
  box-shadow: var(--delivery-float-shadow);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  color: var(--delivery-float-text);
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
  isolation: isolate;
  animation: deliveryFloatReveal 0.55s var(--delivery-float-ease) both;
  animation-delay: 0.15s;
  transition:
    transform 0.28s var(--delivery-float-ease),
    box-shadow 0.28s var(--delivery-float-ease),
    border-color 0.28s ease,
    background 0.28s ease;
}

.delivery-float__inner::before,
.delivery-float__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.delivery-float__inner::before {
  background:
    radial-gradient(95% 120% at 0% 0%, rgba(244, 115, 167, 0.11), transparent 58%),
    radial-gradient(90% 100% at 100% 100%, rgba(182, 145, 81, 0.11), transparent 50%);
  z-index: -2;
}

.delivery-float__inner::after {
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  opacity: 0.78;
  z-index: -1;
}

.delivery-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  color: var(--delivery-float-pink-700);
  background: linear-gradient(180deg, rgba(244, 115, 167, 0.16), rgba(182, 145, 81, 0.1));
  border: 1px solid rgba(244, 115, 167, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.delivery-float__icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.delivery-float__label {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--delivery-float-text);
}

.delivery-float__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(244, 115, 167, 0.14);
  background: rgba(244, 115, 167, 0.13);
  color: var(--delivery-float-pink-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  flex: 0 0 auto;
  transition:
    background-color 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .delivery-float__inner:hover {
    transform: translateY(-2px);
    border-color: rgba(182, 145, 81, 0.26);
    box-shadow: var(--delivery-float-shadow-soft);
  }

  .delivery-float__inner:hover .delivery-float__action {
    background: rgba(244, 115, 167, 0.18);
    border-color: rgba(244, 115, 167, 0.22);
  }
}

.delivery-float__inner:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(182, 145, 81, 0.18),
    0 0 0 7px rgba(244, 115, 167, 0.08),
    var(--delivery-float-shadow-soft);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .delivery-float__inner {
    background: rgba(255, 249, 246, 0.94);
  }
}

@media (max-width: 540px) {
  .delivery-float-reserve {
    height: clamp(60px, 16vw, 72px);
  }

  .delivery-float {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .delivery-float__inner {
    min-height: 50px;
    max-width: calc(100vw - 20px);
    gap: 9px;
    padding: 7px 7px 7px 8px;
  }

  .delivery-float__icon {
    width: 32px;
    height: 32px;
  }

  .delivery-float__icon svg {
    width: 16px;
    height: 16px;
  }

  .delivery-float__label {
    font-size: 0.84rem;
  }

  .delivery-float__action {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .delivery-float__inner,
  .delivery-float__action {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes deliveryFloatReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
