/* Cookie 同意橫幅：顏色全部走 Butterfly 的 CSS 變數，深色模式自動適配 */
#cookie-consent {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  max-width: 40rem;
  margin-inline: auto;
  padding: 0.9rem 1.2rem;
  background: var(--card-bg);
  color: var(--font-color);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
  font-size: 0.9em;
  line-height: 1.6;
}

.cookie-consent__text {
  flex: 1 1 20rem;
  margin: 0;
}

.cookie-consent__text a {
  color: var(--btn-bg);
  text-decoration: underline;
}

.cookie-consent__btns {
  display: flex;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.cookie-consent__btn {
  padding: 0.35rem 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}

.cookie-consent__btn--accept {
  background: var(--btn-bg);
  color: var(--btn-color);
}

.cookie-consent__btn--decline {
  background: var(--text-bg-hover);
  color: var(--font-color);
}

.cookie-consent__btn:hover {
  opacity: 0.85;
}
