/* ================================
   ОБЩИЕ МЕЛКИЕ ПРАВКИ
================================ */

/* Заголовок группы над цветными кнопками */
.tdmp-color-controls .color-row .tdmp-color-label {
  display: block;
  width: 100%;
  margin-bottom: 2px;
  line-height: 1.1;
}

/* На всякий случай — убираем возможный верхний отступ у ряда с кнопками */
.tdmp-color-controls .tdmp-palette-row {
  margin-top: 0 !important;
}

/* Ссылка "Перейти" в таблице размеров */
a.size-chart-link {
  color: #0073e6;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s ease;
}
a.size-chart-link:hover {
  color: #0056b3;
}

/* Высота селекта в инлайновых рядах */
body .tdmp-inline-label-wrapper select {
  height: 38px !important;
  line-height: 38px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-size: 14px !important;
}

/* Аккуратный заголовок конструктора над 3D */
.tdmp-plugin-wrapper > h2 {
  grid-column: 1 / -1;
  text-align: left;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  letter-spacing: 0.02em;
  margin: 8px 0 10px;
}

/* На очень узких экранах чуть компактнее */
@media (max-width: 480px) {
  .tdmp-plugin-wrapper > h2 {
    font-size: 17px;
    margin: 6px 0 8px;
  }
}

/* ================================
   КНОПКИ НАВИГАЦИИ И ДЕЙСТВИЙ
================================ */

.tdmp-next-step-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}
.tdmp-next-step-btn:hover {
  background-color: #0056b3;
}

/* Маленькая зелёная кнопка загрузки файла (внутри логотипов) */
.tdmp-upload-button {
  height: 36px;
  line-height: 1;
  padding: 0 16px;
  font-size: 0.9em;
  font-weight: bold;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tdmp-upload-button:hover {
  background-color: #218838;
}

/* Кнопка "Персоналізувати" в карточке товара */
.single-product .summary .tdmp-customize-note {
  margin: 10px 0 8px;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
}

.single-product .summary .tdmp-customize-btn.button,
body .tdmp-customize-btn.button {
  display: block;
  width: 100%;
  min-height: 30px;
  margin: 12px 0 16px;
  background: #28a745 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 30px;
  box-shadow: inset 0 -2px rgba(0,0,0,.18);
  cursor: pointer;
  transition: background .15s ease, transform .02s ease, box-shadow .02s ease;
}
.single-product .summary .tdmp-customize-btn.button:hover,
body .tdmp-customize-btn.button:hover {
  background: #228539 !important;
}
.single-product .summary .tdmp-customize-btn.button:active,
body .tdmp-customize-btn.button:active {
  transform: translateY(1px);
  box-shadow: inset 0 0 rgba(0,0,0,0);
}
.single-product .summary .tdmp-customize-btn.button:focus,
body .tdmp-customize-btn.button:focus {
  outline: 2px solid #222;
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .single-product .summary .tdmp-customize-btn.button,
  body .tdmp-customize-btn.button {
    min-height: 50px;
    font-size: 15px !important;
    line-height: 50px;
    letter-spacing: .06em;
  }
}

/* Кнопка сброса под 3D */
.tdmp-reset-btn {
  display: block;
  margin: 10px auto 0;
  padding: 8px 14px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tdmp-reset-btn:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
}

/* ================================
   ЛЕЙАУТ: ДЕСКТОП
================================ */

.tdmp-left { display: block; }

.tdmp-plugin-wrapper {
  display: grid;
  grid-template-columns: 570px 1fr; /* 3D + панель */
  gap: 30px;
  width: 1120px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.tdmp-model-viewer {
  width: 570px;
  height: 700px;
}

/* Полупрозрачная панель управления */
.tdmp-controls-panel {
  width: 100%;
  max-width: 530px;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(6px);
  box-sizing: border-box;
}

/* Заголовки внутри панели */
.tdmp-controls-panel h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #0056b3;
  font-size: 1.2em;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.tdmp-controls-panel h4 {
  margin-top: 15px;
  margin-bottom: 10px;
  color: #555;
  font-size: 1em;
}

/* Общий стиль "карточек" контролов */
.tdmp-text-controls,
.tdmp-color-controls,
.tdmp-image-upload-controls {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #e9e9e9;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

/* Убираем лишний отступ у последнего блока в панели */
.tdmp-controls-panel > div:last-child {
  margin-bottom: 0;
}

/* ================================
   ТАБЫ
================================ */

.tdmp-tab-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tdmp-tab-button {
  padding: 8px 14px;
  background: #e9e9e9;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.tdmp-tab-button.active {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

.tdmp-tab-content { display: none; }
.tdmp-tab-content.active { display: block; }

/* ================================
   ЦВЕТОВЫЕ КОНТРОЛЫ
================================ */

.tdmp-palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-start;
  width: 100%;
  align-items: flex-start;
}

/* Ряды цветов: подпись над палитрой */
.tdmp-color-controls .color-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 20px;
}
.tdmp-color-controls .color-row .tdmp-color-label {
  width: 100%;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: unset;
  overflow: visible;
  text-align: left;
  font-weight: bold;
  color: #064e9c;
  font-size: 0.9em;
  text-transform: uppercase;
}

/* Маленькие цветовые квадратики (вариант с квадратами) */
.tdmp-color-controls .tdmp-color-btn {
  position: relative;
  width: 22px;
  height: 22px;
  margin: 1px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: none;
  padding: 0;
}
.tdmp-color-controls .tdmp-color-btn:hover {
  transform: scale(1.05);
}
.tdmp-color-controls .tdmp-color-btn.active {
  border: 2px solid #007bff !important;
  box-shadow: 0 0 4px rgba(0,123,255,0.8);
}
.tdmp-color-btn[style*="#FFF"],
.tdmp-color-btn[style*="#fff"],
.tdmp-color-btn[style*="rgb(255"] {
  border: 1px solid #ccc !important;
}
.tdmp-color-btn.active::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Большие круглые кнопки палитры (там где используются button) */
.tdmp-color-controls button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tdmp-color-controls button:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.tdmp-color-controls button.active {
  border-color: #007bff;
}

.tdmp-color-controls label {
  display: inline-block;
  width: 80px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #444;
}
.tdmp-color-controls input[type="color"] {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  vertical-align: middle;
}

/* ================================
   ТЕКСТОВЫЕ КОНТРОЛЫ
================================ */

.text-controls-group {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ccc;
}
.text-controls-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tdmp-text-controls label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #666;
  font-size: 0.9em;
}

.tdmp-text-controls input[type="text"],
.tdmp-text-controls input[type="number"],
.tdmp-text-controls select,
.tdmp-text-controls input[type="color"] {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0.9em;
}

.tdmp-text-controls input[type="number"] {
  width: calc(100% - 70px);
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}

.tdmp-text-controls button {
  padding: 8px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s ease;
}
.tdmp-text-controls button:hover {
  background-color: #0056b3;
}

/* Общий серый стиль для .size-change-button (по умолчанию) */
.size-change-button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  margin-left: 0;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.size-change-button:hover {
  background-color: #e0e0e0;
}

/* Маленькие цветовые квадратики именно в текстовых контролах */
.tdmp-text-controls .tdmp-color-btn {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  padding: 0 !important;
  display: inline-block;
  margin: 1px;
  box-shadow: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tdmp-text-controls .tdmp-color-btn.active {
  border: 2px solid #007bff !important;
}
.tdmp-text-controls .tdmp-color-btn:hover {
  transform: scale(1.1);
}

.tdmp-text-controls input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

/* Инлайновый ряд "лейбл + селект/контролы" */
.tdmp-inline-label-wrapper {
  display: flex;
  align-items: stretch;
  gap: 5px;
  margin-bottom: 10px;
}
.tdmp-inline-label-wrapper select {
  flex: 1 1 auto;
  max-width: calc(100% - 70px);
}
.tdmp-inline-label {
  flex-shrink: 0;
  font-weight: bold;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  height: 36px;
  color: #666;
}
.tdmp-inline-label.tdmp-label-text {
  color: #064e9c;
  text-transform: uppercase;
}

.font-and-color-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.font-and-color-row select {
  flex: 1;
  min-width: 0;
}
.font-and-color-row input[type="color"] {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tdmp-text-height-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.9em;
  color: #444;
  font-weight: 500;
}

.tdmp-section-label {
  font-weight: 500;
  font-size: 0.9em;
  color: #555;
  flex-shrink: 0;
}

/* ================================
   КОНТРОЛЫ ЛОГОТИПОВ / ИЗОБРАЖЕНИЙ
================================ */

.tdmp-image-upload-controls input[type="file"] {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fefefe;
}
.tdmp-image-upload-controls button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.2s ease;
}
.tdmp-image-upload-controls button:hover {
  background-color: #218838;
}

/* Базовые квадратные кнопки управления логотипом */
.tdmp-move-button {
  width: 36px;
  height: 36px;
  font-size: 1em;
  font-weight: bold;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.tdmp-move-button:hover {
  background: #ddd;
}

/* Зелёные версии (позиция/размер логотипа) */
.tdmp-image-upload-controls button.tdmp-move-button,
.tdmp-image-upload-controls button.size-change-button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 1.1em;
  font-weight: bold;
  background-color: #28a745;
  color: #fff;
  border: 1px solid #1e7e34;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.tdmp-image-upload-controls button.tdmp-move-button:hover,
.tdmp-image-upload-controls button.size-change-button:hover {
  background-color: #218838;
  border-color: #1c7430;
}

/* Серая кнопка удаления */
.tdmp-image-upload-controls button.tdmp-delete-button {
  background-color: #f0f0f0;
  color: #000;
  border: 1px solid #ccc;
}
.tdmp-image-upload-controls button.tdmp-delete-button:hover {
  background-color: #e0e0e0;
}

/* Блок одного логотипа */
.image-upload-group {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ccc;
}
.image-upload-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ================================
   ПРОЧЕЕ
================================ */

/* Иконка загрузки */
.tdmp-loading-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 60px;
  height: 60px;
  z-index: 20;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tdmp-loading-icon.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Подсказка "вращайте" */
.rotate-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}
.rotate-hint.hidden {
  opacity: 0;
  visibility: hidden;
}
.rotate-hint-icon {
  width: 80px;
  height: 80px;
  display: block;
  opacity: 0.5;
}

/* Скрываем оригинальный file input */
.tdmp-file-input {
  display: none !important;
}

/* ================================
   COLLAPSIBLE БЛОКИ ДЛЯ ТЕКСТА
================================ */

.tdmp-collapse {
  border-bottom: 1px dashed #e6e6e6;
  margin-bottom: 12px;
}
.tdmp-collapse:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

/* скрыть стандартный маркер summary */
.tdmp-collapse summary::-webkit-details-marker { display: none; }
.tdmp-collapse summary { list-style: none; }

.tdmp-collapse__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: #064e9c;
  text-transform: uppercase;
}

.tdmp-collapse__summary .chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(-45deg);
  transition: transform .2s ease;
  margin-right: 2px;
}
.tdmp-collapse[open] .tdmp-collapse__summary .chev {
  transform: rotate(45deg);
}

.tdmp-collapse__summary .preview {
  margin-left: auto;
  font-weight: 600;
  opacity: .85;
}

.tdmp-collapse__body {
  padding: 6px 0 10px;
}

.tdmp-collapse[open] .tdmp-collapse__summary .ttl {
  color: #dcdcdc;
}
.tdmp-collapse[open] .tdmp-collapse__summary .preview {
  display: none;
}
.tdmp-collapse[open] .tdmp-collapse__summary .chev {
  border-color: #bbb;
}

/* ================================
   МОБИЛЬНЫЙ АДАПТИВ
================================ */

@media (max-width: 768px) {

  .tdmp-plugin-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 10px;
    margin: 0;
  }

  .tdmp-left {
    width: 100%;
    margin-bottom: 20px;
  }

  .tdmp-model-viewer {
    width: 100%;
    height: auto;
    min-height: 420px;
  }

  .tdmp-model-viewer canvas {
    width: 100% !important;
    height: auto !important;
  }

  /* Панель как bottom sheet */
  .tdmp-controls-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -3px 16px rgba(0,0,0,0.25);
    padding: 12px;
    z-index: 9999;
    overflow-y: auto;
    transition: height .35s ease;
  }

  /* свернутое состояние — только верхняя часть с табами */
  .tdmp-controls-panel.tdmp-collapsed {
    height: auto !important;
    max-height: 90px;
    overflow: hidden;
  }

  .tdmp-overlay {
    position: fixed;
    inset: 0;
    background: transparent !important; /* без затемнения */
    display: none;
    z-index: 9998;
  }
  .tdmp-overlay.active {
    display: block;
  }

  /* Горизонтальный скролл табов на мобилке */
  .tdmp-tab-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .tdmp-tab-bar::-webkit-scrollbar {
    height: 6px;
  }
  .tdmp-tab-bar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
  }
  .tdmp-tab-button {
    flex: 0 0 auto;
  }

  /* Карточки контролов внутри панели — чуть прозрачнее */
  .tdmp-text-controls,
  .tdmp-color-controls,
  .tdmp-image-upload-controls {
    background: rgba(255, 255, 255, 0.0);
    border: 1px solid rgba(233, 233, 233, 0.7);
    box-shadow: none;
  }

  /* Кнопка сброса — слева под моделью */
  .tdmp-left .tdmp-reset-btn {
    display: inline-block;
    margin: 10px 0 0 16px;
  }
}

/* Логотипы чуть компактнее на очень узких экранах */
@media (max-width: 480px) {
  .image-upload-group {
    padding: 10px;
    font-size: 13px;
  }
  .image-upload-group .tdmp-section-label {
    display: block;
    margin-bottom: 4px;
  }
  .tdmp-image-upload-controls button.tdmp-move-button,
  .tdmp-image-upload-controls button.size-change-button {
    width: 30px;
    height: 30px;
    font-size: 0.95em;
    margin: 2px 4px 2px 0;
  }
}

/* ================================
   КНОПКА-СТРЕЛКА ДЛЯ СВОРАЧИВАНИЯ
================================ */

/* По умолчанию (десктоп) — стрелку прячем */
.tdmp-close-sheet {
  display: none;
}

/* Только мобильная версия — стрелка видна */
@media (max-width: 768px) {
  .tdmp-close-sheet {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 15px; /* отступ под стрелкой */
    cursor: pointer;
    user-select: none;
  }
}

/* Стрелка по умолчанию — вверх (панель открыта) */
.tdmp-close-arrow {
  width: 14px;
  height: 14px;
  border-right: 2px solid #777;
  border-bottom: 2px solid #777;
  transform: rotate(45deg);     /* ▼ */
  transition: transform .2s ease;
}

/* Когда панель в классе tdmp-collapsed — стрелка вниз */
.tdmp-controls-panel.tdmp-collapsed .tdmp-close-arrow {
  transform: rotate(-135deg);   /* ▲ */
}

/* ================================
   ДОП. ПРАВКА: синие кнопки +/- для текста
================================ */

/* Перебиваем серый .size-change-button только внутри текстовых контролов */
.tdmp-text-controls .size-change-button {
  background-color: #007bff !important;
  border-color: #007bff !important;
  color: #fff !important;
}
.tdmp-text-controls .size-change-button:hover {
  background-color: #0056b3 !important;
}
/* ================================
   Фикс табов на десктопе
================================ */

/* На десктопе табы можно переносить и они не вылезают за рамку */
.tdmp-tab-bar {
  flex-wrap: wrap;
}

.tdmp-tab-button {
  white-space: normal;       /* разрешаем перенос внутри кнопки */
}

/* А на мобилках оставляем поведение "в одну строку + скролл" */
@media (max-width: 768px) {
  .tdmp-tab-bar {
    flex-wrap: nowrap;
  }

  .tdmp-tab-button {
    white-space: nowrap;
  }
}
/* ================================
   Табы: одна строка, текст может быть в 2 строки
================================ */

.tdmp-tab-bar {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;        /* сами кнопки НЕ переносятся */
}

/* Кнопка-таб: делим ширину поровну, разрешаем перенос текста */
.tdmp-tab-button {
  flex: 1 1 0;              /* все табы делят строку поровну */
  min-width: 0;             /* можно ужиматься */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  text-align: center;

  white-space: normal;      /* 🔹 разрешаем перенос строк */
  line-height: 1.2;
  overflow: visible;        /* убираем обрезку */
  text-overflow: clip;
}

/* Активный таб — как было */
.tdmp-tab-button.active {
  background: #007bff;
  color: #fff;
}

/* Мобилка: оставляем горизонтальный скролл и однострочный текст */
@media (max-width: 768px) {
  .tdmp-tab-bar {
    overflow-x: auto;
    white-space: nowrap;
  }

  .tdmp-tab-button {
    flex: 0 0 auto;         /* ширина по содержимому */
    display: inline-block;
    white-space: nowrap;    /* чтобы не раздувало высоту на очень узких экранах */
  }
}
