/* Scoped to avoid changing the site's existing components. */
body.mps-consent-open { overflow: hidden; }
.mps-consent {
  color: #111; background: #fff; border: 0; border-radius: 10px;
  width: min(920px, calc(100vw - 32px)); max-width: none;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; margin: auto; overflow: auto;
  font-family: var(--font-body, Arial, sans-serif); font-size: 1rem; line-height: 1.55;
  box-shadow: 0 24px 80px #0005;
}
.mps-consent::backdrop { background: rgba(0, 0, 0, .64); }
.mps-consent [hidden] { display: none !important; }
.mps-consent button { cursor: pointer; }
.mps-consent button:focus-visible, .mps-consent a:focus-visible,
.mps-consent input:focus-visible, .mps-consent [tabindex]:focus-visible,
.mps-consent-link:focus-visible { outline: 3px solid #2071ac; outline-offset: 3px; }
.mps-consent__head { padding: 16px 24px; display: flex; gap: 18px; align-items: center; border-bottom: 1px solid #dce2e7; }
.mps-consent__head img { width: 132px; height: auto; }
.mps-consent__head > span { margin-left: auto; color: #40515d; font-size: .875rem; }
.mps-consent__close { flex: 0 0 44px; width: 44px; height: 44px; border: 0; background: #f2f6fa; color: #111; font-size: 1.75rem; line-height: 1; border-radius: 4px; }
.mps-consent__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #dce2e7; }
.mps-consent__tabs button { padding: 17px 10px; font-size: .9375rem; font-weight: 650; background: #fff; color: #222; border: 0; border-bottom: 3px solid transparent; }
.mps-consent__tabs button[aria-selected="true"] { color: #2071ac; border-bottom-color: #2071ac; }
.mps-consent__body { padding: 22px 24px; }
.mps-consent h2 { font-size: 1.15rem; letter-spacing: 0; line-height: 1.4; margin: 0 0 12px; }
.mps-consent p { margin: 0 0 14px; font-size: 1rem; }
.mps-consent dl { margin: 0; }
.mps-consent dt { font-weight: 700; font-size: .9375rem; overflow-wrap: anywhere; }
.mps-consent dd { margin: 6px 0 20px; }
.mps-consent__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: .875rem; }
.mps-consent__legal a { color: #1a5d8f; text-decoration: underline; text-underline-offset: 3px; }
.mps-consent__categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid #dce2e7; }
.mps-consent__categories label { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 10px; text-align: center; padding: 16px 8px; border-right: 1px solid #dce2e7; cursor: default; }
.mps-consent__categories label:last-child { border-right: 0; }
.mps-consent__categories strong { font-size: .9375rem; }
.mps-consent__categories small { font-size: .875rem; color: #4d5a63; }
.mps-consent__categories input { appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 52px; height: 30px; border: 2px solid #515b64; border-radius: 18px; background: #515b64; position: relative; margin: 0; flex-shrink: 0; }
.mps-consent__categories input::after { content: ''; position: absolute; width: 22px; height: 22px; top: 2px; left: 2px; border-radius: 50%; background: #fff; }
.mps-consent__categories input:checked { background: #2071ac; border-color: #2071ac; }
.mps-consent__categories input:checked::after { left: 24px; }
.mps-consent__categories input:not(:disabled) { cursor: pointer; }
.mps-consent__bottom { padding: 16px 24px 24px; }
.mps-consent .mps-consent__scope { font-size: .875rem; color: #4d5a63; }
.mps-consent__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mps-consent__actions button { padding: 12px; min-height: 48px; border: 2px solid #2071ac; border-radius: 4px; background: #2071ac; color: #fff; font-size: .9375rem; line-height: 1.4; font-weight: 650; }
.mps-consent__actions button:hover { background: #185984; border-color: #185984; }
.mps-consent-link { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mps-consent-status:not(:empty) { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; z-index: 10000; background: #132b3d; color: #fff; border-radius: 4px; box-shadow: 0 4px 24px #0003; }
@media (max-width: 600px) {
  .mps-consent__head { padding: 12px 16px; gap: 8px; }
  .mps-consent__head img { width: 110px; }
  .mps-consent__head > span { max-width: 120px; }
  .mps-consent__body, .mps-consent__bottom { padding: 16px; }
  .mps-consent__categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mps-consent__categories label:nth-child(2) { border-right: 0; }
  .mps-consent__categories label:nth-child(-n+2) { border-bottom: 1px solid #dce2e7; }
  .mps-consent__actions { grid-template-columns: 1fr; }
}
