.bzc-shell {
  --bzc-red: #c90000;
  --bzc-red-dark: #9f0000;
  --bzc-ink: #211b18;
  --bzc-muted: #786f69;
  --bzc-cream: #fff8ef;
  --bzc-line: #ede5de;
  position: fixed;
  z-index: 2147481750;
  right: 20px;
  bottom: 18px;
  width: min(376px, calc(100vw - 28px));
  font-family: Montserrat, Arial, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
  -webkit-font-smoothing: antialiased;
}

.bzc-shell.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.bzc-shell *,
.bzc-shell *::before,
.bzc-shell *::after {
  box-sizing: border-box;
}

.bzc-launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-left: auto;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(145deg, #29211d, #181310);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 44px rgba(33, 21, 15, .28), 0 4px 12px rgba(33, 21, 15, .12);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.bzc-launcher:hover,
.bzc-launcher:focus-visible,
.bzc-shell.is-open .bzc-launcher {
  background: linear-gradient(145deg, #342924, #1c1613);
  box-shadow: 0 19px 52px rgba(33, 21, 15, .34), 0 4px 14px rgba(33, 21, 15, .14);
  transform: translateY(-2px);
  outline: none;
}

.bzc-launcher__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ed231a, var(--bzc-red-dark));
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .2), 0 8px 22px rgba(201, 0, 0, .34);
}

.bzc-launcher__icon svg {
  width: 26px;
  height: 26px;
}

.bzc-launcher__icon i {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border: 2px solid #251d19;
  border-radius: 50%;
  background: #45d977;
  box-shadow: 0 0 0 4px rgba(69, 217, 119, .13);
  animation: bzc-online-pulse 2.4s ease-in-out infinite;
}

.bzc-launcher__copy {
  display: grid;
  gap: 1px;
  min-width: 112px;
  text-align: left;
}

.bzc-launcher__copy small {
  color: rgba(255, 255, 255, .57);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
}

.bzc-launcher__copy strong {
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.bzc-launcher__chevron {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, .55);
  transition: transform .25s ease;
}

.bzc-launcher__chevron svg {
  width: 18px;
  height: 18px;
}

.bzc-shell.is-open .bzc-launcher__chevron {
  transform: rotate(-90deg);
}

.bzc-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 13px);
  width: 100%;
  max-height: min(680px, calc(100dvh - 112px));
  overflow: hidden auto;
  border: 1px solid rgba(50, 35, 27, .1);
  border-radius: 24px;
  background: #fff;
  color: var(--bzc-ink);
  box-shadow: 0 30px 90px rgba(36, 23, 17, .28), 0 8px 22px rgba(36, 23, 17, .09);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.975);
  transform-origin: right bottom;
  transition: visibility 0s linear .24s, opacity .2s ease, transform .28s cubic-bezier(.2, .82, .25, 1);
  scrollbar-width: thin;
  scrollbar-color: #d8cec6 transparent;
}

.bzc-shell.is-open .bzc-panel {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.bzc-panel__head {
  position: relative;
  overflow: hidden;
  padding: 16px 52px 15px 20px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 192, 77, .18), transparent 32%),
    radial-gradient(circle at 3% 115%, rgba(201, 0, 0, .3), transparent 35%),
    linear-gradient(145deg, #2b221e, #15110f);
  color: #fff;
}

.bzc-panel__head::after {
  content: "";
  position: absolute;
  right: -31px;
  bottom: -42px;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, .025), 0 0 0 46px rgba(255, 255, 255, .018);
}

.bzc-panel__online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
  font-size: 8px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bzc-panel__online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45d977;
  box-shadow: 0 0 0 4px rgba(69, 217, 119, .12);
}

.bzc-panel__head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 820;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.bzc-panel__head p {
  max-width: 275px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
  line-height: 1.38;
}

.bzc-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.bzc-close:hover,
.bzc-close:focus-visible {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transform: rotate(5deg);
  outline: none;
}

.bzc-close svg {
  width: 17px;
  height: 17px;
}

.bzc-panel__body {
  padding: 20px;
  background: linear-gradient(180deg, #fff 0%, #fffcf9 100%);
}

.bzc-section + .bzc-section {
  margin-top: 20px;
}

.bzc-section__label {
  margin: 0 0 9px 2px;
  color: #968b84;
  font-size: 9px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bzc-general,
.bzc-store__channels {
  display: grid;
  gap: 8px;
}

.bzc-general {
  grid-template-columns: 1fr 1fr;
}

.bzc-general .bzc-channel {
  min-height: 74px;
  padding: 10px;
}

.bzc-general .bzc-channel__arrow {
  display: none;
}

.bzc-channel {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--bzc-line);
  border-radius: 15px;
  background: #fff;
  color: var(--bzc-ink) !important;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(50, 34, 26, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.bzc-channel:hover,
.bzc-channel:focus-visible {
  border-color: #ddd0c6;
  background: #fffdfb;
  box-shadow: 0 8px 18px rgba(50, 34, 26, .08);
  transform: translateY(-1px);
  outline: none;
}

.bzc-channel__icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border-radius: 12px;
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 6px 14px rgba(30, 25, 22, .12);
}

.bzc-channel__icon svg {
  width: 22px;
  height: 22px;
}

.bzc-channel--telegram .bzc-channel__icon {
  background: linear-gradient(145deg, #38aff0, #188bc9);
}

.bzc-channel--vk .bzc-channel__icon {
  background: linear-gradient(145deg, #2688eb, #156ac1);
}

.bzc-channel--max .bzc-channel__icon {
  background: linear-gradient(145deg, #7358ff, #456bf2 55%, #24a5de);
}

.bzc-channel--whatsapp .bzc-channel__icon {
  background: linear-gradient(145deg, #38d477, #15a954);
}

.bzc-channel--onlinechat .bzc-channel__icon {
  background: linear-gradient(145deg, #f0b327, #d87913);
}

.bzc-channel__copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.bzc-channel__copy strong {
  overflow: hidden;
  color: var(--bzc-ink);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bzc-channel__copy small {
  overflow: hidden;
  color: var(--bzc-muted);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bzc-channel__arrow {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: #b4aaa4;
  transition: transform .2s ease, color .2s ease;
}

.bzc-channel__arrow svg {
  width: 16px;
  height: 16px;
}

.bzc-channel:hover .bzc-channel__arrow {
  color: var(--bzc-red);
  transform: translateX(2px);
}

.bzc-channel.is-unset {
  cursor: default;
  opacity: .63;
}

.bzc-channel.is-unset .bzc-channel__icon {
  filter: saturate(.45);
}

.bzc-channel.is-nudged {
  animation: bzc-nudge .38s ease;
}

.bzc-stores {
  display: grid;
  gap: 10px;
}

.bzc-store {
  padding: 13px;
  border: 1px solid #eadfd7;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 207, 90, .12), transparent 36%),
    var(--bzc-cream);
}

.bzc-store__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.bzc-store__number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background: #2a211d;
  color: #ffcf5a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
}

.bzc-store__head > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bzc-store__head strong {
  color: var(--bzc-ink);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.25;
}

.bzc-store__head small {
  color: var(--bzc-muted);
  font-size: 9px;
  line-height: 1.3;
}

.bzc-store__channels {
  grid-template-columns: 1fr 1fr;
}

.bzc-store__channels .bzc-channel {
  gap: 8px;
  padding: 7px;
  border-color: rgba(111, 92, 80, .13);
}

.bzc-store__channels .bzc-channel__icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  border-radius: 10px;
}

.bzc-store__channels .bzc-channel__icon svg {
  width: 19px;
  height: 19px;
}

.bzc-store__channels .bzc-channel__arrow {
  display: none;
}

.bzc-store__channels .bzc-channel__copy strong {
  font-size: 10px;
}

.bzc-store__channels .bzc-channel__copy small {
  font-size: 7px;
}

.bzc-online-chat .bzc-channel {
  min-height: 56px;
  border-color: #eadfd3;
  background: linear-gradient(135deg, #fffaf1, #fff);
}

.bzc-panel__note {
  position: relative;
  margin: 15px 0 0;
  padding-left: 15px;
  color: #948982;
  font-size: 8px;
  line-height: 1.4;
  text-align: center;
}

.bzc-panel__note::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #45d977;
}

body.gq-lock .bzc-shell,
body:has(.gvp-root.is-open) .bzc-shell {
  opacity: 0;
  pointer-events: none;
}

/* Стандартная кнопка «Наверх» из шаблона Intec/Битрикс. */
.c-widget-navigation-button-top,
[id*="intec-universe-main-widget-navigation-button-top"] {
  display: none !important;
}

@keyframes bzc-online-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(69, 217, 119, .12); }
  50% { box-shadow: 0 0 0 7px rgba(69, 217, 119, .04); }
}

@keyframes bzc-nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-3px); }
  65% { transform: translateX(3px); }
}

@media (max-width: 767px) {
  .bzc-shell {
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    width: min(366px, calc(100vw - 24px));
  }

  .bzc-panel {
    max-height: calc(100dvh - 172px - env(safe-area-inset-bottom, 0px));
    border-radius: 22px;
  }

  .bzc-launcher {
    width: 56px;
    height: 56px;
    min-height: 0;
    padding: 6px;
    border-radius: 18px;
  }

  .bzc-launcher__copy,
  .bzc-launcher__chevron {
    display: none;
  }

  .bzc-launcher__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
  }

  .bzc-launcher__icon svg {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 389px) {
  .bzc-panel__head {
    padding: 15px 48px 14px 16px;
  }

  .bzc-panel__head h2 {
    font-size: 20px;
  }

  .bzc-panel__body {
    padding: 15px;
  }

  .bzc-general {
    grid-template-columns: 1fr;
  }

  .bzc-general .bzc-channel {
    min-height: 58px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .bzc-shell,
  .bzc-panel,
  .bzc-launcher,
  .bzc-channel,
  .bzc-close,
  .bzc-launcher__chevron {
    transition: none;
  }

  .bzc-launcher__icon i,
  .bzc-channel.is-nudged {
    animation: none;
  }
}
