.mmcc-root{
    --mmcc-accent:#2463eb;
    position:fixed;
    z-index:999999;
    font-family:inherit;
    color:#18202a;
}

.mmcc-root[hidden],
.mmcc-root [hidden]{
    display:none!important;
}

.mmcc-position-bottom{
    left:18px;
    right:18px;
    bottom:18px;
}

.mmcc-position-bottom-left{
    left:18px;
    bottom:18px;
    max-width:760px;
}

.mmcc-position-bottom-right{
    right:18px;
    bottom:18px;
    max-width:760px;
}

.mmcc-banner{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    padding:20px 22px;
    background:#fff;
    border:1px solid rgba(20,32,50,.12);
    border-radius:16px;
    box-shadow:0 18px 50px rgba(12,24,42,.18);
}

.mmcc-banner__content{
    display:flex;
    align-items:flex-start;
    gap:14px;
    min-width:0;
}

.mmcc-icon{
    display:grid;
    place-items:center;
    flex:0 0 44px;
    height:44px;
    border-radius:12px;
    background:#f2f5ff;
    font-size:23px;
}

.mmcc-banner h2,
.mmcc-modal h2{
    margin:0 0 7px;
    font-size:20px;
    line-height:1.2;
}

.mmcc-banner p,
.mmcc-modal p{
    margin:0;
    color:#53606f;
    line-height:1.55;
}

.mmcc-links{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:8px;
}

.mmcc-links a{
    color:var(--mmcc-accent);
    font-size:13px;
}

.mmcc-banner__actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;
    gap:10px;
    padding-left:58px;
}

.mmcc-modal__actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
}

.mmcc-btn,
.mmcc-open-settings,
.mmcc-blocked-content button{
    appearance:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    border:1px solid #d4d9df;
    border-radius:12px;
    background:#fff;
    color:#1f2937;
    font:inherit;
    font-size:15px;
    font-weight:600;
    line-height:1.2;
    white-space:nowrap;
    cursor:pointer;
    transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.mmcc-btn:hover,
.mmcc-open-settings:hover,
.mmcc-blocked-content button:hover{
    border-color:#bcc5d0;
    background:#f7f9fc;
}

.mmcc-btn:focus-visible,
.mmcc-open-settings:focus-visible,
.mmcc-blocked-content button:focus-visible{
    outline:3px solid rgba(36,99,235,.2);
    outline-offset:2px;
}

.mmcc-btn--primary{
    min-width:132px;
    border-color:var(--mmcc-accent);
    background:var(--mmcc-accent);
    color:#fff;
    box-shadow:0 7px 18px rgba(36,99,235,.22);
}

.mmcc-btn--primary:hover{
    border-color:#1f57d6;
    background:#1f57d6;
    color:#fff;
    box-shadow:0 9px 22px rgba(36,99,235,.28);
    transform:translateY(-1px);
}

.mmcc-btn--primary:active{
    transform:translateY(0);
    box-shadow:0 4px 12px rgba(36,99,235,.2);
}

.mmcc-btn--text{
    min-width:auto;
    min-height:44px;
    padding:0 10px;
    border-color:transparent;
    background:transparent;
    color:var(--mmcc-accent);
    box-shadow:none;
}

.mmcc-btn--text:hover{
    border-color:transparent;
    background:rgba(36,99,235,.07);
    color:#1f57d6;
    transform:none;
}

.mmcc-modal{
    position:fixed;
    inset:0;
    display:grid;
    place-items:center;
    padding:18px;
}

.mmcc-modal__backdrop{
    position:absolute;
    inset:0;
    background:rgba(10,18,30,.55);
}

.mmcc-modal__panel{
    position:relative;
    width:min(680px,100%);
    max-height:min(760px,calc(100vh - 36px));
    overflow:auto;
    padding:24px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 24px 80px rgba(0,0,0,.28);
}

.mmcc-modal__close{
    position:absolute;
    right:14px;
    top:12px;
    width:34px;
    height:34px;
    border:0;
    border-radius:50%;
    background:#f1f3f5;
    font-size:24px;
    cursor:pointer;
}

.mmcc-category-list{
    display:grid;
    gap:10px;
    margin:20px 0;
}

.mmcc-category{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:15px;
    border:1px solid #e3e7eb;
    border-radius:12px;
}

.mmcc-category__text{
    display:grid;
    gap:4px;
}

.mmcc-category__text small{
    color:#647181;
    line-height:1.4;
}

.mmcc-switch{
    position:relative;
    flex:0 0 46px;
    height:26px;
}

.mmcc-switch input{
    position:absolute;
    opacity:0;
}

.mmcc-switch span{
    position:absolute;
    inset:0;
    border-radius:999px;
    background:#cdd3da;
    transition:.2s;
}

.mmcc-switch span:after{
    content:"";
    position:absolute;
    width:20px;
    height:20px;
    left:3px;
    top:3px;
    border-radius:50%;
    background:#fff;
    box-shadow:0 1px 4px rgba(0,0,0,.25);
    transition:.2s;
}

.mmcc-switch input:checked+span{
    background:var(--mmcc-accent);
}

.mmcc-switch input:checked+span:after{
    transform:translateX(20px);
}

.mmcc-modal-open{
    overflow:hidden;
}

.mmcc-blocked-content{
    display:grid;
    place-items:center;
    min-height:220px;
    padding:24px;
    border:1px dashed #b9c1cb;
    border-radius:12px;
    background:#f6f7f9;
    text-align:center;
}

.mmcc-blocked-content>div{
    display:grid;
    gap:8px;
    justify-items:center;
}

.mmcc-blocked-content span{
    color:#647181;
}

.mmcc-policy{
    line-height:1.65;
}

.mmcc-table-wrap{
    overflow-x:auto;
    margin:16px 0;
}

.mmcc-policy table{
    width:100%;
    border-collapse:collapse;
}

.mmcc-policy th,
.mmcc-policy td{
    padding:11px 12px;
    border:1px solid #dfe3e8;
    text-align:left;
    vertical-align:top;
}

.mmcc-policy th{
    background:#f5f7f9;
}

@media(max-width:760px){
    .mmcc-position-bottom,
    .mmcc-position-bottom-left,
    .mmcc-position-bottom-right{
        left:10px;
        right:10px;
        bottom:10px;
        max-width:none;
    }

    .mmcc-banner{
        padding:16px;
    }

    .mmcc-banner__actions,
    .mmcc-modal__actions{
        display:grid;
        grid-template-columns:1fr;
        padding-left:0;
    }

    .mmcc-btn{
        width:100%;
    }

    .mmcc-btn--text{
        border-color:#d4d9df;
        background:#fff;
    }

    .mmcc-btn--text:hover{
        border-color:#bcc5d0;
        background:#f7f9fc;
    }

    .mmcc-modal__panel{
        padding:20px 16px;
    }

    .mmcc-category{
        align-items:flex-start;
    }
}
