/* =========================
   Global confirmation modal
   ========================= */

.v2-modal.v2-confirm-modal {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}

.v2-modal.v2-confirm-modal.v2-modal--open {
  pointer-events: auto;
  opacity: 1;
}

.v2-confirm-modal .v2-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.v2-confirm-modal .v2-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: calc(100% - 32px);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.v2-confirm-modal .v2-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 8px;
  border-bottom: 1px solid #e5e5e5;
}

.v2-confirm-modal .v2-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.v2-confirm-modal .v2-modal__close {
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  color: #777;
}

.v2-confirm-modal .v2-modal__close:hover {
  color: #444;
}

.v2-confirm-modal .v2-modal__body {
  padding: 16px 20px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 14px;
  color: #333;
}

.v2-confirm-modal .v2-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid #e5e5e5;
}

.v2-confirm-modal .v2-modal__footer button {
  flex: 1;
  text-align: center;
}

@media (max-width: 600px) {
  .v2-confirm-modal .v2-modal__dialog {
    width: calc(100% - 24px);
  }

  .v2-confirm-modal .v2-modal__body {
    max-height: 70vh;
  }
}