/* SWIM&GYM — стандартный баннер согласия на cookie.
   Самодостаточный компонент: разметку строит cookie-consent.js. */
.sgcc {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 100050;
  width: min(430px, calc(100vw - 40px));
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 40, 80, 0.16);
  border: 1px solid rgba(19, 22, 20, 0.06);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #0B1F33;
  padding: 22px;
  display: none;
}
.sgcc.is-visible { display: block; }
.sgcc__title { font-weight: 700; font-size: 16px; margin: 0 0 8px; }
.sgcc__text { margin: 0 0 14px; color: #2A3440; }
.sgcc__text a { color: #1557C0; font-weight: 600; text-decoration: underline; }
.sgcc__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sgcc__btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.sgcc__btn--accept { background: #1E6BF2; color: #fff; }
.sgcc__btn--accept:hover { background: #1557C0; }
.sgcc__btn--necessary { background: #fff; color: #0B1F33; border: 1px solid rgba(11,31,51,.12); }
.sgcc__btn--necessary:hover { border-color: #1E6BF2; color: #1557C0; }
.sgcc__btn--settings { background: none; color: #5A6570; text-decoration: underline; padding: 11px 8px; }
.sgcc__btn--settings:hover { color: #1557C0; }
.sgcc__panel { display: none; margin: 4px 0 14px; border-top: 1px solid #F3F7FB; padding-top: 12px; }
.sgcc.is-settings .sgcc__panel { display: block; }
.sgcc.is-settings .sgcc__text { display: none; }
.sgcc__row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.sgcc__row-info { flex: 1; }
.sgcc__row-title { font-weight: 700; font-size: 13.5px; }
.sgcc__row-desc { color: #5A6570; font-size: 12.5px; margin-top: 2px; }
.sgcc__switch { position: relative; flex: 0 0 auto; width: 40px; height: 22px; margin-top: 2px; }
.sgcc__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sgcc__slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: #C5CDD6; transition: 0.2s; pointer-events: none;
}
.sgcc__slider:before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px;
  border-radius: 50%; background: #fff; transition: 0.2s;
}
.sgcc__switch input:checked + .sgcc__slider { background: #1E6BF2; }
.sgcc__switch input:checked + .sgcc__slider:before { transform: translateX(18px); }
.sgcc__switch input:disabled + .sgcc__slider { background: #93B8F5; opacity: 0.7; }
.sgcc__close {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
  background: none; border: 0; cursor: pointer; color: #5A6570;
  display: grid; place-items: center; border-radius: 50%;
}
.sgcc__close:hover { background: #F3F7FB; color: #0B1F33; }
@media (max-width: 640px) {
  .sgcc { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px; }
  .sgcc__actions { flex-direction: column; }
  .sgcc__btn { width: 100%; }
}

@media (max-width: 900px) {
  .sgcc { bottom: 84px; } /* above mobile sticky CTA */
}
