/* ===========================================================================
   rd-cookie-consent.css — banner de consentimento da RD Agência (LGPD).

   Por que um ARQUIVO e não o estilo injetado pelo JS:
   a CSP do combo é `style-src 'self'` (sem 'unsafe-inline'). Um <style>
   criado em runtime é BLOQUEADO — o banner apareceria sem estilo nenhum. Por
   isso o CSS mora aqui e o rd-cookie-consent.js só manipula as classes.

   A identidade (teal #0F3D3E, coral #FF7A64, off-white #F7F3F0, grafite
   #1F2933) é a mesma do redesign institucional de 09/11/2026.
   =========================================================================== */

.rdck {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: #F7F3F0;
  border-top: 1px solid rgba(15, 61, 62, .12);
  box-shadow: 0 -8px 30px rgba(15, 61, 62, .12);
  font-family: Inter, system-ui, sans-serif;
  color: #1F2933;
}
.rdck-in {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.rdck-txt {
  flex: 1;
  min-width: 280px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #1F2933;
}
.rdck-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0F3D3E;
  margin-bottom: 4px;
}
.rdck-txt a {
  color: #125D58;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.rdck-acts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rdck-btn {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rdck-btn-pref {
  background: transparent;
  color: #0F3D3E;
  border-color: rgba(15, 61, 62, .12);
}
.rdck-btn-pref:hover {
  border-color: #0F3D3E;
  background: #E3F5EF;
}
.rdck-btn-no {
  background: transparent;
  color: #1F2933;
  border-color: rgba(15, 61, 62, .12);
}
.rdck-btn-no:hover {
  border-color: #333D48;
  background: rgba(51, 61, 72, .06);
}
.rdck-btn-yes {
  background: #FF7A64;
  color: #1F2933;
  border-color: #FF7A64;
}
.rdck-btn-yes:hover {
  background: #E85B4C;
  border-color: #E85B4C;
  color: #FFFFFF;
}

/* Botão flutuante para reabrir as preferências depois da escolha */
.rdck-fab {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0F3D3E;
  color: #F7F3F0;
  border: 0;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 61, 62, .28);
  font-family: inherit;
}
.rdck-fab.on { display: flex; }
.rdck-fab:hover { background: #125D58; }

/* Painel de preferências */
.rdck-ov {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 61, 62, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: Inter, system-ui, sans-serif;
}
.rdck-ov.on { display: flex; }
.rdck-modal {
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 30px 70px -20px rgba(15, 61, 62, .45);
  color: #1F2933;
}
.rdck-modal-h {
  padding: 26px 30px 16px;
  border-bottom: 1px solid rgba(15, 61, 62, .12);
  position: relative;
}
.rdck-modal-h h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0F3D3E;
}
.rdck-modal-h p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333D48;
}
.rdck-x {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(15, 61, 62, .12);
  background: #fff;
  cursor: pointer;
  font-size: 17px;
  color: #333D48;
  line-height: 1;
}
.rdck-x:hover { background: #E3F5EF; }
.rdck-list { padding: 6px 30px 4px; }
.rdck-row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(15, 61, 62, .12);
}
.rdck-row:last-child { border-bottom: none; }
.rdck-row-t {
  font-size: 15px;
  font-weight: 700;
  color: #1F2933;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rdck-lock {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #125D58;
  background: #E3F5EF;
  border-radius: 999px;
  padding: 3px 9px;
}
.rdck-row-d {
  font-size: 13.5px;
  line-height: 1.55;
  color: #333D48;
}
.rdck-sw {
  margin-left: auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15, 61, 62, .12);
  border: 0;
  position: relative;
  cursor: pointer;
  flex: none;
  transition: background .18s ease;
}
.rdck-sw.on { background: #0F3D3E; }
.rdck-sw.locked { cursor: not-allowed; opacity: .55; }
.rdck-sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
  display: block;
}
.rdck-sw.on i { transform: translateX(20px); }
.rdck-modal-f {
  padding: 18px 30px 26px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .rdck-in { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
  .rdck-acts { flex-direction: column; align-items: stretch; }
  .rdck-btn { width: 100%; padding: 14px 22px; }
}
