/* =============================================================
   rp-upgrade.css — Оливковый шалфей + UI-апгрейд
   Версия: 1.2.0 | 2026-11-29
   ============================================================= */

/* ── Главная: убираем горизонтальный скролл ────────────────── */
html:has(body.home),
html:has(body.page-id-594),
body.home,
body.page-id-594 {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Главная страница: баннеры стопкой на мобильных ────────── */
/* Grok ставит is-not-stacked-on-mobile — переопределяем для телефонов */
@media (max-width: 781px) {
  .home .wp-block-columns.is-not-stacked-on-mobile,
  body.page-id-594 .wp-block-columns.is-not-stacked-on-mobile {
    flex-wrap: wrap !important;
  }
  .home .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column,
  body.page-id-594 .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


:root {
  --rp-sage:   #637356;
  --rp-sage-d: #4E5C43;
  --rp-sage-s: rgba(99,115,86,.18);
}

/* ── Вкладки и активные элементы → оливковый ───────────────── */
/* Используем body как префикс чтобы перебить inline-стили страницы */
body .rp-mega-tab.is-on,
body .rp-mega-tab.is-on:hover {
  background: var(--rp-sage) !important;
  color: #fff !important;
}
body .rp-mega-tab:hover {
  background: var(--rp-sage-d) !important;
  color: #fff !important;
}
/* Переключатель Для дома / Для гостиниц */
body .rp-mode.is-on {
  background: var(--rp-sage) !important;
  color: #fff !important;
  box-shadow: none !important;
}
/* Вкладки внутри калькулятора (Простыня, Пододеяльник и т.д.) */
body .rp-page button.rp-hb-tab.is-on {
  background: var(--rp-sage) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body .rp-hb-tab.is-on small { color: rgba(255,255,255,.75) !important; }
/* Чипы фильтров (Все дизайны / Новинки / Сатин…) */
body .rp-page button.rp-fchip.is-on {
  background: var(--rp-sage) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* Разделитель между вкладками */
body .rp-mega-tab:not(:last-child)::after {
  background: var(--rp-sage-d) !important;
}

/* ── БЛОК 1А: Кнопка «ХОЧУ ТАКОЙ» ─────────────────────────── */
.rp-page button.rp-dc-btn,
.rp-page button.rp-want {
  background: var(--rp-sage) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  min-height: 48px !important;
  transition: background .3s ease, transform .15s ease !important;
}
.rp-page button.rp-dc-btn:hover,
.rp-page button.rp-want:hover {
  background: var(--rp-sage-d) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-1px);
}

/* ── БЛОК 1Б: Бейдж «ХИТ» (оливковый) ─────────────────────── */
.rp-dc-badge[data-rp-hit],
.rp-dc-badge.is-hit {
  background: var(--rp-sage) !important;
  color: #fff !important;
}
/* «НОВИНКА» — остаётся чёрным, всё остальное тоже */

/* ── БЛОК 1В: Плавающая иконка подарка ─────────────────────── */
#rp-gift-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rp-sage);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  animation: rpPulse 4.5s ease-in-out infinite;
  padding: 0;
  transition: background .25s ease;
}
#rp-gift-btn:hover { background: var(--rp-sage-d); }
#rp-gift-btn svg   { width: 26px; height: 26px; fill: #fff; }

@keyframes rpPulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

#rp-gift-bubble {
  position: fixed;
  bottom: 86px;
  left: 16px;
  z-index: 998;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,.15);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
#rp-gift-bubble.is-on {
  opacity: 1;
  transform: translateY(0);
}

/* ── БЛОК 2: Слайдер отзывов ───────────────────────────────── */
#rp-reviews-slider {
  width: 100%;
}
.rp-rev-slide {
  display: none;
}
.rp-rev-slide.is-active {
  display: block;
  animation: rpRevIn .45s ease;
}
@keyframes rpRevIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.rp-rev-slide img {
  width: 100%;
  height: auto;
  display: block;
}
/* Навигация */
.rp-rev-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
}
.rp-rev-arrow {
  background: none;
  border: 1px solid #000;
  color: #000;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s, color .2s;
  flex-shrink: 0;
  padding: 0;
}
.rp-rev-arrow:hover {
  background: #000;
  color: #fff;
}
.rp-rev-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.rp-rev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.rp-rev-dot.is-active {
  background: var(--rp-sage);
  transform: scale(1.35);
}

/* Кнопка «Смотреть все отзывы» — сохраняем оригинальный стиль */
.rp-rev-teaser .rp-rev-teaser-btn,
span.rp-rev-teaser-btn {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: underline;
  color: inherit;
}


/* Плашка толкает фиксированный хедер вниз */
.tc-sticky-header .tc-header {
  top: var(--rp-topbar-h, 30px) !important;
}
/* Компенсируем увеличенный отступ контента */
.tc-sticky-header #tc-reset-margin-top {
  margin-top: calc(103px + var(--rp-topbar-h, 30px)) !important;
}


#rp-topbar {
  width: 100%;
  background: var(--rp-sage);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  text-align: center;
  padding: 7px 16px;
  box-sizing: border-box;
  overflow: hidden;
}
#rp-topbar .rp-topbar-track {
  display: inline-flex;
  gap: 60px;
  white-space: nowrap;
  animation: rpTopScroll 22s linear infinite;
}
#rp-topbar .rp-topbar-track:hover {
  animation-play-state: paused;
}
@keyframes rpTopScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#rp-topbar a { color: #fff; text-decoration: underline; }

/* ── БЛОК 6: Онлайн-консультант ────────────────────────────── */
#rp-chat-btn {
  position: fixed;
  bottom: 72px;
  right: 16px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  padding: 0;
  overflow: hidden;
  transition: box-shadow .25s;
}
#rp-chat-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,.25); }
#rp-chat-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
#rp-chat-btn .rp-online-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2ecc71;
  border: 2px solid #fff;
  animation: rpBlink 2s ease-in-out infinite;
}
@keyframes rpBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}
#rp-chat-btn .rp-chat-hint {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#rp-chat-btn:hover .rp-chat-hint { opacity: 1; }

/* Попап выбора канала */
#rp-chat-popup {
  position: fixed;
  bottom: 136px;
  right: 12px;
  z-index: 999;
  background: #fff;
  border: 1px solid #000;
  padding: 14px 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}
#rp-chat-popup.is-on { display: flex; }
.rp-chat-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: #111 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 8px 10px;
  border: 1px solid #ddd;
  transition: background .2s;
}
.rp-chat-opt:hover { background: #f5f5f5; }
.rp-chat-opt svg  { width: 22px; height: 22px; flex-shrink: 0; }

/* ── Долями: зелёная метка ─────────────────────────────────── */
.rp-dc-split::before {
  content: '✦ ';
  color: var(--rp-sage);
  font-weight: 700;
}

/* ── Адаптив ───────────────────────────────────────────────── */
@media (max-width: 600px) {
  #rp-topbar { font-size: 11px; padding: 6px 10px; }
  #rp-gift-btn, #rp-chat-btn { width: 48px; height: 48px; }
  #rp-gift-bubble { font-size: 12px; left: 10px; bottom: 76px; }
}

/* ── Скрываем лишние Grok-опции (v1.2.6) ──────────────────── */
/* "Добавить 2 запасные наволочки" — у нас есть свой раздел   */
label:has(#rp-extra-pil),
#rp-extra-pil-size { display: none !important; }
/* Текст "(доплата уточняется)" у опции молния — бесплатно    */
#rp-ups-zip { display: none !important; }
