.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.confirm-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.confirm-modal {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 1.35rem 1.25rem 1.15rem;
}

.confirm-modal h2 {
  font-size: 1.05rem;
  color: #1c1e21;
  margin-bottom: 0.5rem;
}

.confirm-modal p {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #65676b;
  margin-bottom: 1.15rem;
}

.confirm-actions {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
}

.confirm-btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.confirm-btn--cancel {
  background: #f0f2f5;
  color: #1c1e21;
}

.confirm-btn--cancel:hover {
  background: #e4e6eb;
}

.confirm-btn--danger {
  background: #e41e3f;
  color: #fff;
}

.confirm-btn--danger:hover {
  background: #c91835;
}

.confirm-btn--primary {
  background: #1877f2;
  color: #fff;
}

.confirm-btn--primary:hover {
  background: #166fe0;
}

.confirm-modal--alert .confirm-actions {
  justify-content: flex-end;
}

.confirm-modal--alert .confirm-btn--cancel {
  display: none;
}
