/* Simple GDPR Consent Blocker
 * Usa sempre a fonte principal do site (herdada do <body>).
 */
.sgcb,
.sgcb-placeholder {
  --sgcb-bg: #ffffff;
  --sgcb-fg: #1e1e1e;
  --sgcb-muted: #5c5f66;
  --sgcb-border: #e4e5e9;
  --sgcb-on-primary: #ffffff;
  --sgcb-secondary: #e4e5e9;
  --sgcb-on-secondary: #1e1e1e;
  --sgcb-radius: 0.4rem;
  --sgcb-btn-radius: 0.4rem;
  font-family: inherit;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: normal;
  box-sizing: border-box;
}
.sgcb *,
.sgcb *::before,
.sgcb *::after {
  box-sizing: inherit;
  font-family: inherit;
}

.sgcb--dark {
  --sgcb-bg: #1e1e1e;
  --sgcb-fg: #f2f2f2;
  --sgcb-muted: #b9bbc0;
  --sgcb-border: #3a3b3f;
  --sgcb-secondary: #3a3b3f;
  --sgcb-on-secondary: #f2f2f2;
}

.sgcb[hidden],
.sgcb [hidden] {
  display: none !important;
}

/* Contentor */
.sgcb {
  position: fixed;
  z-index: 2147483000;
  color: var(--sgcb-fg);
  outline: none;
}
.sgcb__panel {
  background: var(--sgcb-bg);
  color: var(--sgcb-fg);
  border-radius: var(--sgcb-radius);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 1.1em 1.1em 1.1em;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

/* Caixa (predefinido): canto inferior direito, com a largura da fila de botões */
.sgcb--box {
  right: 0.8rem;
  bottom: 0.8rem;
  max-width: calc(100vw - 32px);
}
.sgcb--box .sgcb__panel {
  width: max-content;
  max-width: 100%;
}
/* O texto e as preferências não alargam o cartão: quebram na largura dos botões */
.sgcb--box .sgcb__desc,
.sgcb--box .sgcb__prefs,
.sgcb--box .sgcb__title {
  width: 0;
  min-width: 100%;
}

/* Barra: cartão largo centrado no fundo */
.sgcb--bar {
  left: 16px;
  right: 16px;
  bottom: 16px;
}
.sgcb--bar .sgcb__panel {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.sgcb--bar .sgcb__desc {
  flex: 1 1 360px;
  margin: 0;
}
.sgcb--bar .sgcb__title,
.sgcb--bar .sgcb__prefs {
  flex: 1 1 100%;
}

/* Modal */
.sgcb--modal {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
}
.sgcb--modal .sgcb__panel {
  width: min(620px, 100%);
}
html.sgcb-open-modal {
  overflow: hidden;
}

/* Texto */
.sgcb .sgcb__title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.3;
  color: inherit;
  letter-spacing: normal;
  text-transform: none;
}
.sgcb__desc {
  margin: 0 0 0.7em;
  color: var(--sgcb-fg);
}
.sgcb__desc p {
  margin: 0;
}
.sgcb__desc p + p {
  margin-top: 0.5em;
}
.sgcb__desc a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Preferências */
.sgcb__prefs {
  margin: 0 0 0.9em;
  border-top: 1px solid var(--sgcb-border);
}
.sgcb__cat {
  padding: 14px 0;
  border-bottom: 1px solid var(--sgcb-border);
}
.sgcb__cat-desc {
  margin: 4px 0 0 54px;
  color: var(--sgcb-muted);
}
.sgcb__switch {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-weight: 600;
  margin: 0;
}
.sgcb__switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.sgcb__slider {
  flex: none;
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 22px;
  background: #c9cbd1;
  transition: background 0.15s;
}
.sgcb__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.sgcb__switch input:checked + .sgcb__slider {
  background: var(--sgcb-primary);
}
.sgcb--dark .sgcb__switch input:checked + .sgcb__slider {
  background: #8a8d94;
}
.sgcb__switch input:checked + .sgcb__slider::after {
  transform: translateX(18px);
}
.sgcb__switch input:disabled + .sgcb__slider {
  opacity: 0.55;
}
.sgcb__switch input:focus-visible + .sgcb__slider {
  outline: 2px solid var(--sgcb-fg);
  outline-offset: 2px;
}

/* Botões (seletores com especificidade suficiente para o tema não os alterar) */
.sgcb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
}
.sgcb .sgcb-btn,
.sgcb-placeholder .sgcb-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0.72em 1.05em;
  border: 0;
  border-radius: var(--sgcb-btn-radius);
  background: var(--sgcb-primary, #1e1e1e);
  color: var(--sgcb-on-primary, #fff);
  box-shadow: none;
  font: inherit;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    opacity 0.15s,
    background-color 0.15s;
}
.sgcb .sgcb-btn:hover,
.sgcb-placeholder .sgcb-btn:hover {
  opacity: 0.85;
  background: var(--sgcb-primary, #1e1e1e);
  color: var(--sgcb-on-primary, #fff);
}
.sgcb .sgcb-btn--secondary,
.sgcb .sgcb-btn--secondary:hover,
.sgcb-placeholder .sgcb-btn--secondary,
.sgcb-placeholder .sgcb-btn--secondary:hover {
  background: var(--sgcb-secondary);
  color: var(--sgcb-on-secondary);
}
.sgcb .sgcb-btn:focus-visible,
.sgcb-placeholder .sgcb-btn:focus-visible {
  outline: 2px solid var(--sgcb-fg, #1e1e1e);
  outline-offset: 2px;
}

/* Conteúdo incorporado bloqueado */
.sgcb-placeholder {
  --sgcb-primary: #1e1e1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 200px;
  padding: 24px;
  background: #f4f4f6;
  color: var(--sgcb-fg);
  border-radius: 12px;
  text-align: center;
}
.sgcb-placeholder p {
  margin: 0;
  max-width: 46ch;
}
.sgcb-placeholder .sgcb-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
/* Embeds responsivos do WordPress (wrapper com proporção fixa) */
.wp-has-aspect-ratio .wp-block-embed__wrapper .sgcb-placeholder {
  position: absolute;
  inset: 0;
  min-height: 0;
  aspect-ratio: auto !important;
  max-width: none !important;
}

@media (max-width: 600px) {
  .sgcb--box,
  .sgcb--bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
  .sgcb--box .sgcb__panel {
    width: auto;
  }
  .sgcb__panel {
    padding: 1.1em;
  }
  .sgcb__actions {
    gap: 10px;
  }
  .sgcb .sgcb-btn {
    flex: 1 1 auto;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sgcb__slider,
  .sgcb__slider::after,
  .sgcb .sgcb-btn {
    transition: none;
  }
}
