.cookie-banner-center,
.cookie-icon {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.cookie-banner-center {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  z-index: 99999;
  color: #082451;
  background: linear-gradient(145deg, rgba(248,253,255,.98), rgba(229,231,235,.96));
  border: 1px solid rgba(198,161,91,.45);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(8,36,81,.24), inset 0 1px 0 rgba(255,255,255,.85);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  pointer-events: none;
  transition: opacity .26s ease, transform .26s ease;
}

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

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

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

.cookie-settings-header {
  justify-content: flex-start;
}

.cookie-title {
  margin: 0;
  color: #082451;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -.02em;
}

.cookie-text {
  margin: 0;
  color: #415168;
  font-size: 14px;
  line-height: 1.65;
}

.cookie-text a {
  color: #0F52BA;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,82,186,.32);
}

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

.cookie-btn,
.cookie-back-btn,
.cookie-icon {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.cookie-btn {
  width: 100%;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.cookie-btn.accept {
  color: #F8FDFF;
  background: linear-gradient(135deg, #0F52BA 0%, #567cc9 48%, #C6A15B 100%);
  box-shadow: 0 14px 30px rgba(15,82,186,.25);
}

.cookie-btn.reject,
.cookie-btn.manage {
  color: #082451;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(15,82,186,.14);
}

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

.cookie-icon {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  z-index: 99998;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 23px;
  color: #F8FDFF;
  background: linear-gradient(135deg, #0F52BA, #C6A15B);
  box-shadow: 0 18px 45px rgba(15,82,186,.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

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

.cookie-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(15,82,186,.12);
}

.toggle-title {
  color: #082451;
  font-size: 15px;
  font-weight: 750;
}

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

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

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

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #CBD5E1;
  transition: background .2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(8,36,81,.22);
  transition: transform .2s ease;
}

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

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

.cookie-back-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #082451;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(15,82,186,.16);
  font-size: 18px;
}

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