.cookie-banner-center {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(430px, calc(100% - 3rem));
  padding: 1.55rem;
  color: #f8fafc;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.96), rgba(4, 120, 87, 0.94) 54%, rgba(34, 211, 238, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.35);
  z-index: 99999;
  font-family: Arial, Helvetica, sans-serif;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.8rem;
}

.cookie-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.cookie-title {
  color: #ffffff;
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
}

.cookie-text {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.1rem;
  font-size: 0.96rem;
  line-height: 1.55;
}

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

.cookie-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cookie-btn {
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.cookie-btn.accept {
  background: #ffffff;
  color: #047857;
  border-color: #ffffff;
}

.cookie-btn.reject,
.cookie-btn.manage {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
}

.cookie-btn.manage {
  grid-column: span 2;
}

.cookie-save {
  width: 100%;
  margin-top: 1rem;
}

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

.cookie-back-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

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

.toggle-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.toggle-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.toggle-switch {
  position: relative;
  width: 54px;
  height: 30px;
  flex: 0 0 54px;
}

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

.toggle-switch .slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.42);
  transition: 0.25s ease;
}

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

.toggle-switch input:checked + .slider {
  background: #22D3EE;
}

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

.cookie-icon {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, #1D4ED8, #047857, #22D3EE);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(29, 78, 216, 0.32);
  z-index: 99998;
  font-size: 1.6rem;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-icon.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cookie-icon:hover {
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 575px) {
  .cookie-banner-center {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    padding: 1.2rem;
  }

  .cookie-buttons {
    grid-template-columns: 1fr;
  }

  .cookie-btn.manage {
    grid-column: span 1;
  }

  .cookie-icon {
    left: 1rem;
    bottom: 1rem;
  }
}
