.cookie-banner-center {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  width: min(460px, calc(100% - 48px));
  max-width: 460px;
  padding: 18px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  transform: translateY(24px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner-center.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-header,
.cookie-settings-header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cookie-text {
  margin: 0 0 16px;
  color: #B7C8D9;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-text a {
  color: #FACC15;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.cookie-btn:hover,
.cookie-icon:hover,
.cookie-back-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn:focus-visible,
.cookie-icon:focus-visible,
.cookie-back-btn:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.55);
  outline-offset: 3px;
}

.cookie-btn.accept {
  background: #FACC15;
  color: #020617;
  box-shadow: 0 12px 32px rgba(250, 204, 21, 0.18);
}

.cookie-btn.reject {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cookie-btn.manage {
  background: #0EA5E9;
  color: #ffffff;
}

.cookie-settings-panel[hidden],
.cookie-main[hidden] {
  display: none;
}

.cookie-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.toggle-title {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.toggle-desc {
  margin-top: 3px;
  color: #B7C8D9;
  font-size: 13px;
  line-height: 1.45;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: 0.2s ease;
}

.toggle-switch .slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #ffffff;
  transition: 0.2s ease;
}

.toggle-switch input:checked + .slider {
  background: linear-gradient(135deg, #FACC15, #0EA5E9);
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(20px);
}

.cookie-back-btn {
  width: 34px;
  height: 34px;
  margin: 0 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.cookie-icon {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9998;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, #020617, #0EA5E9);
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-icon.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 575px) {
  .cookie-banner-center {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-icon {
    left: 14px;
    bottom: 14px;
  }
}