/* YM Consentimento — painel inferior não modal */
:root { --ym-accent: #111111; --ym-consent-h: 0px; }

body.ym-consent-open { padding-bottom: var(--ym-consent-h) !important; }

.ym-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  background: #ffffff;
  color: #1a1a1a;
  border-top: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
  font-size: 15px;
  line-height: 1.45;
  max-height: 70vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.ym-consent[hidden] { display: none !important; }
.ym-consent *, .ym-consent *::before, .ym-consent *::after { box-sizing: border-box; }

.ym-consent__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px 24px;
  align-items: center;
  flex-wrap: wrap;
}
.ym-consent__body { flex: 1 1 420px; min-width: 0; padding-right: 32px; }
.ym-consent__title { font-size: 16px; font-weight: 700; margin: 0 0 4px; color: inherit; line-height: 1.3; }
.ym-consent__text { margin: 0; overflow-wrap: anywhere; }
.ym-consent__text a { color: var(--ym-accent); text-decoration: underline; }
.ym-consent__current:empty, .ym-consent__error:empty { display: none; }
.ym-consent__current { margin: 6px 0 0; font-weight: 600; }
.ym-consent__error { margin: 6px 0 0; color: #b00020; }

.ym-consent__actions { display: flex; gap: 10px; flex: 0 1 auto; flex-wrap: wrap; }

/* Destaque equivalente: os dois botões têm o mesmo estilo */
.ym-consent__btn {
  appearance: none;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 2px solid var(--ym-accent);
  background: #ffffff;
  color: var(--ym-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ym-consent__btn:hover { background: var(--ym-accent); color: #ffffff; }
.ym-consent__btn:disabled { opacity: .6; cursor: progress; }

.ym-consent__close {
  position: absolute; top: -6px; right: -6px;
  width: 40px; height: 40px;
  border: 0; background: transparent; color: #444;
  font-size: 26px; line-height: 1; cursor: pointer; border-radius: 6px;
}

.ym-consent button:focus-visible,
.ym-consent a:focus-visible {
  outline: 3px solid var(--ym-accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .ym-consent { font-size: 14px; }
  .ym-consent__body { flex-basis: 100%; }
  .ym-consent__actions { width: 100%; }
  .ym-consent__btn { flex: 1 1 140px; white-space: normal; }
}

@media (prefers-reduced-motion: no-preference) {
  .ym-consent { animation: ym-up .2s ease-out; }
  @keyframes ym-up { from { transform: translateY(100%); } to { transform: none; } }
}

/* Mensagem junto ao checkbox do formulário */
.ym-consent__fieldmsg { margin: 6px 0 0; font-size: 13px; color: #b00020; width: 100%; }
.ym-consent__fieldmsg:empty { display: none; }
