.leadpanierassiste-modal[hidden] {
  display: none !important;
}

.leadpanierassiste-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.leadpanierassiste-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
}

.leadpanierassiste-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.leadpanierassiste-content {
  padding: 28px;
}

.leadpanierassiste-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: #ffffff;
  color: #111827;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.leadpanierassiste-title {
  margin: 0 48px 12px 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.leadpanierassiste-message {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
}

.leadpanierassiste-form {
  margin: 0;
}

.leadpanierassiste-promo {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e3a8a;
}

.leadpanierassiste-promo-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.leadpanierassiste-promo-code {
  display: inline-block;
  margin: 8px 0 0;
  padding: 5px 9px;
  border: 1px dashed #2563eb;
  border-radius: 4px;
  background: #ffffff;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.leadpanierassiste-feedback {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.45;
}

.leadpanierassiste-feedback-error {
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.leadpanierassiste-feedback-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.leadpanierassiste-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.leadpanierassiste-field,
.leadpanierassiste-consent {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.leadpanierassiste-field-wide {
  grid-column: 1 / -1;
}

.leadpanierassiste-field span,
.leadpanierassiste-consent span {
  display: block;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
}

.leadpanierassiste-field input,
.leadpanierassiste-field select,
.leadpanierassiste-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
  padding: 9px 11px;
  box-sizing: border-box;
}

.leadpanierassiste-field textarea {
  resize: vertical;
}

.leadpanierassiste-consent {
  flex-direction: row;
  align-items: flex-start;
  margin-top: 16px;
  text-align: left;
}

.leadpanierassiste-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.leadpanierassiste-rgpd {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.leadpanierassiste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.leadpanierassiste-button {
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.leadpanierassiste-button-primary {
  background: #111827;
  color: #ffffff;
}

.leadpanierassiste-button-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1f2937;
}

.leadpanierassiste-modal-is-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .leadpanierassiste-modal {
    align-items: flex-end;
    padding: 0;
    overflow: hidden;
  }

  .leadpanierassiste-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    max-height: min(88vh, 720px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px 14px 0 0;
    box-sizing: border-box;
    overscroll-behavior: contain;
  }

  .leadpanierassiste-content {
    padding: 22px 16px 18px;
    box-sizing: border-box;
  }

  .leadpanierassiste-title {
    margin-right: 44px;
    font-size: 20px;
  }

  .leadpanierassiste-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .leadpanierassiste-actions {
    flex-direction: column;
  }

  .leadpanierassiste-button {
    width: 100%;
  }

  .leadpanierassiste-close {
    top: 10px;
    right: 10px;
  }

}
