/* Batster: баннер согласия на cookies. Подключается только при заданном GTM. */
.bts-banner[hidden], .bts-modal[hidden] { display: none !important; }

.bts-banner {
  position: fixed;
  left: 0; right: 0; bottom: 16px;
  margin: auto;
  width: calc(100% - 32px);
  max-width: 980px;
  box-sizing: border-box;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  background: #fff;
  color: #070707;
  box-shadow: 1px -1px 24px rgba(0, 0, 0, .18);
  z-index: 5000;
  font-size: 13px;
  line-height: 1.45;
}
.bts-banner__body { flex: 1 1 auto; min-width: 0; }
.bts-banner__title { margin: 0 0 2px; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.bts-banner__text { margin: 0; }
.bts-link { color: #e00021; text-decoration: underline; white-space: nowrap; }
.bts-banner__actions { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }

.bts-btn {
  appearance: none; -webkit-appearance: none;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid #070707; background: #fff; color: #070707;
  font: inherit; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.bts-btn:hover { background: #070707; color: #fff; }
.bts-btn--main { background: #070707; color: #fff; }
.bts-btn--main:hover { background: #e00021; border-color: #e00021; }
.bts-btn--ghost { border-color: transparent; text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.bts-btn:focus-visible, .bts-link:focus-visible, .bts-footer-link:focus-visible { outline: 3px solid rgba(224, 0, 33, .5); outline-offset: 2px; }

/* кнопка WhatsApp и подборщик не остаются под баннером */
body.bts-banner-on .bcw-root { bottom: calc(var(--bts-h, 0px) + 28px); }
body.bts-banner-on { padding-bottom: var(--bts-h, 0px); }

/* окно настроек */
.bts-modal {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(20, 20, 20, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; box-sizing: border-box;
}
.bts-modal__box {
  position: relative; background: #fff; color: #070707;
  width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  box-sizing: border-box; padding: 24px 24px 20px;
  font-size: 13px; line-height: 1.45;
}
.bts-modal__close {
  position: absolute; top: 6px; right: 8px; width: 44px; height: 44px;
  border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #070707;
}
.bts-modal .bts-banner__title { padding-right: 40px; font-size: 17px; }
.bts-modal .bts-banner__text { margin-bottom: 8px; }
.bts-modal__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }

.bts-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid #ececec; cursor: pointer;
}
.bts-row__text { display: flex; flex-direction: column; gap: 2px; }
.bts-row__text small { color: #5c5c5c; font-size: 12px; }
.bts-row__fixed { flex: 0 0 auto; font-size: 12px; color: #5c5c5c; white-space: nowrap; }
.bts-switch { position: relative; flex: 0 0 auto; width: 48px; height: 28px; }
.bts-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.bts-switch i { position: absolute; inset: 0; border-radius: 28px; background: #c9c9c9; transition: background .2s; }
.bts-switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.bts-switch input:checked + i { background: #070707; }
.bts-switch input:checked + i::after { transform: translateX(20px); }
.bts-switch input:focus-visible + i { outline: 3px solid rgba(224, 0, 33, .5); outline-offset: 2px; }

body.bts-modal-on { overflow: hidden; }

.bts-footer-link-wrap { text-align: center; padding: 6px 0 14px; }
.bts-footer-link { color: inherit; font-size: 13px; text-decoration: underline; opacity: .8; display: inline-block; padding: 12px 8px; }
.bts-footer-link:hover { opacity: 1; }

@media (max-width: 767px) {
  .bts-banner {
    bottom: 0; width: 100%; max-width: none;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 10px 12px 10px; font-size: 12px; line-height: 1.4;
  }
  .bts-banner__title { display: none; }
  .bts-banner__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .bts-btn { padding: 8px 6px; min-height: 44px; font-size: 12px; white-space: normal; line-height: 1.2; }
  .bts-btn--ghost { padding-left: 4px; padding-right: 4px; }
  body.bts-banner-on .bcw-root { bottom: calc(var(--bts-h, 0px) + 12px); right: 12px; }
  .bts-modal { padding: 0; align-items: flex-end; }
  .bts-modal__box { max-width: none; max-height: 92vh; padding: 18px 16px 16px; }
  .bts-modal__actions { display: grid; grid-template-columns: 1fr; }
}
