.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));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  color: #17324d;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  padding: 22px;
  z-index: 2147483000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

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

.cookie-title {
  margin: 0 0 10px;
  color: #0f2f4a;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-text {
  margin: 0;
  color: #4b5563;
  font-size: 15px;
}

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

.cookie-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.cookie-btn {
  appearance: none;
  width: 100%;
  min-height: 44px;
  border: 1px solid #d7e3ea;
  border-radius: 999px;
  background: #ffffff;
  color: #17324d;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.cookie-btn.accept {
  border-color: #0EA5E9;
  background: linear-gradient(135deg, #0EA5E9, #FACC15);
  color: #ffffff;
}

.cookie-btn.reject,
.cookie-btn.manage {
  background: #f8fbfd;
}

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

.cookie-back-btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid #d7e3ea;
  border-radius: 50%;
  background: #ffffff;
  color: #17324d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cookie-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid #eef4f7;
}

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

.toggle-desc {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

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

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

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d7e3ea;
  cursor: pointer;
  transition: background 0.2s ease;
}

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

.toggle-switch input:checked + .slider {
  background: #3F6212;
}

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

.toggle-switch input:disabled + .slider {
  background: #0EA5E9;
  cursor: not-allowed;
}

.cookie-save {
  margin-top: 10px;
}

.cookie-icon {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9, #3F6212);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  z-index: 2147482999;
  font-size: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

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

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

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