.dor-ms-model{ position: relative; }
.dor-ms-arrows{
  position:absolute;
  right:12px;
  bottom:12px;
  display:flex;
  gap:10px;
  z-index: 5;
}
.dor-ms-btn{
  width:42px;
  height:42px;

  display:flex;
  align-items:center;
  justify-content:center;

  background: transparent;   /* прозрачный фон */
  border: 0;                 /* убираем рамку */
  padding: 0;                /* убираем внутренние отступы */
  margin: 0;
  box-shadow: none;

  cursor:pointer;

  -webkit-appearance: none;  /* Safari/Chrome */
  appearance: none;
}

.dor-ms-btn img{
  width:25px;
  height:25px;
  pointer-events:none;
}
.dor-ms-text {
  display: flex;
  flex-direction: column;
  height: 100%; /* критично: контейнер должен иметь высоту */
}

.dor-ms-extra{
  margin-top: 8px;
  opacity: 0.95;
}

.dor-ms-model { position: relative; }

/* Overlay */
.dor-ms-loading{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  border-radius:14px;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index: 4; /* ниже стрелок (у тебя стрелки z-index:5) */
}

.dor-ms-loading.is-active{
  opacity:1;
  pointer-events:auto; /* блокируем клики по модели во время загрузки */
}

.dor-ms-loading__box{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  border-radius:12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
  text-align:center;
}

.dor-ms-spinner{
  width:34px;
  height:34px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.95);
  animation: dorMsSpin 0.8s linear infinite;
}

@keyframes dorMsSpin{ to { transform: rotate(360deg); } }

.dor-ms-loading__text{
  font-size:14px;
  line-height:1.2;
  opacity:.95;
}

#dorMsLead {
  color: black;
  background: var(--gold);
  border-radius: 5px;
  padding: 10px;
  font-family: var(--mydict-body-font, 'Garamondt', serif);
  margin-bottom: 50px;
}