.cookie-consent-banner-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  box-shadow: 0 -4px 32px rgba(15,45,82,0.18), 0 -1px 8px rgba(15,45,82,0.1);
  border-top: 2px solid var(--color-accent, #2e7fd4);
  animation: cookieBannerSlideUp 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}

@keyframes cookieBannerSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-consent-left-panel {
  flex: 1;
  background: #0f2d52;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.cookie-consent-right-panel {
  flex: 1;
  background: #f4f6fa;
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.cookie-consent-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
}

.cookie-consent-explanation {
  font-size: 0.825rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
}

.cookie-consent-more-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5ba3e8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.cookie-consent-more-link:hover {
  color: #ffffff;
}

.cookie-consent-toggles-area {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-toggle-label-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cookie-toggle-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #12213a;
  font-family: 'Nunito Sans', sans-serif;
}

.cookie-toggle-desc {
  font-size: 0.73rem;
  color: #7a8fa8;
  font-family: 'Nunito Sans', sans-serif;
}

.cookie-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #d0dbe8;
  transition: background 0.25s ease;
}

.cookie-toggle-switch.cookie-toggle-switch-locked {
  background: #2e7fd4;
  cursor: not-allowed;
  opacity: 0.8;
}

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

.cookie-toggle-input:checked + .cookie-toggle-knob,
.cookie-toggle-switch-locked .cookie-toggle-knob {
  transform: translateX(20px);
}

.cookie-toggle-input:checked ~ .cookie-toggle-knob {
  transform: translateX(20px);
}

.cookie-toggle-switch:has(.cookie-toggle-input:checked) {
  background: #2e7fd4;
}

.cookie-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  display: block;
}

.cookie-consent-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-accept-all-button,
.cookie-accept-selected-button,
.cookie-reject-all-button {
  flex: 1;
  min-width: 80px;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: 'Nunito Sans', sans-serif;
  white-space: nowrap;
}

.cookie-accept-all-button {
  background: #2e7fd4;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(46,127,212,0.35);
}

.cookie-accept-all-button:hover {
  background: #1a4580;
  transform: translateY(-1px);
}

.cookie-accept-selected-button {
  background: #0f2d52;
  color: #ffffff;
}

.cookie-accept-selected-button:hover {
  background: #1a4580;
  transform: translateY(-1px);
}

.cookie-reject-all-button {
  background: transparent;
  color: #4a5d7a;
  border: 1.5px solid #d0dbe8;
}

.cookie-reject-all-button:hover {
  background: #f4f6fa;
  border-color: #7a8fa8;
  color: #12213a;
}

@media (max-width: 640px) {
  .cookie-consent-banner-wrapper {
    flex-direction: column;
  }

  .cookie-consent-left-panel,
  .cookie-consent-right-panel {
    padding: 1rem 1.25rem;
  }

  .cookie-consent-button-group {
    flex-direction: row;
  }

  .cookie-accept-all-button,
  .cookie-accept-selected-button,
  .cookie-reject-all-button {
    flex: none;
    min-width: auto;
    padding: 0.5rem 0.875rem;
  }
}