/* TZ v5 B-17.1 — Text Settings Modal styles. */

/* Кнопка-настройки наследует базовый стиль .cw-btn-ghost из editor.css —
   тут только её специфические правки: ширина 100%, чуть бодрее. */
.cw-text-settings-host { /* wrapper-разделитель в .cw-panel */ }
button.cw-text-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.01em;
  cursor: pointer;
}
button.cw-text-settings-btn .cw-text-settings-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(245, 158, 11, 0.92);
}

.cw-ts-modal[hidden] { display: none; }
.cw-ts-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7vh 16px 24px;
}
.cw-ts-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cw-ts-dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: #1a1d24;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.cw-ts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cw-ts-title {
  margin: 0;
  font: 600 16px/1.2 "Playfair Display", Georgia, serif;
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.01em;
}
.cw-ts-close {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 18px;
  line-height: 1;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.cw-ts-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
}
.cw-ts-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}
/* Сам блок «SEO-параметры», который въезжает в модалку через JS, получает
   inline-стили (style="display:flex;flex-direction:column;gap:8px") от
   index.html — мы их не оверрайдим, только подстраиваем заголовок. */
.cw-ts-body .cw-section-title {
  margin-bottom: 12px;
  font: 600 12px/1 "Playfair Display", Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 158, 11, 0.85);
}
.cw-ts-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}
.cw-ts-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}
.cw-ts-btn-primary {
  padding: 8px 18px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.85), rgba(217, 119, 6, 0.85));
  border: 0;
  border-radius: 8px;
  color: #fff;
  font: 600 13px/1.2 inherit;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}
.cw-ts-btn-primary:hover { filter: brightness(1.08); }
.cw-ts-btn-primary:active { transform: translateY(1px); }

body.cw-ts-modal-open { overflow: hidden; }
