.mo-consent-panel, .mo-consent-settings, .mo-consent-nojs {
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}
.mo-consent-panel *, .mo-consent-settings * { box-sizing: border-box; }
.mo-consent-panel[hidden], .mo-consent-panel [hidden] { display: none !important; }
.mo-consent-settings {
    position: fixed;
    /* inset: auto auto 1rem 1rem; */
    z-index: 2147483000;
    /* border: 2px solid #154d69; */
    border: 0;
    /* border-radius: .45rem; */
    background: #000;
    color: #fff;
    padding: .55rem .8rem;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 600;
    /* box-shadow: 0 2px 12px #0002; */
    left: 0;
    bottom: 0;
}
.mo-consent-panel {
    position: fixed;
    /*inset: auto auto 1rem 1rem;*/
    z-index: 2147483001;
    width: min(38rem, calc(100vw - 2rem));
    max-height: min(85vh, 52rem);
    margin: auto;
    padding: 1.25rem;
    border: none;
    border-radius: .75rem;
    background: #fff;
    color: #222;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overscroll-behavior: contain;
}
    .mo-consent-panel::backdrop {
        background-color: rgba(0, 0, 0, 0.55);
    }
    .mo-consent-panel:not([open]) {
        display: none;
    }
.mo-consent-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.mo-consent-header h2 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.mo-consent-header h2:focus { outline: none; }
.mo-consent-close { border: 1px solid #aab7bf; border-radius: .3rem; background: #fff; padding: 0 .5rem; font-size: 1.45rem; color: #243b49; cursor: pointer; }
.mo-consent-panel p { margin: .7rem 0; font-size: .9375rem; }
.mo-consent-privacy { padding: .7rem; border-left: 4px solid #154d69; background: #ecf4f8; }
.mo-consent-purposes { border: 1px solid #c6ced3; border-radius: .45rem; margin: .8rem 0; }
.mo-consent-purpose { padding: .75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mo-consent-purpose + .mo-consent-purpose { border-top: 1px solid #d7dfe3; }
.mo-consent-purpose small { display: block; font-size: .8rem; color: #435665; }
.mo-consent-purpose span, .mo-consent-purpose output { font-size: .85rem; white-space: nowrap; }
.mo-consent-details summary { cursor: pointer; text-decoration: underline; padding: .2rem 0; }
.mo-consent-table-wrap { overflow-x: auto; }
.mo-consent-details table { border-collapse: collapse; width: 100%; font-size: .75rem; }
.mo-consent-details td, .mo-consent-details th { border-bottom: 1px solid #ddd; padding: .4rem; text-align: left; vertical-align: top; }
.mo-consent-policy-links a { color: #084f85; text-decoration: underline; }
.mo-consent-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin-top: 1rem; }
.mo-consent-actions button { background: #155874; color: #fff; border: 2px solid #155874; border-radius: .4rem; padding: .7rem .5rem; cursor: pointer; font: inherit; font-weight: 650; }
.mo-consent-actions button:hover:not(:disabled) { background: #0e435a; }
.mo-consent-actions button:disabled { opacity: .45; cursor: not-allowed; }
.mo-consent-panel .mo-consent-error { color: #962a2a; font-weight: 600; }
.mo-consent-panel .mo-consent-note { color: #52626c; font-size: .8rem; margin-bottom: 0; }
.mo-consent-settings:focus-visible, .mo-consent-panel :focus-visible { outline: 3px solid #a84904; outline-offset: 3px; }
.mo-consent-nojs { position: fixed; bottom: 0; padding: .5rem; background: #fff; border: 1px solid #777; }
@media (max-width: 680px) {
  .mo-consent-panel { inset: auto .5rem .5rem .5rem; width: auto; max-height: 75vh; padding: .9rem; }
  .mo-consent-actions { grid-template-columns: 1fr; }
  .mo-consent-settings { left: .5rem; bottom: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .mo-consent-panel * { scroll-behavior: auto; } }
