.stc-pop-up-toast {
  --stc-popup-bg: #f3f2f2;
  --stc-popup-border: #dadada;
  --stc-popup-text: #111;
  --stc-popup-muted: #999;

  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  width: min(460px, calc(100vw - 40px));
  z-index: 999999;
  background: var(--stc-popup-bg);
  border: 1px solid var(--stc-popup-border);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 2.3rem 2rem 2.3rem 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  color: var(--stc-popup-text);

  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}

.stc-pop-up-toast,
.stc-pop-up-toast * {
  box-sizing: border-box;
  font-family: inherit;
}

.stc-pop-up-toast h3,
.stc-pop-up-toast p {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.stc-pop-up-toast button,
.stc-pop-up-toast input {
  margin: 0;
  font: inherit;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.stc-pop-up-toast.is-visible {
  opacity: 0.95;
  visibility: visible;
  transform: none;
}

.stc-pop-up-text {
  margin-bottom: 1.2rem;
}

.stc-pop-up-toast h3.stc-pop-up-title {
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: inherit;
}

.stc-pop-up-message {
  margin: 0;
  font-size: 18px;
}

.stc-pop-up-toast button.stc-pop-up-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  padding: 0;
  appearance: none;
}

.stc-pop-up-close:hover {
  color: #555;
}

.stc-pop-up-toast .stc-subscribe-simple-form .stc-inline-wrapper {
  display: flex;
  gap: 0.5rem;
}

.stc-pop-up-toast
  .stc-subscribe-simple-form
  .stc-inline-wrapper
  .stc-email-inline,
.stc-pop-up-toast
  .stc-subscribe-simple-form
  .stc-inline-wrapper
  .stc-submit-inline {
  font-size: 16px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--stc-popup-border);
  color: inherit;
  line-height: normal;
  text-transform: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 42px;
}

.stc-pop-up-toast
  .stc-subscribe-simple-form
  .stc-inline-wrapper
  .stc-email-inline {
  background-color: #fff;
  min-width: 0;
  flex: 1;
}

.stc-pop-up-toast
  .stc-subscribe-simple-form
  .stc-inline-wrapper
  .stc-email-inline::placeholder {
  color: var(--stc-popup-muted);
}

.stc-pop-up-toast
  .stc-subscribe-simple-form
  .stc-inline-wrapper
  .stc-submit-inline {
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .stc-pop-up-toast {
    left: 50%;
    right: auto;
    width: calc(100vw - 24px);
    max-width: 460px;
    transform: translate(-50%, 16px);
  }

  .stc-pop-up-toast.is-visible {
    transform: translateX(-50%);
  }
}
