/* LKC Modal - clean + mobile friendly */
/* Border-radius: 3px (wie gewünscht) */

.lkc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 99999;
}

.lkc-modal-overlay.is-open {
  display: flex;
}

.lkc-modal {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  overflow: hidden;

  /* Wichtig: Theme-Overrides abfangen */
  color: #111827;              /* nahezu schwarz */
}

.lkc-modal * {
  box-sizing: border-box;
}

.lkc-modal-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  color: #111827;
}

.lkc-modal-title {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;

  color: #111827;              /* fix: kein weiß */
}

.lkc-modal-close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 3px;

  color: #111827;              /* fix */
}

.lkc-modal-body {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.5;

  color: #111827;              /* fix */
}

.lkc-modal-body a {
  color: #2563eb;              /* lesbar auf weiß */
  text-decoration: underline;
}

.lkc-modal-actions {
  padding: 14px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Buttons – wir nutzen vorhandene .lkc-btn Klassen, geben aber Fallback */
.lkc-modal-actions .lkc-btn,
.lkc-modal-actions button {
  border-radius: 3px;
}

/* Fallback-Style falls Theme Buttons "komisch" macht */
.lkc-modal-actions button {
  border: 1px solid rgba(0,0,0,.12);
  padding: 10px 14px;
  cursor: pointer;
  color: inherit;
  background: #f3f4f6;
}

.lkc-modal-actions button[data-lkc-confirm] {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.lkc-modal-actions button[data-lkc-cancel] {
  background: #e5e7eb;
  color: #111827;
  border-color: #e5e7eb;
}
