#yty-ads-preferences[hidden], #yty-ads-preferences-link[hidden] { display: none !important; }
#yty-ads-preferences {
    position: fixed;
    z-index: 900;
    inset: auto 16px 16px 16px;
    box-sizing: border-box;
    width: min(420px, calc(100% - 32px));
    padding: 16px;
    background: #fff;
    color: #182125;
    border: 1px solid #ccd5d5;
    border-radius: 10px;
    box-shadow: 0 6px 24px #18212530;
    line-height: 1.45;
}
#yty-ads-preferences p { margin: 4px 0 12px; font-size: 14px; }
#yty-ads-preferences div { display: flex; flex-wrap: wrap; gap: 8px; }
#yty-ads-preferences button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 6px 10px;
    border: 1px solid #465957;
    border-radius: 5px;
    background: #fff;
    color: #182125;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}
#yty-ads-preferences button:hover { background: #edf3f2; }
#yty-ads-preferences-link { margin: 0; }
#yty-ads-preferences-link button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}
#yty-ads-preferences button:focus-visible, #yty-ads-preferences-link button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
