.bs-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(1px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bs-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.bs-modal {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  transform: translateY(12px);
  transition: transform 0.2s ease;
}

.bs-modal-overlay.is-active .bs-modal {
  transform: translateY(0);
}

.bs-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  color: #6b6460;
}

.bs-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #201a18;
}

.bs-modal__message {
  margin: 0 0 1.25rem;
  color: #3a332f;
  line-height: 1.5;
}

.bs-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.bs-modal__actions .btn,
.bs-modal__actions button {
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.bs-modal__actions .btn-primary,
.bs-modal__actions .btn-primary:hover,
.bs-modal__actions .btn-primary:focus {
  background: #4a1f1c;
  color: #ffffff;
  border-color: #4a1f1c;
}

.bs-modal__actions .btn-ghost,
.bs-modal__actions .btn-ghost:hover,
.bs-modal__actions .btn-ghost:focus {
  background: #f2ede7;
  color: #332a25;
  border-color: #ded4cc;
}

body.bs-modal-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .bs-modal {
    padding: 1.25rem;
  }

  .bs-modal__actions {
    flex-direction: column-reverse;
  }

  .bs-modal__actions .btn,
  .bs-modal__actions button {
    width: 100%;
  }
}
