
.cookie-banner {
  position: fixed;
  right: 18px; bottom: 18px; left: auto;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  padding: 0;
  pointer-events: none;
  transform: translateY(24px) scale(.97);
  opacity: 0;
  filter: blur(4px);
  transition:
    transform .55s cubic-bezier(.16,1,.3,1),
    opacity .45s ease,
    filter .45s ease;
  will-change: transform, opacity, filter;
}
.cookie-banner.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.cookie-banner.is-leaving {
  transition:
    transform .5s cubic-bezier(.4,0,.2,1),
    opacity .38s ease .04s,
    filter .38s ease;
  transform: translateY(24px) scale(.94);
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}

.cookie-banner__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius, 14px);
  background: #0A0C11;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow, 0 20px 60px rgba(0,0,0,.45));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.cookie-banner.is-leaving .cookie-banner__inner {
  transform: scale(.985);
}

.cookie-banner__icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#038184,#1E3A5F);
  box-shadow: 0 0 18px rgba(21,106,134,.45);
}
.cookie-banner__icon svg { width: 19px; height: 19px; }

.cookie-banner__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner__title {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text, #eefcff);
}

.cookie-banner__text {
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #9BA1AE;
}
.cookie-banner__text a {
  color: #E2E2E5;
  text-decoration: none;
  transition: color .15s ease;
}
.cookie-banner__text a:hover {
  color: #E2E2E5;
  text-decoration: underline;
}

.cookie-banner__more {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Rubik', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text, #eefcff);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: .9;
  transition: opacity .15s ease, color .15s ease;
}
.cookie-banner__more:hover { opacity: 1; color: var(--accent, #75fff0); }
.cookie-banner__chevron {
  width: 10px; height: 7px;
  transition: transform .25s ease;
}
.cookie-banner__more[aria-expanded="true"] .cookie-banner__chevron {
  transform: rotate(180deg);
}

.cookie-banner__details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .28s ease, transform .28s ease;
}
.cookie-banner__details.is-open {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner__details-inner {
  padding-top: 8px;
  font-family: 'Rubik', sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9BA1AE;
}
.cookie-banner__details a {
  color: #E2E2E5;
  text-decoration: none;
}
.cookie-banner__details a:hover {
  color: #E2E2E5;
  text-decoration: underline;
}

.cookie-banner__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: #E2E2E5;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.cookie-banner__close svg { width: 11px; height: 11px; }
.cookie-banner__close:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--border-default);
  color: #E2E2E5;
  transform: rotate(90deg);
}
.cookie-banner__inner { position: relative; }

.cookie-banner__category {
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-banner__details-inner > .cookie-banner__category:first-of-type {
  margin-top: 4px;
}
.cookie-banner__category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-banner__category-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text, #eefcff);
}
.cookie-banner__category-desc {
  margin-top: 4px;
  font-family: 'Rubik', sans-serif;
  font-size: 11.5px;
  line-height: 1.45;
  color: #9BA1AE;
  opacity: .85;
}

.cookie-toggle {
  flex: none;
  position: relative;
  display: inline-flex;
  cursor: pointer;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.cookie-toggle__track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: rgba(120,140,160,.28);
  border: 1px solid rgba(120,140,160,.2);
  display: block;
  position: relative;
  transition: background .27s cubic-bezier(.4,0,.2,1), border-color .27s ease;
}
.cookie-toggle__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #E2E2E5;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition:
    transform .27s cubic-bezier(.34,1.56,.64,1),
    width .25s cubic-bezier(.34,1.56,.64,1),
    background .3s ease,
    box-shadow .3s ease;
}
.cookie-toggle input:active + .cookie-toggle__track .cookie-toggle__thumb {
  width: 20px;
}
.cookie-toggle input:checked:active + .cookie-toggle__track .cookie-toggle__thumb {
  transform: translateX(14px);
}
.cookie-toggle input:checked + .cookie-toggle__track {
  background: linear-gradient(135deg, #038184, #1E3A5F);
  border-color: transparent;
}
.cookie-toggle input:checked + .cookie-toggle__track .cookie-toggle__thumb {
  transform: translateX(16px);
  background: #E2E2E5;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.cookie-toggle input:focus-visible + .cookie-toggle__track {
  transition: background .27s cubic-bezier(.4,0,.2,1), border-color .27s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 2px rgba(117,255,240,.45);
}
.cookie-toggle--locked {
  cursor: default;
}
.cookie-toggle--locked input { cursor: default; }
.cookie-toggle--locked .cookie-toggle__track { opacity: .75; }

.cookie-banner__save {
  width: 100%;
  margin-top: 6px;
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  padding: 9px 14px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--text, #eefcff);
  background: #1C202B;
  border: 1px solid var(--border-default);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.cookie-banner__save:hover {
  background: #1C202B;
  border-color: var(--border-default);
}
.cookie-banner__save:active { transform: scale(.97); }
.cookie-banner__save:disabled {
  opacity: .5;
  pointer-events: none;
}

.cookie-banner__actions {
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner__btn {
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  flex: 1 1 0;
  padding: 9px 14px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.cookie-banner__btn:active { transform: scale(.96); }
.cookie-banner__btn:focus,
.cookie-banner__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(117,255,240,.45);
}

@keyframes cookieBtnPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(.9); }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.cookie-banner__btn.is-chosen {
  animation: cookieBtnPulse .42s cubic-bezier(.34,1.56,.64,1);
}
.cookie-banner__btn.is-faded {
  opacity: .35;
  transform: scale(.96);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.cookie-banner__btn--accept {
  background: #1C202B;
  color: #E2E2E5;
  border-color: var(--border-default);
}
.cookie-banner__btn--accept:hover {
  border-color: var(--border-default);
}

.cookie-banner__btn--decline {
  background: #1C202B;
  color: #E2E2E5;
  border-color: var(--border-default);
}
.cookie-banner__btn--decline:hover {
  border-color: var(--border-default);
}


/* ── Заглушка для заблокированных встраиваний (YouTube, Discord Widget,
   Google Translate и т.п.) до согласия на cookie — см. consent_gate.js ── */
.consent-embed {
  position: relative;
}
.consent-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.consent-embed--blocked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: rgba(4,14,26,.85);
  border: 1px dashed rgba(119,255,237,.25);
  border-radius: 12px;
}
.consent-embed__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.consent-embed__text {
  margin: 0;
  font-size: 13px;
  color: var(--muted, #a7c4d8);
  max-width: 320px;
}
.consent-embed__btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid rgba(119,255,237,.35);
  background: rgba(117,255,240,.1);
  color: var(--accent, #75fff0);
  font-family: 'Rubik', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}
.consent-embed__btn:hover {
  background: rgba(117,255,240,.2);
  box-shadow: 0 0 14px rgba(117,255,240,.15);
}
