.mad-consent[hidden] { display: none !important; }
.mad-consent { position: fixed; z-index: 99990; left: 22px; right: 22px; bottom: 22px; width: min(920px, calc(100% - 44px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 24px; border: 1px solid #cad5d1; border-radius: 18px; background: #fff; color: #132237; box-shadow: 0 24px 80px rgba(10,25,38,.24); font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif; }
.mad-consent__copy > span, .mad-consent-settings__head span { display: block; color: #c95243; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.mad-consent h2, .mad-consent-settings h2 { margin: 5px 0 8px; font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.mad-consent p { max-width: 620px; margin: 0; color: #536072; font-size: 13px; line-height: 1.5; }
.mad-consent__copy > a { display: inline-block; margin-top: 7px; color: #1e514e; font-size: 11px; font-weight: 750; }
.mad-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 300px; }
.mad-consent__actions button, .mad-consent-settings__save { min-height: 46px; padding: 0 15px; border: 1px solid #1e514e; border-radius: 9px; background: #2f7069; color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 850; }
.mad-consent__actions button[data-mad-consent="reject"] { border-color: #132237; background: #132237; }
.mad-consent__actions .mad-consent__custom { grid-column: 1 / -1; min-height: 34px; border: 0; background: transparent; color: #1e514e; text-decoration: underline; }
.mad-consent-settings { width: min(600px, calc(100% - 28px)); max-height: 88vh; padding: 0; border: 0; border-radius: 18px; background: #fff; color: #132237; box-shadow: 0 24px 80px rgba(10,25,38,.28); font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif; }
.mad-consent-settings::backdrop { background: rgba(7,18,30,.7); backdrop-filter: blur(3px); }
.mad-consent-settings form { padding: 24px; }
.mad-consent-settings__head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.mad-consent-settings__head button { width: 40px; height: 40px; border: 1px solid #d6dedb; border-radius: 50%; background: #fff; color: #132237; cursor: pointer; font-size: 25px; }
.mad-consent-settings form > p { margin: 6px 0 18px; color: #536072; font-size: 13px; }
.mad-consent-settings label { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 15px 0; border-top: 1px solid #d6dedb; }
.mad-consent-settings label span { display: grid; }
.mad-consent-settings label strong { font-size: 13px; }
.mad-consent-settings label small { margin-top: 3px; color: #647184; font-size: 11px; }
.mad-consent-settings input { width: 20px; height: 20px; accent-color: #2f7069; }
.mad-consent-settings__save { width: 100%; margin-top: 12px; }
.mad-consent-manage { position: fixed; z-index: 99970; left: 14px; bottom: 14px; min-height: 34px; padding: 0 11px; border: 1px solid #cad5d1; border-radius: 999px; background: rgba(255,255,255,.94); color: #1e514e; cursor: pointer; box-shadow: 0 8px 22px rgba(10,25,38,.12); font: 750 10px/1 "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif; }
.mad-consent :focus-visible, .mad-consent-settings :focus-visible, .mad-consent-manage:focus-visible { outline: 3px solid #c95243; outline-offset: 2px; }
@media (max-width: 680px) {
  .mad-consent { left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); grid-template-columns: 1fr; gap: 17px; padding: 19px; }
  .mad-consent h2 { font-size: 22px; }
  .mad-consent__actions { min-width: 0; }
  .mad-consent-settings form { padding: 20px; }
  .mad-business-page .mad-consent-manage { bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) { .mad-consent-settings::backdrop { backdrop-filter: none; } }
