/* Стили окна с правилами. Вынесены из dm-product.css 13.11.2026:
   окно нужно и в личном кабинете, где dm-product.css не грузится. */
/* [dm-bonus-modal-2026-11-13] Окно с правилами бонусной программы.
   Две трети экрана по просьбе Светланы; на телефоне две трети нечитаемы,
   поэтому там почти весь экран. */
.dm-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 30, 35, .55);
}
.dm-modal-box {
  display: flex;
  flex-direction: column;
  width: min(900px, 66vw);
  max-width: 100%;
  height: 66vh;
  max-height: 100%;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 30, 35, .28);
}
.dm-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #146678;
  color: #FFFFFF;
}
.dm-modal-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-modal-x {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
  color: #FFFFFF;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.dm-modal-x:hover,
.dm-modal-x:focus { background: rgba(255, 255, 255, .18); }
.dm-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px 24px;
  font-size: 14px;
  line-height: 1.55;
  color: #1C2529;
  -webkit-overflow-scrolling: touch;
}
.dm-modal-body h2 { font-size: 18px; margin: 0 0 10px; }
.dm-modal-body h3 { font-size: 15px; margin: 18px 0 6px; }
.dm-modal-body p { margin: 0 0 7px; }
.dm-modal-body a { color: #146678; text-decoration: underline; }
.dm-modal-wait {
  width: 26px;
  height: 26px;
  margin: 24px auto;
  border: 3px solid #E3E8EC;
  border-top-color: #146678;
  border-radius: 50%;
  animation: dmModalSpin .8s linear infinite;
}
@keyframes dmModalSpin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
  .dm-modal { padding: 10px; }
  .dm-modal-box { width: 94vw; height: 86vh; }
  .dm-modal-body { font-size: 15px; padding: 16px 18px 22px; }
}
