/* Scoped to the consent UI so existing page and calendar styles stay intact. */
#mg-cookie-banner,
#mg-cookie-settings {
    box-sizing: border-box;
    color: #1c3b56;
    font-family: Raleway, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}
#mg-cookie-banner {
    position: fixed;
    z-index: 2147483646;
    inset: auto 20px 20px;
    width: auto;
    max-width: 1140px;
    max-height: 85vh;
    margin: 0 auto;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    align-items: center;
    gap: 28px;
    background: #f7f5f0;
    border: 1px solid #b7bec2;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .22);
}
#mg-cookie-banner[hidden],
#mg-cookie-settings[hidden],
#mg-cookie-banner button[hidden] { display: none !important; }
#mg-cookie-banner * { box-sizing: border-box; }
#mg-cookie-banner .mg-cookie-copy { flex: 1 1 0; min-width: 0; }
#mg-cookie-banner h2 {
    margin: 0 0 8px;
    padding: 0;
    color: #1c3b56;
    font: 700 22px/1.3 Raleway, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}
#mg-cookie-banner p { margin: 0 0 10px; font: inherit; color: inherit; }
#mg-cookie-banner summary { cursor: pointer; font-weight: 700; }
#mg-cookie-banner .mg-cookie-details { padding-top: 12px; }
#mg-cookie-banner a { color: #1c3b56; text-decoration: underline !important; }
#mg-cookie-banner .mg-cookie-actions {
    display: flex;
    flex: 0 0 235px;
    flex-direction: column;
    gap: 10px;
}
#mg-cookie-banner button,
#mg-cookie-settings {
    appearance: none;
    min-height: 46px;
    margin: 0;
    padding: 11px 16px;
    border: 2px solid #1c3b56;
    border-radius: 4px;
    background: #1c3b56;
    color: #fff;
    font: 600 14px/1.4 Raleway, Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    cursor: pointer;
}
#mg-cookie-banner button:hover { background: #304f68; }
#mg-cookie-banner button[data-mg-close] { background: transparent; color: #1c3b56; }
#mg-cookie-settings {
    position: static;
    display: inline-block;
    max-width: 100%;
    min-height: 24px;
    margin: 0 0 0 12px;
    padding: 2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    text-align: inherit;
    text-decoration: underline;
    box-shadow: none;
}
#mg-cookie-banner button:focus-visible,
#mg-cookie-banner summary:focus-visible,
#mg-cookie-banner a:focus-visible,
#mg-cookie-settings:focus-visible {
    outline: 3px solid #9a5a13 !important;
    outline-offset: 3px;
}
@media (max-width: 700px) {
    #mg-cookie-banner {
        inset: auto 10px max(10px, env(safe-area-inset-bottom));
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        font-size: 14px;
    }
    #mg-cookie-banner h2 { font-size: 20px; }
    #mg-cookie-banner .mg-cookie-actions { flex: 0 0 auto; }
}
