html.bm-confirm-open,
html.bm-confirm-open body {
  overflow: hidden;
}

.bm-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 31, 58, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bm-confirm-modal {
  width: min(720px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dfe8f2;
  box-shadow: 0 24px 80px rgba(0, 43, 91, .28);
  padding: 28px;
  color: #0B1F3A;
}

.bm-confirm-modal h2 {
  margin: 0 0 10px;
  padding-left: 14px;
  border-left: 5px solid #002B5B;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 900;
}

.bm-confirm-lead,
.bm-confirm-note {
  margin: 0 0 18px;
  color: #52657d;
  font-size: 14px;
  line-height: 1.8;
}

.bm-confirm-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border: 1px solid #dfe8f2;
  border-radius: 6px;
  overflow: hidden;
  margin: 18px 0;
}

.bm-confirm-list dt,
.bm-confirm-list dd {
  margin: 0;
  padding: 13px 14px;
  border-bottom: 1px solid #dfe8f2;
  font-size: 14px;
  line-height: 1.65;
}

.bm-confirm-list dt {
  background: #f6f9fc;
  color: #002B5B;
  font-weight: 900;
}

.bm-confirm-list dd {
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bm-confirm-list dt:nth-last-child(2),
.bm-confirm-list dd:last-child {
  border-bottom: 0;
}

.bm-confirm-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  color: #8a5a00;
  background: #fff8dc;
}

.bm-confirm-note {
  background: #fff8dc;
  border: 1px solid #f1d46c;
  border-radius: 6px;
  padding: 12px 14px;
  color: #4a3a00;
}

.bm-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.bm-confirm-actions button {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 5px;
  min-height: 46px;
  padding: 0 20px;
  font-weight: 900;
  letter-spacing: .02em;
}

.bm-confirm-back {
  background: #eef4fa;
  color: #002B5B;
}

.bm-confirm-send {
  background: #F7C600;
  color: #0B1F3A;
}

.bm-confirm-send:hover {
  filter: brightness(.97);
}

@media (max-width: 640px) {
  .bm-confirm-overlay {
    padding: 14px;
    align-items: flex-end;
  }

  .bm-confirm-modal {
    padding: 20px;
    max-height: 92vh;
  }

  .bm-confirm-modal h2 {
    font-size: 20px;
  }

  .bm-confirm-list {
    grid-template-columns: 1fr;
  }

  .bm-confirm-list dt {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .bm-confirm-list dd {
    padding-top: 4px;
  }

  .bm-confirm-actions {
    flex-direction: column-reverse;
  }

  .bm-confirm-actions button {
    width: 100%;
  }
}
