.mf-gdpr {
    position: fixed;
    z-index: 99999;
    background: #fff;
    color: #2f2f3a;
    box-shadow: 0 -2px 24px rgba(0, 0, 0, .14);
    border-radius: 12px 12px 0 0;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}

.mf-gdpr *,
.mf-gdpr *::before,
.mf-gdpr *::after { box-sizing: border-box; }

.mf-gdpr--bottom { left: 0; right: 0; bottom: 0; border-radius: 0; }
.mf-gdpr--bottom-left { left: 16px; bottom: 16px; max-width: 420px; border-radius: 12px; }
.mf-gdpr--bottom-right { right: 16px; bottom: 16px; max-width: 420px; border-radius: 12px; }

.mf-gdpr__main {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    flex-wrap: wrap;
}

.mf-gdpr--bottom .mf-gdpr__main { max-width: 1200px; margin: 0 auto; }
.mf-gdpr--bottom-left .mf-gdpr__main,
.mf-gdpr--bottom-right .mf-gdpr__main { flex-direction: column; align-items: flex-start; }

.mf-gdpr__text { flex: 1; min-width: 240px; }
.mf-gdpr__title { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.mf-gdpr__msg { margin: 0; color: #5b5b6b; }
.mf-gdpr__link { color: #696cff; text-decoration: underline; }

.mf-gdpr__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mf-gdpr__btn {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity .15s ease, background .15s ease;
    white-space: nowrap;
}
.mf-gdpr__btn--primary { background: #696cff; color: #fff; }
.mf-gdpr__btn--primary:hover { opacity: .9; }
.mf-gdpr__btn--ghost { background: transparent; border-color: #d3d3de; color: #5b5b6b; }
.mf-gdpr__btn--ghost:hover { background: #f4f4f8; }

.mf-gdpr__prefs {
    border-top: 1px solid #ececf1;
    padding: 14px 22px 18px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.mf-gdpr__pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: #f8f8fb;
    border: 1px solid #ececf1;
    border-radius: 10px;
}
.mf-gdpr__pref:last-of-type { margin-bottom: 0; }
.mf-gdpr__pref-info { display: flex; flex-direction: column; gap: 2px; }
.mf-gdpr__pref-name { font-weight: 600; color: #2f2f3a; font-size: 14px; }
.mf-gdpr__pref-desc { color: #8a8a99; font-size: 12.5px; line-height: 1.45; }

/* Toggle switch — self-contained so a theme's checkbox styling can't hide it. */
.mf-gdpr__switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; }
#mf-gdpr .mf-gdpr__toggle {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 44px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    cursor: pointer;
    z-index: 2;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: none !important;
    box-shadow: none !important;
}
/* Kill any checkmark glyph a theme injects via pseudo-elements. */
#mf-gdpr .mf-gdpr__toggle::before,
#mf-gdpr .mf-gdpr__toggle::after { content: none !important; display: none !important; }
#mf-gdpr .mf-gdpr__toggle:disabled { cursor: not-allowed; }

.mf-gdpr__slider {
    position: absolute;
    top: 0; left: 0;
    width: 44px; height: 24px;
    background: #e0e0e8;
    border-radius: 999px;
    transition: background .18s ease;
    pointer-events: none;
    padding: 0 !important;
}
/* Neutralize the Materialize checkbox glyph drawn on the sibling span. */
#mf-gdpr .mf-gdpr__slider::before {
    content: '' !important;
    display: none !important;
    border: 0 !important;
    width: 0 !important;
    height: 0 !important;
    transform: none !important;
    background: transparent !important;
}
#mf-gdpr .mf-gdpr__slider::after {
    content: '' !important;
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    margin: 0;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transform: none;
    transition: transform .18s ease;
}
#mf-gdpr .mf-gdpr__toggle:checked + .mf-gdpr__slider { background: #696cff; }
#mf-gdpr .mf-gdpr__toggle:checked + .mf-gdpr__slider::after { transform: translateX(20px) !important; }
#mf-gdpr .mf-gdpr__toggle:disabled + .mf-gdpr__slider { opacity: .55; }

.mf-gdpr__prefs-actions { margin-top: 14px; text-align: right; }

@media (max-width: 600px) {
    .mf-gdpr--bottom-left,
    .mf-gdpr--bottom-right { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 12px 12px 0 0; }
    .mf-gdpr__main { gap: 14px; }
    .mf-gdpr__actions { width: 100%; }
    .mf-gdpr__btn { flex: 1; text-align: center; }
}
