
/* Basic, modern modal styling */
.tabx-prestart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.tabx-prestart-modal {
  background: #ffffff; border-radius: 16px;
  width: min(680px, 92vw);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
.tabx-prestart-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}
.tabx-prestart-header h3 {
  margin: 0; font-size: 22px; line-height: 1.3;
}
.tabx-prestart-body {
  padding: 20px 24px;
}
.tabx-prestart-actions {
  display: grid; grid-template-columns: 1fr; gap: 10px;
  margin-top: 14px;
}
.tabx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 16px; border: 0; border-radius: 10px;
  cursor: pointer; font-weight: 600;
}
.tabx-btn-primary { background: #2252A1; color: #fff; }
.tabx-btn-secondary { background: #f2f4f7; color: #111; }
.tabx-btn:hover { filter: brightness(0.96); }

.tabx-prestart-form {
  display: none; margin-top: 12px; border-top: 1px dashed #e5e7eb; padding-top: 16px;
}
.tabx-field { margin-bottom: 10px; }
.tabx-field label { display: block; font-size: 14px; margin-bottom: 6px; }
.tabx-field input[type="text"], .tabx-field input[type="email"] {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
}
.tabx-consents { font-size: 13px; display: grid; gap: 8px; margin: 10px 0 6px; }
.tabx-consents a { text-decoration: underline; }

.tabx-prestart-footer { display:flex; gap:10px; justify-content:flex-end; padding: 0 24px 22px; }
.tabx-error { color: #b91c1c; font-size: 13px; display:none; margin-top: 4px; }
@media (min-width: 680px) {
  .tabx-prestart-actions { grid-template-columns: 1fr 1fr; }
}
