.cookie-banner-center,
.cookie-banner-center * {
  box-sizing: border-box;
}

.cookie-banner-center {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid rgba(247, 231, 206, 0.38);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(32, 17, 36, 0.98), rgba(4, 120, 87, 0.96)),
    #201124;
  color: #fff8ef;
  box-shadow: 0 26px 70px rgba(32, 17, 36, 0.34);
  font-family: inherit;
  line-height: 1.45;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cookie-title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cookie-text {
  margin: 0 0 16px;
  color: rgba(255, 248, 239, 0.88);
  font-size: 14px;
}

.cookie-text a {
  color: #5eead4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cookie-btn:hover,
.cookie-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.cookie-btn.accept {
  background: linear-gradient(90deg, #86198f, #047857, #5eead4);
  box-shadow: 0 12px 26px rgba(4, 120, 87, 0.28);
}

.cookie-btn.reject,
.cookie-btn.manage {
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ef;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.cookie-settings-header .cookie-title {
  margin-bottom: 0;
}

.cookie-back-btn {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ef;
  font-weight: 700;
  cursor: pointer;
}

.cookie-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(247, 231, 206, 0.18);
}

.cookie-toggle-copy strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.cookie-toggle-copy span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 248, 239, 0.76);
  font-size: 13px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  min-width: 52px;
  height: 30px;
  margin: 0;
}

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

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

.slider:before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #ffffff;
  transition: 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.toggle-switch input:checked + .slider {
  background: linear-gradient(90deg, #86198f, #047857, #5eead4);
}

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

.toggle-switch input:disabled + .slider {
  cursor: not-allowed;
  opacity: 0.82;
}

.cookie-save {
  width: 100%;
  margin-top: 8px;
}

.cookie-icon {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #86198f, #047857, #5eead4);
  color: #ffffff;
  box-shadow: 0 14px 38px rgba(4, 120, 87, 0.24);
  font-size: 24px;
  cursor: pointer;
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.cookie-icon:focus-visible {
  outline: 3px solid #f7e7ce;
  outline-offset: 3px;
}

@media (max-width: 575px) {
  .cookie-banner-center {
    right: 16px;
    bottom: 16px;
    padding: 16px;
    border-radius: 20px;
  }

  .cookie-buttons,
  .cookie-btn {
    width: 100%;
  }

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