.template-build-prompt {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  width: min(370px, calc(100vw - 36px));
  height: 220px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: #f7f7f4;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 151, 111, 0.2), transparent 32%),
    #0b1117;
  box-shadow: 0 24px 70px rgba(4, 10, 15, 0.28);
  transition:
    width 360ms cubic-bezier(0.22, 1, 0.36, 1),
    height 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 360ms ease;
  animation: template-build-prompt-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.template-build-prompt.is-collapsed {
  width: 196px;
  height: 54px;
  border-radius: 999px;
}

.template-build-prompt__panel,
.template-build-prompt__compact {
  position: absolute;
  inset: 0;
}

.template-build-prompt__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear;
}

.template-build-prompt.is-collapsed .template-build-prompt__panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition-delay: 0s, 0s, 180ms;
}

.template-build-prompt__collapse {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #f7f7f4;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.template-build-prompt__collapse:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(1px);
}

.template-build-prompt__collapse svg,
.template-build-prompt__cta svg,
.template-build-prompt__compact svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.template-build-prompt__eyebrow {
  margin: 0 0 10px;
  color: #ff986f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.template-build-prompt h2 {
  max-width: 270px;
  margin: 0;
  color: #f7f7f4;
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.template-build-prompt__copy {
  margin: 7px 0 18px;
  color: #aaafb5;
  font-size: 13px;
  line-height: 1.45;
}

.template-build-prompt__cta,
.template-build-prompt__compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #0b1117;
  background: #f7f7f4;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.template-build-prompt__cta {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  padding: 0 17px 0 19px;
  border-radius: 14px;
  transition: background-color 180ms ease, transform 180ms ease;
}

.template-build-prompt__cta:hover {
  background: #ff986f;
  transform: translateY(-1px);
}

.template-build-prompt__compact {
  justify-content: center;
  padding: 0 18px;
  opacity: 0;
  visibility: hidden;
  color: #f7f7f4;
  background: transparent;
  pointer-events: none;
  transform: scale(0.94);
  transition:
    opacity 200ms ease 80ms,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1) 60ms,
    visibility 0s linear 260ms;
}

.template-build-prompt.is-collapsed .template-build-prompt__compact {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  transition-delay: 100ms, 80ms, 0s;
}

.template-build-prompt__collapse:focus-visible,
.template-build-prompt__cta:focus-visible,
.template-build-prompt__compact:focus-visible {
  outline: 2px solid #ff986f;
  outline-offset: 3px;
}

@keyframes template-build-prompt-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .template-build-prompt {
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    width: min(320px, calc(100vw - 36px));
    height: 182px;
    border-radius: 18px;
  }

  .template-build-prompt.is-collapsed {
    width: 176px;
    height: 48px;
  }

  .template-build-prompt__panel {
    padding: 17px;
  }

  .template-build-prompt__collapse {
    top: 11px;
    right: 11px;
    width: 30px;
    height: 30px;
  }

  .template-build-prompt__eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .template-build-prompt h2 {
    max-width: 230px;
    font-size: 20px;
  }

  .template-build-prompt__copy {
    margin: 5px 0 12px;
    font-size: 12px;
  }

  .template-build-prompt__cta {
    min-height: 44px;
    padding: 0 14px 0 16px;
    border-radius: 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-build-prompt,
  .template-build-prompt__panel,
  .template-build-prompt__compact {
    animation: none;
    transition-duration: 0.01ms;
  }
}

.template-build-prompt[hidden]{display:none!important}.template-build-prompt,.template-build-prompt *{box-sizing:border-box}
