:root {
  --gold: #c8a552;
  --gold-600: #b08c3b;
  --ink: #222;
  --bg: #ffffff;
  --muted: #6b7280;
  --ring: rgba(200, 165, 82, 0.35);
}
/* Garantir que elementos com atributo [hidden] não sejam renderizados visualmente */
[hidden] {
  display: none !important;
}
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  background: #fff;
  border-top: 2px solid var(--gold);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  z-index: 9999;
}
.cookie-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  gap: 12px;
  align-items: center;
}
.cookie-banner h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--ink);
}
.cookie-banner__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--gold-600);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
}
.btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.btn--primary {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
}
.btn--outline {
  background: #fff;
  border-color: var(--gold);
  color: var(--gold-600);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  place-items: center;
  z-index: 10000;
}
.cookie-modal__dialog {
  width: min(720px, 92vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.cookie-modal__header {
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__header h3 {
  margin: 0;
  color: var(--ink);
}
.cookie-modal__close {
  font-size: 20px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.cookie-modal__body {
  padding: 16px 18px;
  display: grid;
  gap: 18px;
}
.cookie-group header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.cookie-group h4 {
  margin: 0;
  color: var(--ink);
}
.badge {
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
}
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #e5e7eb;
  border-radius: 999px;
  transition: 0.2s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.switch input:checked + .slider {
  background: var(--gold);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
}
.switch__sr {
  position: absolute;
  left: -9999px;
}
.cookie-modal__footer {
  padding: 14px 18px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .cookie-banner__content {
    padding: 14px 12px;
  }
  .cookie-banner__actions {
    justify-content: stretch;
  }
  .btn {
    flex: 1;
  }
}
