/* Direita.org v1.10 | aviso discreto, inspirado nas proporções de portais de notícias.
   Sem interferir na rádio, na navegação ou nos widgets. */
#direita-cookie-aviso, #direita-cookie-aviso * { box-sizing: border-box; }
#direita-cookie-aviso[hidden] { display: none !important; }

#direita-cookie-aviso {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 104px;
  transform: translateX(-50%);
  width: min(1060px, calc(100% - 44px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 23px 28px;
  background: #fff;
  border: 2px solid #047857;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .13);
  font-family: Arial, Helvetica, sans-serif;
  color: #424242;
  text-align: left;
}

#direita-cookie-content { flex: 1 1 auto; min-width: 0; }
#direita-cookie-aviso p {
  margin: 0;
  color: #424242;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.52;
  letter-spacing: 0;
}
#direita-cookie-aviso a,
#direita-cookie-aviso a:visited {
  color: #424242;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
#direita-cookie-aviso a:hover { color: #047857; }

#direita-cookie-ok {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 3px;
  background: #047857;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease;
}
#direita-cookie-ok:hover { background: #065f46; }
#direita-cookie-ok:focus-visible,
#direita-cookie-aviso a:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 3px;
}

@media (max-width: 740px) {
  #direita-cookie-aviso {
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    max-width: 510px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 23px 24px 22px;
    border-radius: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .13);
  }
  #direita-cookie-aviso p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.52;
  }
  #direita-cookie-ok {
    align-self: center;
    width: 132px;
    height: 44px;
    font-size: 16px;
  }
}

@media (max-height: 570px) {
  #direita-cookie-aviso {
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
