#cookie-consent, #cookie-settings {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: rgba(255,255,255,0.9);
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  z-index: 1000;
  max-width: 460px;
}
#cookie-settings {
  background-color: #fff;
}
#cookie-consent.show, #cookie-settings.show {
  opacity: 1;
  transform: translateY(0);
}
#cookie-settings {
  pointer-events: none;
}
#cookie-settings.show {
  pointer-events: auto;
}

.cc-content {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cc-icon {
  font-size: 24px;
}
.cc-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cc-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.cc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  text-align: center;
  font-size: 0.93rem;
  text-transform: uppercase;
  border-radius: .188rem;
}
.cc-btn span {
  display: inline-block;
  line-height: 1;
}
.btn-gray {
  background-color: #bebebe;
  color: #FFF;
  border: none;
}
.btn-gray:hover {
  background-color: #ccc;
}
.btn-green {
  background-color: #28a229;
  color: #fff;
  border: none;
}
.btn-green:hover {
  background-color: #0196fd;
}

.toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background-color: #d1d5db;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.3s;
}
.toggle::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}
.toggle:checked {
  background-color: #16a34a;
}
.toggle:checked::before {
  transform: translateX(20px);
}
.toggle:disabled {
  background-color: #27d467;
  opacity: 0.6;
  cursor: not-allowed;
}
.toggle:disabled::before {
  background-color: #f3f4f6;
  box-shadow: none;
}

.toggle.no-transition, .toggle.no-transition::before {
  transition: none !important;
}

#cookie-consent h2, #cookie-settings h3 {
  margin: 0;
  font-size: 1.1rem;
}
#cookie-consent p, #cookie-settings p {
  margin: 0;
  font-size: 0.9rem !important;
  line-height: 1.3;
}
#cookie-settings label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

#cookie-consent-desc {
  font-size: 0.9rem !important;
  line-height: 1.35;
}

.cc-settings span {
	font-size: 0.9rem !important;
	font-weight: 600;
}

#cookie-consent-desc a {
	color:#2a3f80;
	text-decoration:underline;
}

#cookie-consent-desc a:hover {
	text-decoration:none;
}

@media (max-width: 768px) {
  #cookie-consent, #cookie-settings {
    width: calc(100% - 64px);
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    max-width: 600px;
    padding: 14px;
  }
  #cookie-consent.show, #cookie-settings.show {
    transform: translateX(-50%);
  }
  #cookie-consent h2, #cookie-settings h3 {
    font-size: 1.05rem;
  }
  #cookie-consent p, #cookie-settings p, .cc-btn span {
    font-size: 0.875rem;
  }
  .cc-btn {
    min-height: 38px;
    padding: 0 18px;
  }
}

@media (max-width: 480px) {
  #cookie-consent, #cookie-settings {
    width: calc(100% - 48px);
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    max-width: unset;
    padding: 12px;
  }
  #cookie-consent.show, #cookie-settings.show {
    transform: translateX(-50%);
  }
  #cookie-consent h2, #cookie-settings h3 {
    font-size: 1rem;
  }
  #cookie-consent p, #cookie-settings p, .cc-btn span {
    font-size: 0.85rem;
  }
  .cc-btn {
    min-height: 36px;
    padding: 0 16px;
  }
  #cookie-consent p#cookie-consent-desc {
    font-size: 0.75rem !important;
  }
}