/* WebDig.DEV GDPR Manager - cookie consent v1.5.0
 * Override the variables in assets/custom.css (not overwritten by updates). */
:root {
  --gdpr-cc-bg: #172033;
  --gdpr-cc-fg: #ffffff;
  --gdpr-cc-muted: #cbd5e1;
  --gdpr-cc-btn-bg: #00A9A9;
  --gdpr-cc-btn-fg: #ffffff;
  --gdpr-cc-link: #67e8f9;
  --gdpr-cc-dialog-bg: #ffffff;
  --gdpr-cc-dialog-fg: #172033;
  --gdpr-cc-radius: 14px;
}
.gdpr-cc-banner, .gdpr-cc-banner *, .gdpr-cc-modal, .gdpr-cc-modal * { box-sizing: border-box; }
.gdpr-cc-banner[hidden], .gdpr-cc-modal[hidden], .gdpr-cc-reopen[hidden] { display: none !important; }
.gdpr-cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 99999;
  display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 16px 18px;
  background: var(--gdpr-cc-bg); color: var(--gdpr-cc-fg);
  border-radius: var(--gdpr-cc-radius); box-shadow: 0 18px 50px rgba(0,0,0,.25);
  font-size: 14px; line-height: 1.5;
}
.gdpr-cc-text { flex: 1 1 380px; }
.gdpr-cc-banner a { color: var(--gdpr-cc-link); text-decoration: underline; }
.gdpr-cc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* "Aceitar" e "Rejeitar" têm o mesmo destaque (orientações CNPD/EDPB). */
.gdpr-cc-btn {
  border: 0; border-radius: 8px; padding: 9px 14px; font-weight: 700; cursor: pointer;
  background: var(--gdpr-cc-btn-bg); color: var(--gdpr-cc-btn-fg); font-size: 14px;
}
.gdpr-cc-btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.gdpr-cc-btn:focus-visible, .gdpr-cc-close:focus-visible, .gdpr-cc-reopen:focus-visible, .gdpr-cc-switch:focus-visible {
  outline: 3px solid var(--gdpr-cc-link); outline-offset: 2px;
}
.gdpr-cc-modal {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.55); padding: 16px;
}
.gdpr-cc-dialog {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--gdpr-cc-dialog-bg); color: var(--gdpr-cc-dialog-fg);
  border-radius: var(--gdpr-cc-radius); padding: 24px; font-size: 14px; line-height: 1.55;
}
.gdpr-cc-dialog h2 { margin: 0 32px 8px 0; font-size: 20px; font-weight: 700; }
.gdpr-cc-dialog a { color: inherit; text-decoration: underline; }
.gdpr-cc-cat { border-top: 1px solid #e5e7eb; padding: 12px 0; }
.gdpr-cc-cat p { margin: 4px 0 0; color: #5b6475; font-size: 13px; }
.gdpr-cc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; cursor: pointer; font-weight: 400; }
.gdpr-cc-always { font-size: 12px; color: #0f766e; font-weight: 600; margin-left: 6px; }
.gdpr-cc-switch { width: 20px; height: 20px; accent-color: var(--gdpr-cc-btn-bg); }
.gdpr-cc-dialog .gdpr-cc-actions { margin-top: 12px; justify-content: flex-end; }
.gdpr-cc-btn-primary { background: var(--gdpr-cc-bg); }
.gdpr-cc-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #f1f5f9; color: #172033; font-size: 22px; line-height: 1; cursor: pointer;
}
.gdpr-cc-reopen {
  position: fixed; left: 16px; bottom: 16px; z-index: 99998; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: var(--gdpr-cc-bg); color: var(--gdpr-cc-fg); font-size: 20px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
@media (max-width: 600px) {
  .gdpr-cc-banner { left: 8px; right: 8px; bottom: 8px; }
  .gdpr-cc-actions .gdpr-cc-btn { flex: 1 1 auto; }
}
.gdpr-cc-details { margin-top: 6px; font-size: 13px; }
.gdpr-cc-details summary { cursor: pointer; color: #0f766e; font-weight: 600; }
.gdpr-cc-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12px; }
.gdpr-cc-table th, .gdpr-cc-table td { text-align: left; padding: 6px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.gdpr-cc-table th { white-space: nowrap; }
.gdpr-cc-table td:first-child { overflow-wrap: anywhere; }
.gdpr-cc-table th { background: #f8fafc; }
@media (max-width: 600px) {
  .gdpr-cc-table thead { display: none; }
  .gdpr-cc-table tr { display: block; border-bottom: 1px solid #eef0f3; padding: 4px 0; }
  .gdpr-cc-table td { display: block; border: 0; padding: 2px 0; }
}
