.cookie-fab{
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10020;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    rgba(16,17,20,.92);
  color: #f3f3f3;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(0,0,0,.30),
    0 1px 0 rgba(255,255,255,.03) inset;
  backdrop-filter: blur(12px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.cookie-fab:hover{
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.35);
  box-shadow:
    0 20px 38px rgba(0,0,0,.34),
    0 1px 0 rgba(255,255,255,.03) inset;
}

.cookie-fab-icon{
  font-size: 1.35rem;
  line-height: 1;
}

.cookie-overlay{
  position: fixed;
  inset: 0;
  z-index: 10030;
  background: rgba(0,0,0,.50);
  backdrop-filter: blur(4px);
}

.cookie-panel[hidden],
.cookie-overlay[hidden]{
  display: none !important;
}

.cookie-panel{
  position: fixed;
  left: 20px;
  bottom: 90px;
  z-index: 10040;
  width: min(420px, calc(100vw - 32px));
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    rgba(16,17,20,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-top-right-radius: 26px;
  border-bottom-left-radius: 26px;
  box-shadow:
    0 24px 60px rgba(0,0,0,.36),
    0 1px 0 rgba(255,255,255,.03) inset;
  overflow: hidden;
}

.cookie-panel-head{
  position: relative;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cookie-panel-kicker{
  margin: 0 0 8px;
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #a9a9a9;
}

.cookie-panel-head h2{
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #f6f6f6;
}

.cookie-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: #eaeaea;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  transition: background .25s ease, transform .25s ease;
}

.cookie-close:hover{
  background: rgba(255,255,255,.10);
  transform: rotate(90deg);
}

.cookie-panel-body{
  padding: 20px 22px 22px;
}

.cookie-option + .cookie-option{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.cookie-option{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.cookie-option-text h3{
  margin: 0 0 8px;
  font-size: 1rem;
  color: rgba(124,58,237,.84);
  font-weight: 600;
}

.cookie-option-text p{
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #b8b8b8;
}

.cookie-option.is-locked .cookie-option-text h3{
  color: #f1f1f1;
}

.cookie-switch{
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-switch input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cookie-slider{
  position: relative;
  width: 54px;
  height: 30px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  transition: background .25s ease, border-color .25s ease;
}

.cookie-slider::before{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f3f3f3;
  box-shadow: 0 4px 12px rgba(0,0,0,.20);
  transition: transform .25s ease;
}

.cookie-switch input:checked + .cookie-slider{
  background: linear-gradient(135deg, rgba(255,45,85,.92), rgba(124,58,237,.84));
  border-color: rgba(255,255,255,.10);
}

.cookie-switch input:checked + .cookie-slider::before{
  transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider{
  opacity: .9;
  cursor: not-allowed;
}

.cookie-note{
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #c7c7c7;
  line-height: 1.7;
  font-size: 0.92rem;
}

.cookie-actions{
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions .btn{
  min-width: 150px;
}

body.cookie-panel-open{
  overflow: hidden;
}

.cookie-toast{
  position: fixed;
  left: 20px;
  bottom: 158px;
  z-index: 10050;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)),
    rgba(16,17,20,.96);
  color: #f2f2f2;
  box-shadow:
    0 18px 40px rgba(0,0,0,.32),
    0 1px 0 rgba(255,255,255,.03) inset;
  backdrop-filter: blur(12px);
  font-size: 0.94rem;
  line-height: 1.6;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .28s ease,
    transform .28s ease,
    visibility .28s ease;
}

.cookie-toast.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-toast.success{
  border-color: rgba(124,58,237,.28);
}

@media (max-width: 700px){
  .cookie-fab{
    left: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .cookie-panel{
    left: 16px;
    right: 16px;
    top: 16px;
    bottom: 16px;
    width: auto;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .cookie-panel-head{
    flex: 0 0 auto;
    padding: 20px 18px 14px;
  }

  .cookie-panel-body{
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
  }

  .cookie-option{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cookie-actions{
    flex-direction: column;
  }

  .cookie-actions .btn{
    width: 100%;
    min-width: 0;
  }

  .cookie-toast{
    left: 16px;
    right: 16px;
    bottom: 148px;
    max-width: none;
  }
}

@media (max-width: 900px){
  .cookie-fab{
    left: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}