.accr-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 16px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.accr-popup-backdrop.is-open {
  display: flex;
  opacity: 1;
}

.accr-popup {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 100dvh;
  overflow-y: auto;
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 32px 28px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transform: scale(0.96);
  transition: transform 180ms ease;
}

.accr-popup-backdrop.is-open .accr-popup {
  transform: scale(1);
}

.accr-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.accr-popup-close:hover,
.accr-popup-close:focus {
  background: #f1f5f9;
  color: #0f172a;
  outline: none;
}

.accr-popup-headline {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.accr-popup-body {
  margin: 0 0 20px;
  color: #475569;
}

.accr-popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accr-popup-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.accr-popup-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.accr-popup-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.accr-popup-gdpr input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.accr-popup-submit {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: #6366f1;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.accr-popup-submit:hover:not(:disabled) {
  background: #4f46e5;
}

.accr-popup-submit:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

.accr-popup-submit:disabled {
  background: #c7d2fe;
  cursor: not-allowed;
}

.accr-popup-status {
  min-height: 18px;
  font-size: 13px;
  text-align: center;
  margin: 2px 0;
}

.accr-popup-status.is-success {
  color: #15803d;
}

.accr-popup-status.is-error {
  color: #dc2626;
}

.accr-popup-dismiss {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
  align-self: center;
}

.accr-popup-dismiss:hover,
.accr-popup-dismiss:focus {
  color: #0f172a;
  outline: none;
}

@media (max-width: 480px) {
  .accr-popup-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .accr-popup {
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 24px 20px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accr-popup-backdrop,
  .accr-popup {
    transition: none;
  }
}
