.romptn-popup-root {
  --romptn-color-text: #111111;
  --romptn-color-text-muted: #666666;
  --romptn-color-text-subtle: #444444;
  --romptn-font-base: 16px;
  --romptn-font-scale: 1;
  font-family: var(--romptn-font-family);
  font-size: var(--romptn-font-md);
  color: var(--romptn-color-text);
}

.romptn-popup-overlay {
  position: fixed;
  inset: 0;
  background: var(--romptn-color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.romptn-popup-overlay.is-hidden {
  display: none;
}

.romptn-popup-floating {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  transform: translate(-50%, 0);
  z-index: 9998;
  width: min(440px, calc(100% - 32px));
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transition: transform 220ms ease, opacity 220ms ease;
}

.romptn-popup-floating.is-hidden {
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
}

.romptn-popup-floating__button {
  pointer-events: auto;
  width: 90%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--romptn-space-4);
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: var(--romptn-font-md);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
  position: relative;
  overflow: visible;
  text-align: center;
}

.romptn-popup-floating__icon-wrap {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: absolute;
  top: -10px;
  right: -8px;
}

.romptn-popup-floating__icon {
  width: 100%;
  height: 100%;
  display: block;
}

.romptn-popup-floating__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.romptn-popup-floating__eyebrow {
  font-size: var(--romptn-font-xxs);
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.95;
}

.romptn-popup-floating__label {
  display: inline-block;
  line-height: 1.2;
  font-size: var(--romptn-font-sm);
  font-weight: 800;
}

.romptn-popup-floating__button:focus-visible {
  outline: 2px solid var(--romptn-color-accent-focus);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .romptn-popup-floating {
    transition: none;
  }
  .romptn-popup-floating__button {
    transition: none;
  }
}

@media (max-width: 480px) {
  .romptn-popup-root {
    --romptn-font-scale: 0.9;
  }
  .romptn-popup-overlay {
    padding: 18px;
  }
  .romptn-popup-floating {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
    width: calc(100% - 24px);
  }
  .romptn-popup-floating__icon-wrap {
    width: 32px;
    height: 32px;
    top: -8px;
    right: -6px;
  }
}

@media (min-width: 768px) {
  .romptn-popup-floating {
    display: none;
  }
}
