.sticky-cta {
  --cta-safe: env(safe-area-inset-bottom, 0px);
  position: fixed;

  bottom: var(--cta-safe); left: 0; right: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);

  box-shadow: 0 var(--cta-safe) 0 var(--white);
  z-index: 80;
  transform: translateY(calc(100% + 90px));
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta.visible.collapsed { transform: translateY(100%); }

.sticky-cta.dragging { transition: none; }

.sticky-cta__handle {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 40%;
  width: 20%;
  height: 30px;
  margin: 0; padding: 0;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 -5px 14px rgba(15,23,42,.07);
  color: var(--ink-2);
  cursor: grab;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.sticky-cta__handle:active { cursor: grabbing; }
.sticky-cta__handle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.sticky-cta__handle::before {
  content: ""; position: absolute; inset: -10px -8px 0;
}
.sticky-cta__chev {
  width: 20px; height: 20px;
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.sticky-cta.collapsed .sticky-cta__chev { transform: rotate(180deg); }
.sticky-cta.collapsed .row { pointer-events: none; }

.sticky-cta .row {
  display: flex; align-items: center; gap: 12px;
  max-width: 1240px; margin: 0 auto;
}
.sticky-cta .price {
  flex: 1;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.sticky-cta .price strong { display: block; color: var(--ink); font-size: 15px; font-weight: 700; }
.sticky-cta .btn { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .sticky-cta__chev { transition: none; }
}

.modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(20% 0.04 252 / 0.55);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 460px;
  padding: 28px 22px 22px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s cubic-bezier(.7,.2,.2,1);
  box-shadow: var(--shadow-lg);
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  color: var(--ink-2);
}
.modal-close:hover { background: var(--line); }

@media (min-width: 720px) {
  .sticky-cta { display: none; }
}
