/* SANCOS Contact Premium V1.0 — изолированный CSS, без зависимостей от SkyShop */
.scw,.scw *,.scw *::before,.scw *::after{box-sizing:border-box}
.scw{position:fixed;right:24px;bottom:26px;z-index:10020;width:max-content;max-width:calc(100vw - 32px);font-family:inherit;font-size:14px;line-height:1.45;color:#181818;text-transform:none;letter-spacing:normal;-webkit-font-smoothing:antialiased}
.scw [hidden]{display:none!important}
.scw__toggle{display:flex;align-items:center;justify-content:center;gap:11px;min-height:56px;padding:0 23px!important;background:#171717!important;color:#fff!important;border:1px solid #171717!important;border-radius:100px!important;cursor:pointer!important;box-shadow:0 12px 35px rgba(13,13,13,.2);font-family:inherit!important;line-height:1.2!important;font-size:13px!important;font-weight:600!important;letter-spacing:.015em!important;text-transform:none!important;white-space:nowrap;transition:transform .2s ease,background .2s ease,box-shadow .2s ease;user-select:none}
.scw__toggle:hover{background:#303030!important;box-shadow:0 16px 35px rgba(13,13,13,.24);transform:translateY(-2px)}
.scw__toggle:active{transform:translateY(0)}
.scw__toggle:focus-visible,.scw__close:focus-visible,.scw__channel:focus-visible{outline:3px solid #7d94ff!important;outline-offset:3px!important}
.scw__toggle svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.scw__panel{position:absolute;right:0;bottom:calc(100% + 15px);width:340px;max-width:calc(100vw - 32px);max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain;padding:0!important;background:#fff!important;border:1px solid #e9e9e6;border-radius:20px!important;box-shadow:0 20px 75px rgba(26,26,26,.16),0 4px 12px rgba(26,26,26,.05);color:#181818!important;text-align:left;animation:scw-appear .18s ease both}
@keyframes scw-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.scw__head{position:relative;padding:24px 24px 17px;background:#fff}
.scw__overline{display:flex;align-items:center;gap:8px;margin:0 35px 15px 0;color:#7b7b76;font-family:inherit;font-size:10px;line-height:1.2;font-weight:700;letter-spacing:.15em}
.scw__overline-dot{width:3px;height:3px;background:#b7b4ad;border-radius:50%}
.scw__title{display:block;margin:0 30px 9px 0!important;padding:0!important;color:#181818!important;font-size:27px!important;font-weight:600!important;line-height:1.12!important;letter-spacing:-.04em!important;text-transform:none!important}
.scw__subtitle{margin:0!important;color:#797975!important;font-size:13px!important;line-height:1.55!important;letter-spacing:normal!important}
.scw__close{position:absolute;top:20px;right:18px;display:flex;align-items:center;justify-content:center;width:31px;height:31px;padding:6px!important;border:0!important;border-radius:50%!important;background:#f5f5f3!important;color:#62625f!important;cursor:pointer!important;transition:background .2s ease}
.scw__close:hover{background:#e8e8e5!important}
.scw__close svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round}
.scw__channels{display:grid;gap:6px;padding:0 13px 14px}
.scw__channel{display:flex!important;align-items:center;gap:13px;min-width:0;min-height:65px;padding:9px 11px!important;text-decoration:none!important;border:1px solid transparent!important;border-radius:12px!important;background:#f7f7f5!important;color:#181818!important;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.scw__channel:hover{background:#efefec!important;border-color:#e6e6e1!important;transform:translateX(2px)}
.scw__brand{display:flex;align-items:center;justify-content:center;flex:none;width:43px;height:43px;border-radius:13px;color:#fff!important}
.scw__brand svg{width:25px;height:25px;display:block}
/* SANCOS V1.2.0: стиль телефонного канала, без шрифтов и внешних иконок. */
.scw__brand--phone{background:#242424}
.scw__brand--telegram{background:#229ed9}
.scw__brand--whatsapp{background:#24ca67}
.scw__brand--max{background:linear-gradient(145deg,#00bfff -18%,#471aff 50%,#9500ff 115%)}
.scw__channel-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}
.scw__channel-title{font-size:14px!important;line-height:1.3!important;font-weight:650!important;color:#171717!important;letter-spacing:normal!important}
.scw__channel-caption{font-size:11px!important;line-height:1.35!important;color:#8b8b87!important;letter-spacing:normal!important}
.scw__arrow{width:17px;height:17px;flex:none;fill:none;stroke:#aaa9a4;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.scw__foot{display:flex;align-items:center;gap:8px;border-top:1px solid #ecece9;padding:14px 23px 17px;background:#fbfbfa;color:#8b8b85;font-size:11px;line-height:1.4}
.scw__status-dot{width:6px;height:6px;flex:none;border-radius:50%;background:#b8b8b0}
@media(max-width:767px){.scw{right:16px;bottom:calc(20px + env(safe-area-inset-bottom,0px))}.scw__toggle{min-height:54px;padding:0 19px!important}.scw__panel{width:calc(100vw - 32px);bottom:calc(100% + 12px)}.scw__head{padding-top:23px}}
/*
 * SANCOS Contact Premium V1.1.1 — мобильное исправление SkyShop.
 * В шаблоне нижняя панель .header__actions-mobile закреплена снизу
 * (высота около 70–75 px). Поднимаем ТОЛЬКО виджет над ней с зазором.
 * Breakpoint 991px совпадает с .desktop__hidden в SkyShop.
 * CSS-only: не добавляем JS, запросы к серверу или вычисления высоты.
 */
@media (max-width: 991px) {
  .scw {
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }
  /* SANCOS: раскрытое окно не уходит за верхнюю границу короткого экрана. */
  .scw__panel {
    max-height: calc(100vh - 185px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 185px - env(safe-area-inset-bottom, 0px));
  }
}
/*
 * SANCOS Contact Premium V1.1.3 — мобильная круглая кнопка по умолчанию.
 * В SkyShop мобильная навигация включается при ширине <= 991 px.
 * Сохраняем отступ V1.1.1 над нижней панелью.
 * В отличие от V1.1.2, не используем sessionStorage и дополнительный
 * крестик на кнопке. Единственный крестик расположен внутри открытого окна.
 * CSS-only: без запросов к серверу, без JS для определения ширины экрана.
 */
@media (max-width: 991px) {
  .scw__toggle {
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    gap: 0;
    padding: 0!important;
    border-radius: 50%!important;
  }
  .scw__toggle > span { display: none!important; }
  .scw__toggle .scw__toggle-chat { display: block; }
}
@media(prefers-reduced-motion:reduce){.scw__panel{animation:none}.scw__toggle,.scw__close,.scw__channel{transition:none}}
