/* Scoped controls shared by the SNC website and fictional examples.
   Layout and tokens only; the policy is unchanged.
   - Phones (599 px and below): docked to the bottom edge, 16 px text and buttons, «Aceitar tudo» and «Recusar tudo» in one row,
     «Escolher preferências» as a full-width text button.
   - Brand tokens only: tinta, tijolo, creme, mel, azul, cinza. No shadow, no tint, no off-palette hex values.
   - The third banner button carries the extra class snc-consent-more (added by measurement.js).
   - styles.css hides the sticky bar and reserves the card's height while the card shows (--snc-consent-h, set through CSSOM).
   On phones the banner's first layer is the short line (.snc-consent-short); the full sentence
   (.snc-consent-full) shows from 600 px and stays at the top of the preferences panel at every width. Same policy. */
.snc-consent-banner, .snc-consent-dialog {
  box-sizing: border-box;
  color: var(--ink, #2d2926);
  background: var(--cream, #fff6e9);
  font-family: var(--body, inherit);
  font-size: 16px;
  line-height: 1.4;
  text-align: left;
}
.snc-consent-banner {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px calc(8px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--brick, #8b3528);
}
.snc-consent-banner[hidden] { display: none; }
.snc-consent-banner h2, .snc-consent-dialog h2 {
  margin: 0 0 4px;
  font-family: var(--display, inherit);
  font-weight: 700;
  font-size: clamp(1.0625rem, 5.4vw, 1.25rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--brick, #8b3528);
  text-wrap: balance;
}
.snc-consent-banner p, .snc-consent-dialog p { margin: 0 0 8px; font-size: 1rem; line-height: 1.32; }
.snc-consent-banner .snc-consent-short { display: none; }
@media (max-width: 599px) {
  .snc-consent-banner .snc-consent-short { display: block; }
  .snc-consent-banner .snc-consent-full { display: none; }
  /* 10 px less height on phones; every button stays at 44 px or more. */
  .snc-consent-banner { padding-top: 10px; }
  .snc-consent-banner h2 { margin-bottom: 2px; }
  .snc-consent-banner p { margin-bottom: 6px; }
  .snc-consent-banner .snc-consent-actions { gap: 4px 8px; }
  .snc-consent-banner .snc-consent-button { min-height: 44px; }
}
.snc-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin: 0; }
.snc-consent-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 12px;
  border: 2px solid var(--brick, #8b3528);
  border-radius: 5px;
  background: var(--cream, #fff6e9);
  color: var(--brick, #8b3528);
  font: 600 1rem/1.25 var(--body, inherit);
  text-align: center;
  cursor: pointer;
}
.snc-consent-button:hover { border-color: var(--ink, #2d2926); }
.snc-consent-more {
  grid-column: 1 / -1;
  min-height: 44px;
  border-color: transparent;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.snc-consent-more:hover { border-color: transparent; text-decoration-thickness: 2px; }
.snc-consent-button:focus-visible, .snc-consent-reopen:focus-visible,
.snc-consent-dialog a:focus-visible, .snc-consent-option input:focus-visible {
  outline: 3px solid var(--blue, #244a58);
  outline-offset: 4px;
}
.snc-consent-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(580px, calc(100% - 32px));
  max-width: 580px;
  height: fit-content;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 2px solid var(--brick, #8b3528);
  border-radius: 6px 6px 32px 6px;
}
.snc-consent-dialog[open] { display: block; }
.snc-consent-dialog:not([open]) { display: none; }
.snc-consent-dialog::backdrop { background: var(--ink, #2d2926); opacity: .68; }
.snc-consent-dialog h2 { font-size: 1.5rem; margin-bottom: 10px; }
.snc-consent-close { display: block; margin: 0 0 16px auto; }
.snc-consent-close.snc-consent-button { min-height: 44px; }
.snc-consent-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-top: 1px solid var(--grey, #d9d6d0);
  padding: 18px 0;
  cursor: pointer;
}
.snc-consent-option input { flex: 0 0 24px; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brick, #8b3528); }
.snc-consent-option span span, .snc-consent-option strong { display: block; }
.snc-consent-option strong { margin-bottom: 6px; }
.snc-consent-unavailable { cursor: default; }
.snc-consent-small, .snc-consent-preview { font-size: 1rem; }
.snc-consent-preview { background: var(--honey, #f3c66a); color: var(--ink, #2d2926); border-radius: 5px; padding: 12px; margin-top: 16px !important; }
.snc-consent-dialog a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brick, #8b3528); text-decoration: underline; text-underline-offset: 5px; }
.snc-consent-reopen {
  appearance: none;
  display: inline-flex;
  align-items: center;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 10px 0;
  margin: 0;
  min-height: 44px;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}
.snc-consent-status { font-size: 1rem; }
.snc-consent-status:empty { display: none; }
.site-footer .snc-consent-reopen:focus-visible, .footer .snc-consent-reopen:focus-visible { outline-color: var(--honey, #f3c66a); }
/* Tablets and short laptop windows: the card stays a docked bar, text first, buttons in a row under it. */
@media (min-width: 600px) {
  .snc-consent-banner { padding: 16px max(24px, calc((100% - 1184px) / 2)) calc(14px + env(safe-area-inset-bottom)); }
  .snc-consent-banner h2 { font-size: 1.375rem; }
  .snc-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .snc-consent-actions .snc-consent-button { flex: 0 1 auto; min-width: 160px; }
  .snc-consent-actions .snc-consent-more { min-width: 0; padding-inline: 10px; }
}
/* Wide screens: text on the left, the three choices on the right, so the bar stays low and never reaches the hero. */
@media (min-width: 1100px) {
  .snc-consent-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center; }
  .snc-consent-banner h2 { grid-column: 1; margin-bottom: 4px; }
  .snc-consent-banner p { grid-column: 1; margin: 0; max-width: 46rem; }
  .snc-consent-actions { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
}
@media (max-width: 599px) {
  .snc-consent-dialog { padding: 20px; }
}
@media (max-width: 359px) {
  .snc-consent-banner { padding-inline: 16px; }
}
/* Short phones (measurement.js marks the card .snc-consent-compact when the visible screen is 599 px wide or less and 700 px
   tall or less): the heading is read by screen readers only and the spacing is tighter, so the card stays below the page's
   main button. Same words, buttons and policy. */
.snc-consent-banner.snc-consent-compact:not(.snc-consent-inline) h2 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.snc-consent-banner.snc-consent-compact:not(.snc-consent-inline) { padding-top: 6px; }
.snc-consent-banner.snc-consent-compact:not(.snc-consent-inline) p { margin-bottom: 4px; }
/* Enlarged text on a small screen: a docked card taller than half the screen would hide what has focus. measurement.js
   then marks it .snc-consent-inline: it sits at the top of the page, in the flow, and reserves nothing. Same words and buttons. */
.snc-consent-banner.snc-consent-inline { position: static; border-top: 0; border-bottom: 2px solid var(--brick, #8b3528); padding-bottom: 12px; }
/* The fictional previews (SNC's band is a direct child of their body) load their own site.css, not styles.css. The card is
   SNC's, so it keeps SNC's type there, and the page reserves its height as styles.css does: at the end of the page and under
   keyboard focus. */
body:has(> .snc-band) :is(.snc-consent-banner, .snc-consent-dialog) { --body: 'SNC Texto', Arial, sans-serif; --display: Bricolage, Arial, sans-serif; }
/* In SNC's closing band «Escolhas de privacidade» reads like the band's other links (moldura.css .snc-cta-links a). */
.snc-cta .snc-consent-reopen { color: #8b3528; font-weight: 600; text-underline-offset: .2em; }
html:has(> body > .snc-band), html:has(> body > .demo-band) { scroll-padding-bottom: var(--snc-consent-h, 0px); }
body:has(> .snc-band):has(> .snc-consent-banner:not([hidden])), body:has(> .demo-band):has(> .snc-consent-banner:not([hidden])) { padding-bottom: var(--snc-consent-h, 0px); }
