/* Minimalny CMP UI - pasuje do stylu projektu */
.cmp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 45, 71, .55);
  display: none;
  z-index: 9998;
}

.cmp-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid #e7e9ef;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(18,24,40,.18);
  z-index: 9999;
  display: none;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

.cmp-modal header {
  padding: 16px 18px 10px;
  border-bottom: 1px solid #eef0f5;
}

.cmp-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #25272c;
}

.cmp-sub {
  margin: 8px 0 0;
  color: #4f5665;
  font-size: .95rem;
  line-height: 1.55;
}

.cmp-body {
  padding: 14px 18px 6px;
}

.cmp-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid #f1f3f8;
}

.cmp-row:first-child {
  border-top: none;
}

.cmp-row h4 {
  margin: 0 0 4px;
  font-size: .98rem;
  color: #263044;
}

.cmp-row p {
  margin: 0;
  font-size: .92rem;
  color: #4f5665;
  max-width: 54ch;
}

.cmp-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.cmp-switch input {
  width: 44px;
  height: 24px;
  appearance: none;
  background: #d7dbe5;
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: .18s ease;
}

.cmp-switch input::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: .18s ease;
}

.cmp-switch input:checked {
  background: #f43f08;
}

.cmp-switch input:checked::after {
  left: 23px;
}

.cmp-switch small {
  color: #6a7385;
  font-size: .85rem;
}

.cmp-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid #eef0f5;
  justify-content: flex-end;
}

.cmp-btn {
  border-radius: 999px;
  padding: 11px 16px;
  font-size: .9rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s ease;
}

.cmp-btn-primary {
  background: #f43f08;
  color: #fff;
  box-shadow: 0 10px 24px rgba(244,63,8,.22);
}

.cmp-btn-primary:hover {
  background: #c33206;
}

.cmp-btn-outline {
  background: #fff;
  border-color: #cfd4de;
  color: #273347;
}

.cmp-btn-outline:hover {
  border-color: #f43f08;
  color: #f43f08;
}

.cmp-links {
  padding: 0 18px 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cmp-links a {
  color: #3f4654;
  text-decoration: none;
  font-size: .9rem;
}

.cmp-links a:hover {
  color: #f43f08;
  text-decoration: underline;
}

@media (max-width: 560px) {
  .cmp-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cmp-footer {
    justify-content: stretch;
  }

  .cmp-btn {
    width: 100%;
  }
}
