.fs-engagement-launch,
.fs-engagement-product-button,
.fs-engagement-submit,
.fs-engagement-secondary,
.fs-engagement-close {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.fs-engagement-launch {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1050;
  padding: 13px 22px;
  border: 1px solid #155ca2;
  border-radius: 999px;
  background: #0d4f91;
  color: #fff;
  box-shadow: 0 4px 20px #142b4933;
  font-weight: 600;
  line-height: 1.4;
}

.fs-engagement-product-button {
  padding: 11px 20px;
  border: 1px solid #0d4f91;
  border-radius: 6px;
  background: #f2f7fc;
  color: #0d4f91;
  font-weight: 600;
  line-height: 1.4;
}

.fs-engagement-dialog {
  box-sizing: border-box;
  width: min(600px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
  max-height: min(90dvh, 920px);
  margin: auto;
  padding: 26px 30px 30px;
  overflow: auto;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #fff;
  color: #1d2f43;
  box-shadow: 0 20px 80px #0b1e3c40;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  overscroll-behavior: contain;
}

.fs-engagement-dialog::backdrop { background: #10223480; }
.fs-engagement-dialog[open] { display: block; }
.fs-engagement-fallback { position: fixed; inset: 0; z-index: 1060; }
.fs-engagement-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fs-engagement-title { margin: 0; color: #172f49; font-size: 24px; font-weight: 650; line-height: 1.45; }
.fs-engagement-close { flex: 0 0 34px; width: 34px; height: 34px; margin: -4px -9px 0 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #455c73; font-size: 29px; line-height: 1; }
.fs-engagement-close:hover { background: #edf3f8; }
.fs-engagement-intro { margin: 7px 0 18px; color: #53677b; font-size: 14px; }
.fs-engagement-product { margin: 0 0 18px; padding: 10px 12px; border-radius: 6px; background: #eff5fb; color: #214c76; font-size: 14px; overflow-wrap: anywhere; }
.fs-engagement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.fs-engagement-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.fs-engagement-label { font-size: 14px; font-weight: 600; }
.fs-engagement-input { box-sizing: border-box; width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #bacbdc; border-radius: 6px; background: #fff; color: #1d2f43; font: inherit; font-size: 16px; line-height: 1.5; }
.fs-engagement-input::placeholder { color: #7c8b99; font-size: 14px; }
textarea.fs-engagement-input { min-height: 100px; resize: vertical; }
.fs-engagement-input:disabled { background: #f2f5f8; color: #526478; }
.fs-engagement-hint { margin: 6px 0 16px; color: #53677b; font-size: 12px; }
.fs-engagement-consent { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 6px; color: #354e67; font-size: 13px; cursor: pointer; }
.fs-engagement-checkbox { flex: 0 0 17px; width: 17px; height: 17px; margin: 3px 0 0; accent-color: #0d4f91; }
.fs-engagement-privacy { margin: 8px 0 0; color: #667b8e; font-size: 12px; }
.fs-engagement-status { margin: 12px 0 0; color: #a03328; font-size: 14px; overflow-wrap: anywhere; }
.fs-engagement-status:empty { display: none; }
.fs-engagement-submit { display: block; width: 100%; margin: 18px 0 0; padding: 11px 18px; border: 1px solid #0d4f91; border-radius: 6px; background: #0d4f91; color: #fff; font-weight: 600; line-height: 1.5; }
.fs-engagement-submit:hover, .fs-engagement-launch:hover { background: #083e76; }
.fs-engagement-submit:disabled { opacity: .65; cursor: wait; }
.fs-engagement-launch:focus-visible, .fs-engagement-product-button:focus-visible, .fs-engagement-submit:focus-visible, .fs-engagement-secondary:focus-visible, .fs-engagement-close:focus-visible, .fs-engagement-input:focus-visible, .fs-engagement-checkbox:focus-visible { outline: 3px solid #2b8cd9; outline-offset: 3px; }
.fs-engagement-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.fs-engagement-form[hidden], .fs-engagement-result[hidden] { display: none; }
.fs-engagement-result { padding: 14px 0 4px; }
.fs-engagement-result-title { margin: 0 0 10px; color: #176441; font-size: 21px; }
.fs-engagement-reference { margin: 0 0 14px; font-weight: 600; overflow-wrap: anywhere; }
.fs-engagement-next { margin: 0 0 22px; color: #53677b; font-size: 14px; }
.fs-engagement-secondary { padding: 9px 16px; border: 1px solid #9ab2ca; border-radius: 6px; background: #fff; color: #174b7e; }

@media (max-width: 480px) {
  .fs-engagement-launch { right: max(14px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); padding: 11px 17px; font-size: 14px; }
  .fs-engagement-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 22px 18px; border-radius: 12px; }
  .fs-engagement-title { font-size: 21px; }
  .fs-engagement-grid { grid-template-columns: 1fr; gap: 12px; }
  .fs-engagement-product-button { padding: 10px 14px; }
}
