/* GV — Cookie Consent UI */

/* Banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100000;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(11,15,16,0.96);
  color: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 320ms ease, transform 320ms ease;
  font-family: 'Manrope', system-ui, sans-serif;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cookie-banner-text h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cookie-banner-text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
}
.cookie-banner-link {
  color: #00d084;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.cookie-banner-link:hover { color: #00f09a; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.cookie-btn {
  border: none;
  cursor: pointer;
  font: 600 13px/1 'Manrope', sans-serif;
  padding: 11px 18px;
  border-radius: 8px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.cookie-btn--primary {
  background: #00d084;
  color: #0b0f10;
}
.cookie-btn--primary:hover { background: #00f09a; transform: translateY(-1px); }
.cookie-btn--ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}
.cookie-btn--ghost:hover { background: rgba(255,255,255,0.16); }

@media (max-width: 768px) {
  .cookie-banner { padding: 18px 18px 16px; left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 14px; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .cookie-btn { flex: 1 1 auto; }
}

/* Modal de preferências */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: 'Manrope', system-ui, sans-serif;
}
.cookie-modal.is-visible { opacity: 1; pointer-events: auto; }
.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
}
.cookie-modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
  color: #0b0f10;
  transform: scale(0.96);
  transition: transform 240ms ease;
}
.cookie-modal.is-visible .cookie-modal-card { transform: scale(1); }
.cookie-modal-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.cookie-modal-desc {
  margin: 0 0 20px;
  color: rgba(11,15,16,0.65);
  font-size: 13px;
  line-height: 1.55;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(11,15,16,0.05);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  color: rgba(11,15,16,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease;
}
.cookie-modal-close:hover { background: rgba(11,15,16,0.1); color: #0b0f10; }

.cookie-cat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.cookie-cat-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(11,15,16,0.03);
  border-radius: 10px;
  border: 1px solid rgba(11,15,16,0.06);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.cookie-cat-row:hover { background: rgba(11,15,16,0.05); border-color: rgba(0,208,132,0.3); }
.cookie-cat-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #00d084;
  cursor: pointer;
}
.cookie-cat-row input[disabled] { opacity: 0.6; cursor: not-allowed; }
.cookie-cat-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.cookie-cat-row small {
  display: block;
  font-size: 12px;
  color: rgba(11,15,16,0.6);
  line-height: 1.5;
}
.cookie-cat-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: rgba(0,208,132,0.12);
  color: #006d44;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

.cookie-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(11,15,16,0.08);
}
.cookie-modal-actions .cookie-banner-link { color: #02616d; }
.cookie-modal-actions .cookie-banner-link:hover { color: #00d084; }
.cookie-modal-actions-buttons { display: flex; gap: 8px; }
.cookie-modal-actions .cookie-btn--ghost { background: rgba(11,15,16,0.05); color: #0b0f10; border-color: transparent; }
.cookie-modal-actions .cookie-btn--ghost:hover { background: rgba(11,15,16,0.1); }

@media (max-width: 600px) {
  .cookie-modal-card { padding: 24px 20px 20px; }
  .cookie-modal-actions { flex-direction: column; align-items: stretch; }
  .cookie-modal-actions-buttons { width: 100%; }
  .cookie-modal-actions-buttons .cookie-btn { flex: 1; }
}

/* Engrenagem fixa */
.cookie-gear {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(11,15,16,0.1);
  color: rgba(11,15,16,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  padding: 0;
}
.cookie-gear:hover {
  color: #0b0f10;
  background: #fff;
  transform: rotate(60deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.cookie-gear:active { transform: rotate(60deg) scale(0.92); }

@media (max-width: 768px) {
  .cookie-gear { width: 40px; height: 40px; left: 10px; bottom: 10px; }
}
