.vmh-consent-layer {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(5, 18, 34, 0.24);
}
.vmh-consent {
  width: min(780px, 100%);
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid rgba(175, 139, 75, 0.42);
  border-radius: 18px;
  background: #fff;
  color: #172335;
  box-shadow: 0 18px 60px rgba(5, 18, 34, 0.28);
  font: inherit;
}
.vmh-consent h2 { margin: 0 0 8px; color: #051222; font-size: 1.2rem; }
.vmh-consent p { margin: 0; color: #405067; line-height: 1.55; }
.vmh-consent__more { margin: 10px 0 0; padding: 0; border: 0; background: transparent; color: #765a27; text-decoration: underline; cursor: pointer; font: inherit; font-weight: 700; }
.vmh-consent__settings { margin-top: 14px; border-top: 1px solid #e6e0d5; }
.vmh-consent__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #eee8dd; }
.vmh-consent__row div { display: grid; gap: 3px; }
.vmh-consent__row span { color: #59677a; font-size: .9rem; }
.vmh-consent__fixed { white-space: nowrap; font-weight: 700; }
.vmh-consent__row input { width: 22px; height: 22px; accent-color: #8b6b32; }
.vmh-consent__save { margin-top: 12px; min-height: 44px; padding: 9px 15px; border: 1px solid #8b6b32; border-radius: 10px; background: #fff; color: #5d461f; cursor: pointer; font: inherit; font-weight: 750; }
.vmh-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.vmh-consent__button { flex: 1 1 190px; min-height: 46px; padding: 10px 16px; border: 2px solid #8b6b32; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 750; }
.vmh-consent__button--refuse { background: #fff; color: #5d461f; }
.vmh-consent__button--custom { background: #f7f3eb; color: #4e3b1b; }
.vmh-consent__button--accept { background: #fff; color: #5d461f; }
.vmh-consent button:focus-visible, .vmh-consent input:focus-visible, [data-vmh-manage-consent]:focus-visible { outline: 3px solid #c89e4d; outline-offset: 3px; }
@media (max-width: 620px) {
  .vmh-consent-layer { padding: 10px; }
  .vmh-consent { padding: 17px; border-radius: 15px; }
  .vmh-consent__actions { flex-direction: column; }
  .vmh-consent__button { flex-basis: auto; width: 100%; }
  .vmh-consent__row { align-items: flex-start; }
}

/* Garder tous les choix accessibles quand la fenêtre est peu haute. */
.vmh-consent {
  min-height: 0;
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-width: 620px) {
  .vmh-consent { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
}
