#eci-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0));
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#eci-consent-banner.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

#eci-consent-banner .eci-consent-panel {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px 18px 14px;
}

#eci-consent-banner .eci-consent-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #111;
}

#eci-consent-banner .eci-consent-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
}

#eci-consent-banner .eci-consent-text a {
  color: #2f54eb;
  text-decoration: underline;
}

#eci-consent-banner .eci-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#eci-consent-banner .eci-consent-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#eci-consent-banner .eci-consent-btn-primary {
  background: #2f54eb;
  color: #fff;
}

#eci-consent-banner .eci-consent-btn-primary:hover {
  background: #1d39c4;
}

#eci-consent-banner .eci-consent-btn-secondary {
  background: #f5f5f5;
  color: #333;
  border-color: #d9d9d9;
}

#eci-consent-banner .eci-consent-btn-secondary:hover {
  background: #ebebeb;
}

#eci-consent-banner .eci-consent-btn-ghost {
  background: transparent;
  color: #2f54eb;
  border-color: #adc6ff;
}

#eci-consent-banner .eci-consent-btn-ghost:hover {
  background: #f0f5ff;
}

#eci-consent-banner .eci-consent-preferences {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

#eci-consent-banner.is-customizing .eci-consent-preferences {
  display: block;
}

#eci-consent-banner .eci-consent-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#eci-consent-banner .eci-consent-option:last-child {
  border-bottom: none;
}

#eci-consent-banner .eci-consent-option h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

#eci-consent-banner .eci-consent-option p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
}

#eci-consent-banner .eci-consent-switch {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
}

#eci-consent-banner .eci-consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#eci-consent-banner .eci-consent-switch span {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#eci-consent-banner .eci-consent-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

#eci-consent-banner .eci-consent-switch input:checked + span {
  background: #2f54eb;
}

#eci-consent-banner .eci-consent-switch input:checked + span::after {
  transform: translateX(20px);
}

#eci-consent-banner .eci-consent-switch input:disabled + span {
  opacity: 0.55;
  cursor: not-allowed;
}

#eci-consent-settings-link {
  cursor: pointer;
  color: #2f54eb;
  text-decoration: underline;
}

@media (max-width: 640px) {
  #eci-consent-banner .eci-consent-panel {
    border-radius: 10px 10px 0 0;
    padding: 14px 14px 12px;
  }

  #eci-consent-banner .eci-consent-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #eci-consent-banner .eci-consent-btn {
    width: 100%;
    text-align: center;
  }
}
