/* Regras explícitas: o banner aparece sobre o tema, o Elementor e a landing, cada um com os seus estilos. */
.emma-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 99999;
  box-sizing: border-box;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #D6E4F0;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(27, 73, 101, 0.22);
  color: #1B4965;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.emma-consent[hidden],
.emma-consent [hidden],
.emma-consent-reopen[hidden] {
  display: none !important;
}

.emma-consent p {
  margin: 0;
  color: inherit;
  font: inherit;
}

.emma-consent .emma-consent__title {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.emma-consent a {
  color: #2A85A2;
  text-decoration: underline;
}

.emma-consent__prefs {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #D6E4F0;
}

.emma-consent__pref {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: #5A7899;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.emma-consent__pref input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #1B4965;
}

.emma-consent__pref input:disabled {
  cursor: not-allowed;
}

.emma-consent__pref strong {
  display: block;
  color: #1B4965;
  font-size: 14px;
  font-weight: 600;
}

.emma-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.emma-consent .emma-consent__btn {
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #1B4965;
  border-radius: 8px;
  background: #1B4965;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}

.emma-consent .emma-consent__btn:hover {
  border-color: #2A85A2;
  background: #2A85A2;
  color: #FFFFFF;
}

.emma-consent .emma-consent__btn--quiet,
.emma-consent [data-consent-action="save"] {
  grid-column: 1 / -1;
}

.emma-consent .emma-consent__btn--quiet {
  background: #FFFFFF;
  color: #1B4965;
}

.emma-consent .emma-consent__btn--quiet:hover {
  background: #F0F8FF;
  color: #1B4965;
}

.emma-consent .emma-consent__btn:focus-visible,
.emma-consent-reopen:focus-visible,
.emma-consent a:focus-visible {
  outline: 2px solid #3EABCD;
  outline-offset: 2px;
}

.emma-consent-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9998;
  margin: 0;
  padding: 6px 12px;
  border: 1px solid #D6E4F0;
  border-radius: 100px;
  background: #FFFFFF;
  color: #1B4965;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.85;
  cursor: pointer;
}

.emma-consent-reopen:hover {
  background: #F0F8FF;
  color: #1B4965;
  opacity: 1;
}

@media (max-width: 520px) {
  .emma-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    padding: 20px;
  }
}
