.confirm-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.confirm-modal__dialog {
  position: relative;
  width: min(100%, 30rem);
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transform: translateY(0) scale(1);
  animation: confirmModalIn 180ms ease-out;
}

.confirm-modal__icon-wrap {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #b45309;
  background: rgba(251, 191, 36, 0.18);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.confirm-modal__content {
  display: grid;
  gap: 0.5rem;
}

.confirm-modal__title {
  margin: 0;
  color: #0f172a;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.confirm-modal__message {
  margin: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
}

.confirm-modal__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.confirm-modal__button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.confirm-modal__button:hover {
  transform: translateY(-1px);
}

.confirm-modal__button--cancel {
  color: #0f172a;
  background: #e2e8f0;
}

.confirm-modal__button--danger {
  color: #fff;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

body.confirm-modal-open {
  overflow: hidden;
}

@keyframes confirmModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 576px) {
  .confirm-modal__dialog {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .confirm-modal__actions {
    flex-direction: column-reverse;
  }

  .confirm-modal__button {
    width: 100%;
  }
}