/* Cookie consent – interfață discretă, tip bottom sheet */
#forumCookieBanner[hidden] {
    display: none !important;
}
#forumCookieBanner {
    position: fixed;
    z-index: 99999;
    left: 50%;
    bottom: 18px;
    width: 620px;
    max-width: calc(100% - 24px);
    transform: translateX(-50%);
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid rgba(31, 89, 100, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 60px rgba(18, 45, 51, 0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: #24373b;
    text-align: left;
}
#forumCookieBanner h4 {
    margin: 0 0 8px;
    color: #1f5964;
    font-size: 20px;
    line-height: 1.25;
}
#forumCookieBanner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}
#forumCookieBanner .cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
#forumCookieBanner button {
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    padding: 11px 17px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
#forumCookieBanner .cookie-accept {
    flex: 1;
    border: 1px solid #1f5964;
    background: #1f5964;
    color: #fff;
}
#forumCookieBanner .cookie-reject {
    flex: 1;
    border: 1px solid rgba(31, 89, 100, 0.36);
    background: #fff;
    color: #1f5964;
}
#forumCookieBanner .cookie-customize {
    display: inline-block;
    margin-top: 13px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f5964;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#forumCookiePreferences {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid rgba(31, 89, 100, 0.13);
}
#forumCookiePreferences[hidden] {
    display: none !important;
}
#forumCookiePreferences .cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
}
#forumCookiePreferences .cookie-row strong {
    display: block;
    color: #24373b;
}
#forumCookiePreferences .cookie-row small {
    display: block;
    margin-top: 2px;
    color: #607276;
    line-height: 1.35;
}
#forumCookiePreferences .cookie-toggle {
    position: relative;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
}
#forumCookiePreferences .cookie-toggle input {
    position: absolute;
    opacity: 0;
}
#forumCookiePreferences .cookie-toggle span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5d7;
    transition: background .2s ease;
}
#forumCookiePreferences .cookie-toggle span:after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.18);
    transition: transform .2s ease;
}
#forumCookiePreferences .cookie-toggle input:checked + span {
    background: #1f5964;
}
#forumCookiePreferences .cookie-toggle input:checked + span:after {
    transform: translateX(20px);
}
#forumCookiePreferences .cookie-toggle input:disabled + span {
    opacity: .7;
}
#forumCookiePreferences .cookie-save {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #1f5964;
    background: #1f5964;
    color: #fff;
}
@media screen and (max-width: 40em) {
    #forumCookieBanner {
        bottom: 10px;
        max-width: calc(100% - 16px);
        padding: 18px;
        border-radius: 19px;
    }
    #forumCookieBanner .cookie-actions {
        flex-direction: column;
    }
    #forumCookieBanner .cookie-actions button {
        width: 100%;
    }
}

