/* Gelocci — Consentimento de cookies */
.cookie-consent-banner,
.cookie-consent-panel,
.cookie-preferences-button {
  font-family: 'Outfit', Arial, sans-serif;
  color: var(--text);
}

.cookie-consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 9999;
  width: min(960px, calc(100% - 2rem));
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  border: 1px solid var(--green-border);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-card);
  padding: 1.15rem;
  backdrop-filter: blur(16px);
}

.cookie-consent-banner[hidden],
.cookie-consent-panel[hidden],
.cookie-preferences-button[hidden] {
  display: none !important;
}

.cookie-consent-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cookie-consent-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cookie-consent-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.95rem;
}

.cookie-consent-text a,
.cookie-panel-text a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.cookie-consent-text a:hover,
.cookie-panel-text a:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 0.68rem 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-2);
  color: var(--text);
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.cookie-btn-primary {
  background: var(--green);
  color: #07110c;
  border-color: var(--green);
}

.cookie-btn-secondary {
  background: transparent;
}

.cookie-preferences-button {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9998;
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(12px);
}

.cookie-preferences-button:hover {
  color: var(--text);
  border-color: var(--green);
}

.cookie-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
}

.cookie-consent-panel {
  width: min(720px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--green-border);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-card);
  padding: 1.35rem;
}

.cookie-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

.cookie-panel-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.cookie-panel-close {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--green-border);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--muted-3);
  border-radius: 1rem;
  background: var(--bg-2);
  margin-top: 0.8rem;
}

.cookie-category h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.cookie-category p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.93rem;
}

.cookie-required-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid var(--muted-3);
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  width: 3.4rem;
  height: 1.9rem;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--muted-3);
  border-radius: 999px;
  border: 1px solid var(--green-border);
}

.cookie-slider::before {
  content: '';
  position: absolute;
  width: 1.35rem;
  height: 1.35rem;
  left: 0.23rem;
  top: 0.22rem;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.2s ease;
}

.cookie-switch input:checked + .cookie-slider {
  background: var(--green);
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(1.48rem);
  background: #07110c;
}

.cookie-panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

@media (max-width: 720px) {
  .cookie-consent-banner {
    bottom: 0.75rem;
    width: min(100% - 1rem, 620px);
    padding: 1rem;
  }

  .cookie-consent-content {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions,
  .cookie-panel-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1 1 100%;
  }

  .cookie-category {
    grid-template-columns: 1fr;
  }

  .cookie-preferences-button {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

.cookie-consent-panel .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
