.stance-interest-prompt {
  position: fixed;
  left: 24px;
  bottom: 50px;
  z-index: 900;
  width: calc(100% - 48px);
  max-width: 428px;
  max-height: calc(100vh - 74px);
  padding: 22px 24px 24px;
  overflow-y: auto;
  border-radius: 18px;
  background: #333333;
  color: #339999;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), 0 18px 48px rgba(0, 0, 0, 0.28);
  font-family: var(--stance-font-body);
  animation: stance-interest-enter 250ms ease both;
}

.stance-interest-prompt[hidden] {
  display: none;
}

.stance-interest-prompt__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.stance-interest-prompt__title {
  margin: 0 30px 16px 0;
  color: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.stance-interest-prompt__body {
  margin: 0 0 22px;
  color: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}

.stance-interest-prompt__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: #00b1ac;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.stance-interest-prompt__button:hover {
  border-color: #00b1ac;
}

.stance-interest-prompt__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stance-interest-prompt__close:focus-visible,
.stance-interest-prompt__button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@keyframes stance-interest-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .stance-interest-prompt {
    left: 0;
    bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: none;
    max-height: calc(70vh - 50px);
    padding: 20px 16px;
    border-radius: 15px;
  }

  .stance-interest-prompt__title {
    margin-right: 40px;
    margin-bottom: 12px;
    font-size: 20px;
  }

  .stance-interest-prompt__body,
  .stance-interest-prompt__button {
    font-size: 16px;
  }

  .stance-interest-prompt__body {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stance-interest-prompt {
    animation: none;
  }

  .stance-interest-prompt__button {
    transition: none;
  }
}
