/* ==========================================================
   bpilot.ru — Глобальный кастомный CSS
   Последнее обновление: 15.04.2026
   ==========================================================
   СТРУКТУРА:
   1. Мобильное меню и утилиты
   2. Футер
   3. Каталог — карточки товаров
   4. Каталог — фильтры
   5. Мобильная версия каталога
   6. Страница товара — калькулятор
   7. Страница товара — карточка «Итог» и CTA
   8. Корзина и оформление заказа
   9. Перелинковка
   10. Кастомные блоки (УФ-печать)
   ========================================================== */


/* ==========================================================
   1. МОБИЛЬНОЕ МЕНЮ И УТИЛИТЫ
   ========================================================== */

/* Cookie-баннер — поднять выше нижней мобильной панели */
@media (max-width: 767px) {
  .cookie-container {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 100px) !important;
  }
}

/* FAQ-виджет — адаптация для мобильного:
   поднять над нижней панелью, уменьшить кнопку, скрыть стрелку */
@media (max-width: 767px) {
  #__faq-widget {
    bottom: calc(58px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #__faq-widget .faqwidget_fab {
    transform: scale(0.65) !important;
    transform-origin: bottom left !important;
  }
  #__faq-widget .lucide-chevron-right {
    display: none !important;
  }
  #__faq-widget .faqwidget_fab span {
    transform: none !important;
  }
}


/* ==========================================================
   2. ФУТЕР
   ========================================================== */

/* Полоска «Разработано» — сжать до минимальной высоты */
.footer-developed-by-link {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  background-color: #164e89 !important;
}

.footer-developed-by {
  margin: 0 !important;
  padding: 2px 0 !important;
  line-height: 1 !important;
}

.footer-developed-by img {
  max-height: 12px !important;
  margin-left: 10px !important;
  vertical-align: middle !important;
}

.footer-developed-by,
.footer-developed-by span,
.footer-developed-by div {
  font-size: 10px !important;
}


/* ==========================================================
   3. КАТАЛОГ — КАРТОЧКИ ТОВАРОВ
   ========================================================== */

/* Карточка товара */
.widget-products__item.category-block {
  background: #ffffff !important;
  border: 1px solid #E7ECF2 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04) !important;
  padding: 0 0 14px 0 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  overflow: hidden !important;
}

.widget-products__item.category-block:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.09) !important;
}

/* Фото товара — скруглить только верхние углы */
.card-image {
  border-radius: 12px 12px 0 0 !important;
  overflow: hidden !important;
  background: #F8FAFC !important;
}

/* Скругления других форматов фото */
.slider-modal-item {
  border-radius: 15px !important;
  overflow: hidden !important;
}
.main-gallery {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 15px !important;
}
.img-fluid {
  border-radius: 10px !important;
}
.slider__product_block-image,
.preview-image {
  border-radius: 15px !important;
  overflow: hidden !important;
}
.gallery-widget-image {
  border-radius: 15px !important;
  overflow: hidden !important;
}

/* Название товара в плитке */
.category-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #101828 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-decoration: none !important;
  padding: 10px 12px 0 !important;
}
.category-title:hover {
  color: #1A4B83 !important;
}

/* Тег характеристик на карточке */
.category-block .product-signature.small-text {
  background: none !important;
  padding: 0 12px !important;
  margin: 4px 0 !important;
  display: block !important;
}
.product-signature.small-text span {
  background-color: transparent !important;
  color: #667085 !important;
  border: 1px solid #D0D5DD !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  padding: 2px 8px !important;
  display: inline-block !important;
}
.product-tag {
  border-radius: 10px !important;
  overflow: hidden !important;
}

/* Блок с ценой — скрыт глобально */
.product-min-price-container {
  display: none !important;
}

/* Кнопка заказа на плитке — скрыта */
.widget-products__button-wrapper {
  display: none !important;
}

/* Скругления прочих элементов каталога */
.banner {
  border-radius: 15px !important;
  overflow: hidden !important;
}
.widget-advantages-mini {
  border-radius: 15px !important;
}
.category-block-images {
  border-radius: 15px !important;
  overflow: hidden !important;
}
.alert {
  border-radius: 15px !important;
}


/* ==========================================================
   4. КАТАЛОГ — ФИЛЬТРЫ СЛЕВА
   ========================================================== */

/* Группа фильтров — отступ между блоками */
.tag-block {
  margin-bottom: 24px !important;
}

/* Заголовок группы фильтров (МАТЕРИАЛ, ФОРМА и т.д.) */
.tags-group-name .block-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  color: #94A3B8 !important;
}

/* Строки чекбоксов */
.tags-for-group__item {
  margin-bottom: 8px !important;
}

.custom-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 28px !important;
  cursor: pointer !important;
}

.custom-label .text-gray-700 {
  font-size: 14px !important;
  color: #475467 !important;
  line-height: 1.4 !important;
}

/* Перелинковка — центрирование на десктопе */
@media (min-width: 768px) {
  .interlinks-widget {
    max-width: 80%;
    margin: auto;
  }
  .interlinks-widget .filter-tags {
    justify-content: center !important;
  }
}


/* ==========================================================
   5. КАТАЛОГ — МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================== */

/* Скрыть теги характеристик на мобильном */
@media (max-width: 767px) {
  .product-signature,
  .product-signature.small-text,
  .category-block .product-signature {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

/* Одна колонка для основных каталожных сеток */
@media (max-width: 767px) {
  .bg-content-site .col-sm-9 > .widget-products > .widget-products__items,
  .site-widget-instance-375 .widget-products__items,
  .site-widget-instance-376 .widget-products__items,
  .site-widget-instance-377 .widget-products__items {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .bg-content-site .col-sm-9 > .widget-products > .widget-products__items > .widget-products__item.category-block,
  .site-widget-instance-375 .widget-products__item.category-block,
  .site-widget-instance-376 .widget-products__item.category-block,
  .site-widget-instance-377 .widget-products__item.category-block {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .bg-content-site .col-sm-9 > .widget-products .category-title,
  .site-widget-instance-375 .category-title,
  .site-widget-instance-376 .category-title,
  .site-widget-instance-377 .category-title {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .widget-products .slick-track {
    gap: 10px !important;
  }

  /* Компактные отступы карточек */
  .widget-products__items {
    gap: 5px !important;
  }
  .widget-products__item.category-block {
    padding: 0 0 8px 0 !important;
  }
  .category-title {
    font-size: 14px !important;
    padding: 6px 8px 0 !important;
  }
}

/* Скрыть полоску «Итог» в мобильной версии */
@media (max-width: 768px) {
  .bottom-total-price {
    display: none !important;
  }
}


/* ==========================================================
   6. СТРАНИЦА ТОВАРА — КАЛЬКУЛЯТОР
   Дата добавления: 08.04.2026
   ========================================================== */

/* Заголовки секций калькулятора (CAPS-лейблы):
   «ЧЬИ РУЧКИ?», «СТОРОНЫ ПЕЧАТИ» и т.д. */
.label-name.block-title {
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  color: #6B7280 !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  line-height: 1.4 !important;
  font-family: inherit !important;
}

/* Пояснительный текст внутри лейбла —
   обнуляем трекинг, чтобы не читался как моноширинный */
.label-name.block-title .label-module-desc {
  font-size: 13px !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
  color: #374151 !important;
  line-height: 1.5 !important;
  font-family: inherit !important;
  margin-top: 4px !important;
  margin-bottom: 12px !important;
}

/* Кнопки-переключатели (radio-чипы):
   «ручки по каталогу», «1 место нанесения» и т.д. */
.custom-label.custom-label-block.background-label {
  border-radius: 8px !important;
  min-height: 36px !important;
  padding: 6px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #E5E7EB !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: border-color 0.15s, background 0.15s !important;
}

/* Активный чип */
.custom-label.custom-label-block.background-label.selected {
  border-color: #194e89 !important;
  background: #194e89 !important;
  color: #ffffff !important;
}

/* Текст внутри чипа */
.custom-label.custom-label-block.background-label .label-icon.text-2 {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  color: inherit !important;
}

/* Hover для неактивных чипов */
.custom-label.custom-label-block.background-label:not(.selected):hover {
  border-color: #9CA3AF !important;
  background: #F9FAFB !important;
}

/* Горизонтальная группа чипов с правильными отступами */
.radio-modules-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

/* Убрать паразитный margin у обёртки каждого чипа */
.module-container.radio-calc-block {
  margin: 0 !important;
}

/* Межстрочный интервал в текстах описания модулей калькулятора */
.front-calculation-module-desc p,
.front-calculation-module-desc span,
.front-calculation-module-desc li {
  line-height: 1.5 !important;
}

/* Единый цвет рамок в калькуляторе */
.front-calculation-module-desc,
.calculation-label-block,
.modules-container {
  border-color: #E5E7EB !important;
}

/* Скругление фото товара */
.slider-modal-item,
.main-gallery {
  border-radius: 15px !important;
  overflow: hidden !important;
}

/* Скругление блока «Скачайте инструкцию и шаблоны» */
.template-module.my-3 {
  border-radius: 15px !important;
  overflow: hidden !important;
}

/* Размер сроков изготовления в калькуляторе */
.product-min-price-container,
.product-min-price-container .text-3 {
  font-size: 12px !important;
}

/* Ссылка «Характеристики» — убрать зелёный, привести к фирменному синему */
.product-feature-button.btn-link {
  color: #194e89 !important;
}


/* ==========================================================
   7. СТРАНИЦА ТОВАРА — КАРТОЧКА «ИТОГ» И КНОПКА CTA
   Дата добавления: 08.04.2026
   ========================================================== */

/* Карточка «Итог» — визуальное выделение блока */
.product-add-info {
  background: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  padding: 24px !important;
}

/* Заголовок «Итог» */
.product-add-info .product-add-info-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #6B7280 !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 12px !important;
}

/* Цена — главный акцент карточки */
.product-add-info .product-add-cart-price {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  line-height: 1.1 !important;
}

/* Строка бонусов */
.product-add-info .cashback-label {
  font-size: 13px !important;
  color: #9CA3AF !important;
  margin-top: 8px !important;
}

/* Название товара в итоговой карточке */
.product-add-info .product-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #374151 !important;
  margin-bottom: 4px !important;
}

/* Тираж */
.product-add-info .product-circulation-label {
  font-size: 13px !important;
  color: #6B7280 !important;
}

/* Параметры заказа (чьи ручки, место нанесения и т.д.) */
.product-add-info .product-params-label {
  font-size: 12px !important;
  color: #9CA3AF !important;
  line-height: 1.5 !important;
}

/* Кнопка «Добавить в корзину» */
.btn.btn-primary.btn-full.btn-create-layout {
  background: #F59E0B !important;
  background-image: none !important;
  border: none !important;
  border-radius: 12px !important;
  padding-top: 18px !important;
  padding-bottom: 18px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.01em !important;
  margin-top: 12px !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
}

.btn.btn-primary.btn-full.btn-create-layout:hover {
  background: #D97706 !important;
  background-image: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45) !important;
  color: #ffffff !important;
}

.btn.btn-primary.btn-full.btn-create-layout:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3) !important;
}


/* ==========================================================
   8. КОРЗИНА И ОФОРМЛЕНИЕ ЗАКАЗА
   ========================================================== */

/* Карточки способов доставки */
.rich-radio {
  border-radius: 15px !important;
  overflow: hidden !important;
}

/* Картинка внутри способа доставки */
.rich-radio .rounded-bottom,
.rich-radio img {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 13px !important;
  border-bottom-right-radius: 13px !important;
}

/* Блок выбора города */
.order-making__body-select-city {
  border-radius: 15px !important;
}


/* ==========================================================
   9. КАСТОМНЫЕ БЛОКИ — УФ-ПЕЧАТЬ
   Добавлены: март 2026
   ========================================================== */

/* Блок «Что важно знать о...» */
.bp-uv-text-safe {
  padding: 24px 0 0;
  background: transparent;
}
.bp-uv-text-safe * {
  box-sizing: border-box;
}
.bp-uv-text-safe__wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.bp-uv-text-safe__outer {
  width: 100%;
  background: #f4f6f9;
  border: 1px solid #dfe6f0;
  border-radius: 15px;
  padding: 34px;
  overflow: hidden;
}
.bp-uv-text-safe__head {
  margin-bottom: 24px;
  max-width: 980px;
}
.bp-uv-text-safe__badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #e7eef9;
  color: #1462e5;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 18px;
}
.bp-uv-text-safe__title {
  margin: 0;
  color: #0f1f33;
  font-size: clamp(34px, 3.2vw, 56px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.bp-uv-text-safe__content {
  max-width: 1320px;
}
.bp-uv-text-safe__paragraph {
  margin: 0 0 18px;
  color: #617089;
  font-size: clamp(18px, 1.05vw, 22px);
  line-height: 1.55;
  font-weight: 600;
}
.bp-uv-text-safe__paragraph:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .bp-uv-text-safe {
    padding-top: 16px;
  }
  .bp-uv-text-safe__outer {
    padding: 18px;
    border-radius: 22px;
  }
  .bp-uv-text-safe__head {
    margin-bottom: 18px;
  }
  .bp-uv-text-safe__badge {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    margin-bottom: 14px;
  }
  .bp-uv-text-safe__title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.08;
  }
  .bp-uv-text-safe__paragraph {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
}

/* Блок «Как заказать» */
.bp-uv-order-steps {
  padding: 16px 0 0;
  background: transparent;
}
.bp-uv-order-steps * {
  box-sizing: border-box;
}
.bp-uv-order-steps__wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.bp-uv-order-steps__outer {
  width: 100%;
  background: #eef3f9;
  border: 1px solid #dfe6f0;
  border-radius: 15px;
  padding: 32px 34px;
}
.bp-uv-order-steps__head {
  max-width: 980px;
  margin-bottom: 26px;
}
.bp-uv-order-steps__badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: #e7eef9;
  color: #1462e5;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 18px;
}
.bp-uv-order-steps__title {
  margin: 0 0 12px;
  color: #0f1f33;
  font-size: clamp(30px, 2.7vw, 46px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.bp-uv-order-steps__lead {
  margin: 0;
  color: #617089;
  font-size: clamp(17px, 1vw, 20px);
  line-height: 1.6;
  font-weight: 600;
}
.bp-uv-order-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.bp-uv-order-steps__item {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #dfe6f0;
  border-radius: 15px;
  padding: 22px 22px 20px;
  box-shadow: 0 6px 18px rgba(15, 31, 51, 0.04);
}
.bp-uv-order-steps__num {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #2560a8 0, #194e89 100%);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(25, 78, 137, 0.20);
}
.bp-uv-order-steps__item-title {
  margin: 0 0 10px;
  color: #0f1f33;
  font-size: clamp(20px, 1.2vw, 24px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.bp-uv-order-steps__item-text {
  margin: 0;
  color: #617089;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
}
.bp-uv-order-steps__bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dfe6f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.bp-uv-order-steps__note {
  margin: 0;
  color: #617089;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  max-width: 860px;
}
.bp-uv-order-steps__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
.bp-uv-order-steps__btn {
  min-height: 56px;
  padding: 0 22px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
}
.bp-uv-order-steps__btn--telegram {
  background: linear-gradient(180deg, #2560a8 0, #194e89 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(25, 78, 137, 0.22);
}
.bp-uv-order-steps__btn--telegram:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(25, 78, 137, 0.24);
}
.bp-uv-order-steps__btn--max {
  background: linear-gradient(180deg, #ef7f19 0, #d96d0c 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(239, 127, 25, 0.24);
}
.bp-uv-order-steps__btn--max:hover {
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(239, 127, 25, 0.28);
}
.bp-uv-order-steps__btn--outline {
  background: #ffffff;
  border: 2px solid #194e89;
  color: #194e89 !important;
}
.bp-uv-order-steps__btn--outline:hover {
  color: #194e89 !important;
  background: rgba(20, 98, 229, 0.04);
}

@media (max-width: 1100px) {
  .bp-uv-order-steps__grid {
    grid-template-columns: 1fr;
  }
  .bp-uv-order-steps__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .bp-uv-order-steps {
    padding-top: 12px;
  }
  .bp-uv-order-steps__outer {
    padding: 18px;
    border-radius: 22px;
  }
  .bp-uv-order-steps__badge {
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
    margin-bottom: 14px;
  }
  .bp-uv-order-steps__title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.08;
  }
  .bp-uv-order-steps__lead {
    font-size: 16px;
  }
  .bp-uv-order-steps__item {
    border-radius: 20px;
    padding: 18px;
  }
  .bp-uv-order-steps__num {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-size: 20px;
  }
  .bp-uv-order-steps__item-title {
    font-size: 20px;
  }
  .bp-uv-order-steps__item-text,
  .bp-uv-order-steps__note {
    font-size: 15px;
    line-height: 1.6;
  }
  .bp-uv-order-steps__actions {
    width: 100%;
    flex-direction: column;
  }
  .bp-uv-order-steps__btn {
    width: 100%;
    min-height: 52px;
    border-radius: 14px;
  }
}

/* Кнопка «Быстрый заказ» рядом с H1 — скругление по токену сайта */
.btn-send-order-manager {
  border-radius: 12px !important;
}

/* Текстовое поле в калькуляторе (техзадание) — скругление по токену */
.input-module-text-field {
  border-radius: 8px !important;
}

/* Placeholder в текстовом поле калькулятора — уменьшить до размера лейбла */
.input-module-text-field::placeholder {
  font-size: 13px !important;
  color: #9CA3AF !important;
}

/* Дропдауны в калькуляторе — скругление по токену контролов */
.calculation-module-select .dropdown-toggle {
  border-radius: 8px !important;
}

/* Открытый дропдаун в калькуляторе — верхние углы остаются скруглёнными */
.calculation-module-select .dropdown-toggle.bs-placeholder,
.calculation-module-select.open .dropdown-toggle {
  border-radius: 8px !important;
}

/* ---------------------------
   ЧЕКБОКСЫ КАЛЬКУЛЯТОРА
   (блок «Разработка макета»)
--------------------------- */

/* Скругление квадратика — без сброса appearance, галочка остаётся нативной */
.custom-input[type=checkbox] {
  border-radius: 4px !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  flex-shrink: 0 !important;
}

/* Скругление внешней обводки блока */
.calculation-module .custom-label-block {
  border-radius: 8px !important;
}

/* Поле количества (степпер) */
.stepping-input {
  border-radius: 8px !important;
}

/* Кнопки ± */
.calculation-stepping-icon {
  border-radius: 8px !important;
}

/* Отступ между кнопками ± */
.calculation-stepping {
  gap: 6px !important;
}

/* Скругление карточек выбора параметров */
.calculation-module .background-label,
.calculation-module .custom-label-block {
    border-radius: 12px !important;
}

/* Скругление полей ввода размера (Свой формат) */
.check-size-values.form-control {
    border-radius: 8px !important;
}

/* ---------------------------
   ПРОМО-БАННЕР «ТИРАЖ 500+»
   (блок «Заказать офсетом дешевле»)
--------------------------- */

/* Внешняя карточка — белый фон, рамка и тень в едином стиле с блоками контактов */
.bp-promo-banner-offset {
  background: #ffffff;
  padding: 16px 24px;
  border-radius: 16px;
  margin: 20px 0;
  border: 1px solid #E7ECF2;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

/* Внутренний flex-контейнер — текст слева, кнопка справа */
.bp-promo-banner-content {
  display: flex !important;
  justify-content: space-between;
  align-items: center !important;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Текст баннера — синий, средний вес, без лишних отступов платформы */
.bp-promo-banner-text {
  font-size: 14px !important;
  font-weight: 500;
  color: #194e89 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1;
  line-height: 1.5 !important;
  align-self: center;
}

/* Кнопка «Заказать» — голубой фон как у иконок в блоке контактов, без рамки и тени */
.bp-promo-banner-btn {
  background-color: #EBF2FB !important;
  color: #194e89 !important;
  padding: 12px 24px !important;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 15px !important;
  border: none !important;
  transition: background 0.18s ease;
  white-space: nowrap;
  display: inline-block !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  align-self: center;
  flex-shrink: 0;
}

/* Hover кнопки — чуть темнее голубой, цвет текста не меняется */
.bp-promo-banner-btn:hover {
  background-color: #d5e5f5 !important;
  color: #194e89 !important;
}

/* Active кнопки — ещё темнее, имитация нажатия */
.bp-promo-banner-btn:active {
  background-color: #c2d8f0 !important;
}

/* Мобильная адаптация — колонка вместо строки, кнопка на всю ширину */
@media (max-width: 768px) {
  .bp-promo-banner-offset {
    padding: 14px 20px;
  }
  .bp-promo-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .bp-promo-banner-text {
    font-size: 13px !important;
  }
  .bp-promo-banner-btn {
    width: 100%;
    padding: 12px 24px !important;
  }
}

/* ---------------------------
   БЛОК «РАЗРАБОТКА МАКЕТА»
--------------------------- */
.bps { display:flex; flex-direction:column; gap:10px; font-size:14px; line-height:1.6; color:#374151; margin-top:14px; }
.bpi { padding:12px 14px; background:#F9FAFB; border-radius:10px; border:1px solid #E5E7EB; }
.bpi b { display:block; color:#194e89; margin-bottom:4px; }
.bpl { font-size:12px; color:#194e89; opacity:0.8; margin-top:4px; display:inline-block; }

/* ---------------------------
   РАЗМЕР ТЕКСТА В КОНТРОЛАХ КАЛЬКУЛЯТОРА
--------------------------- */
.calculation-module .custom-label-block,
.calculation-module-select .dropdown-toggle {
  font-size: 14px !important;
}

/* ---------------------------
   РАЗМЕР ТЕКСТА В ПЛИТКАХ КАЛЬКУЛЯТОРА
--------------------------- */
.calculation-module .label-icon {
  font-size: 14px !important;
}

/* ==========================================================
   FIX — TCS modal "Upload layout" in cart
   Restore native card layout inside design selection popup
   ========================================================== */

.modal-upload-layout-variants .design-modules-container .custom-label,
.modal-upload-layout-variants .design-modules-container .custom-label.custom-label-block,
.modal-upload-layout-variants .design-modules-container .custom-label.custom-label-block.background-label {
  display: block !important;
  min-height: 0 !important;
  height: 100% !important;
  padding: 12px !important;
  align-items: initial !important;
  justify-content: initial !important;
  gap: 0 !important;
}

.modal-upload-layout-variants .design-modules-container .background-label {
  border-radius: 8px !important;
}

.modal-upload-layout-variants .design-modules-container .view-icon {
  width: 100% !important;
  height: 95px !important;
  margin-right: 0 !important;
  margin-bottom: 12px !important;
  border-radius: 4px !important;
}

.modal-upload-layout-variants .design-modules-container .design-block-content,
.modal-upload-layout-variants .design-modules-container .design-block-title,
.modal-upload-layout-variants .design-modules-container .label-icon,
.modal-upload-layout-variants .design-modules-container .text-gray-700 {
  display: block !important;
  white-space: normal !important;
}

.modal-upload-layout-variants .design-modules-container .text-gray-700 {
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

@media (max-width: 767px) {
  .modal-upload-layout-variants .design-modules-container .custom-label,
  .modal-upload-layout-variants .design-modules-container .custom-label.custom-label-block,
  .modal-upload-layout-variants .design-modules-container .custom-label.custom-label-block.background-label {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  .modal-upload-layout-variants .design-modules-container .view-icon {
    width: 80px !important;
    height: 60px !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }
}

/* FIX — typography in upload-layout popup */
.modal-upload-layout-variants .design-modules-container .custom-label-block,
.modal-upload-layout-variants .design-modules-container .label-icon,
.modal-upload-layout-variants .design-modules-container .text-gray-700,
.modal-upload-layout-variants .design-modules-container .design-block-title {
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
}

.modal-upload-layout-variants .design-modules-container .design-block-title {
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

.modal-upload-layout-variants .design-modules-container .design-block-content {
  padding-top: 8px !important;
}

/* ==========================================================
   FIX — upload-layout popup: radius + tiles + CTA button
   ========================================================== */

/* popup */
.modal-upload-layout-variants .modal-content,
.modal-upload-layout-variants .modal-body {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* clickable tiles */
.modal-upload-layout-variants .design-modules-container .custom-label,
.modal-upload-layout-variants .design-modules-container .custom-label.custom-label-block,
.modal-upload-layout-variants .design-modules-container .custom-label.custom-label-block.background-label {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* image area inside tiles */
.modal-upload-layout-variants .design-modules-container .view-icon,
.modal-upload-layout-variants .design-modules-container .view-icon img,
.modal-upload-layout-variants .design-modules-container .view-icon svg {
  border-radius: 12px !important;
  overflow: hidden !important;
}

/* CTA button */
.modal-upload-layout-variants .btn.btn-success,
.modal-upload-layout-variants .btn.btn-primary,
.modal-upload-layout-variants .design-modules-container + .btn,
.modal-upload-layout-variants .design-modules-container ~ .btn {
  display: block !important;
  width: 88% !important;
  min-height: 50px !important;
  margin: 18px auto 0 !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* ==========================================================
   КОРЗИНА И ОФОРМЛЕНИЕ ЗАКАЗА — радиусы контролов
   ========================================================== */

/* Серый блок «Макет не загружен» */
.cart-item-image-upload .upload-layout-container .upload-layout-block,
.upload-layout-container .upload-layout-block {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Кнопка «Загрузить макет» внутри серого блока */
.cart-item-image-upload .upload-layout-container .btn,
.cart-item-image-upload .upload-layout-container .btn-primary,
.cart-item-image-upload .upload-layout-container .upload-layout-label .btn,
.cart-item-image-upload .upload-layout-container .upload-layout-label-mobile .btn {
  border-radius: 12px !important;
}

/* Поле ввода промокода */
.order-making .form-control,
.order-making input.form-control,
.order-making .form-control-height-4,
.order-making .input-group .form-control {
  border-radius: 8px !important;
}

/* Кнопка «Применить» у промокода */
.order-making .input-group-append .btn,
.order-making .input-group .btn,
.order-making .promo-code-block .btn,
.order-making .promo-code-block .btn-primary {
  border-radius: 8px !important;
}

/* Кнопка «Далее» и другие CTA в оформлении */
.order-making .btn-primary,
.order-making .btn.btn-primary,
.order-making .button-next-step,
.order-making .user-data-buttons .btn-primary {
  border-radius: 12px !important;
}

/* Чтобы стык поля промокода и кнопки выглядел аккуратно */
.order-making .input-group > .form-control:not(:last-child) {
  border-top-right-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.order-making .input-group > .input-group-append > .btn,
.order-making .input-group > .btn {
  border-top-left-radius: 8px !important;
  border-bottom-left-radius: 8px !important;
}

/* ==========================================================
   КОРЗИНА — добивка радиусов для upload и промокода
   ========================================================== */

/* Серый блок «Макет не загружен» */
.cart-item-image-upload,
.cart-item-image-upload > div,
.cart-item-image-upload .upload-layout-block,
.cart-item-image-upload .upload-layout-container,
.cart-item-image-upload .bg-light,
.cart-item-image-upload [class*="upload-layout"] {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Кнопка «Загрузить макет» */
.cart-item-image-upload .btn,
.cart-item-image-upload button,
.cart-item-image-upload [type="button"],
.cart-item-image-upload [type="submit"],
.cart-item-image-upload a.btn {
  border-radius: 12px !important;
}

/* Поле промокода */
.order-making input,
.order-making .form-control,
.order-making .input-group input,
.order-making .input-group .form-control {
  border-radius: 8px !important;
}

/* Кнопка «Применить» */
.order-making .input-group-append .btn,
.order-making .input-group button,
.order-making .input-group [type="button"],
.order-making .input-group [type="submit"],
.order-making .promo-code-block button,
.order-making .promo-code-block .btn {
  border-radius: 8px !important;
}

/* ==========================================================
   КОРЗИНА — компании при оформлении на юрлицо
   ========================================================== */

/* Отступ между карточками компаний */
.order-making .cart-payers-block > .rich-radio.select-small-background-block {
  margin-bottom: 14px !important;
}

.order-making .cart-payers-block > .rich-radio.select-small-background-block:last-child {
  margin-bottom: 0 !important;
}

/* Сама видимая плитка компании */
.order-making .cart-payers-block .rich-radio-label {
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  overflow: visible !important;
}

/* Активная плитка */
.order-making .cart-payers-block .rich-radio-label.checked {
  background: #F2F5F9 !important;
  border-color: #E5E7EB !important;
}

/* Убираем лишние рамки/фон у внешней обертки, чтобы ничего не наслаивалось */
.order-making .cart-payers-block .rich-radio.select-small-background-block {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Кнопка «Добавить новую компанию» */
.order-making .cart-change-radio-block .my-3 > label.btn.btn-secondary {
  border-radius: 12px !important;
}

/* Кнопка «Добавить» при добавлении новой компании */
.order-making .check-company-information-inn {
  border-radius: 12px !important;
}

/* Способы оплаты — скругление плиток */
.order-making .cart-change-radio-block .payment-method > label {
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

/* Активный способ оплаты */
.order-making .cart-change-radio-block .payment-method > label.checked {
  background: #F2F5F9 !important;
  border-color: #E5E7EB !important;
}

/* Блок «Внутренний баланс» */
.order-making .payment-internal-balance-block {
  border-radius: 16px !important;
}

/* Блок открытия коммерческого предложения */
.order-making .bg-gray-100.p-3.rounded {
  border-radius: 16px !important;
}
