.cp-question-launch {
  --question-offset: 20px;
  position: fixed;
  z-index: 35;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--question-offset) + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid #303d2d;
  border-radius: 50px;
  background: #222a22;
  color: #fff;
  font: 750 13px/1.3 Manrope, Arial, sans-serif;
  box-shadow: 0 4px 20px #17241333;
}

.cp-question-launch svg { width: 21px; height: 21px; color: #c5f467; }
.cp-question-launch:hover { background: #374831; }
.cp-question-launch:focus-visible, .cp-question-dialog :focus-visible { outline: 2px solid #537b24; outline-offset: 3px; }

.cp-question-dialog {
  position: fixed;
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 20px;
  border: 1px solid #d4dccc;
  border-radius: 12px;
  background: #fafbf8;
  color: #232822;
  font: 500 14px/1.5 Manrope, Arial, sans-serif;
  box-shadow: 0 16px 50px #17241340;
}

.cp-question-dialog::backdrop { background: #1e2b2355; backdrop-filter: none; }
.cp-question-dialog [hidden] { display: none; }
.cp-question-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-question-heading h2 { margin: 0; font: 800 21px/1.2 Manrope, Arial, sans-serif; }
.cp-question-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  margin: -6px -6px -6px 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #374831;
  font: 600 25px/1 Manrope, Arial, sans-serif;
}

.cp-question-close:hover { background: #edf1e8; }
.cp-question-intro { margin: 10px 0 17px; color: #4c5846; }
.cp-question-form label { display: block; margin: 12px 0 4px; font-weight: 800; }
.cp-question-optional { color: #4c5846; font-weight: 500; }
.cp-question-form textarea, .cp-question-form input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #818e79;
  border-radius: 4px;
  background: #fff;
  color: #232822;
  font: 500 16px/1.45 Manrope, Arial, sans-serif;
}

.cp-question-form textarea { display: block; min-height: 74px; resize: vertical; }
.cp-question-trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.cp-question-privacy { margin: 10px 0; color: #495644; font-size: 12px; }
.cp-question-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cp-question-send, .cp-question-done {
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid #8eae58;
  border-radius: 4px;
  background: #c5f467;
  color: #222a22;
  font: 800 14px/1.3 Manrope, Arial, sans-serif;
}

.cp-question-send:hover, .cp-question-done:hover { background: #b5e757; }
.cp-question-send:disabled { opacity: .65; cursor: wait; }
.cp-question-error { margin: 10px 0 0; color: #a32531; }
.cp-question-error:empty { margin: 0; }
.cp-question-success p { margin: 16px 0; }

body:has(.studio) .cp-question-launch { --question-offset: 76px; }

@media (max-width: 700px) {
  .cp-question-launch { --question-offset: 12px; }
  body:has(.project-purchase-bar) .cp-question-launch { --question-offset: 90px; }
}
