.carous-cookie-banner--modern {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    background: var(--e-global-color-background, #fff);
    /* border-radius: 2.5rem; */
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 1.5rem 3rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: inherit;
    box-sizing: border-box;
}
.carous-cookie-banner--modern .carous-cookie-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    line-height: 1;
}
.carous-cookie-banner--modern .carous-cookie-text {
    flex: 1;
    font-size: 1rem;
    color: var(--e-global-color-text, #222);
    font-weight: 500;
    white-space: normal;
}
.carous-cookie-banner--modern .carous-cookie-settings {
    margin-right: 0.5rem;
    font-size: 0.98rem;
    color: var(--e-global-color-primary, #222);
    text-decoration: underline;
    background: var(--e-global-color-secondary, #f6f6f6);
    border-radius: 1.25rem;
    padding: 0.5rem 1.25rem;
    transition: background 0.2s;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 500;
}
.carous-cookie-banner--modern .carous-cookie-settings:hover {
    background: var(--e-global-color-secondary-hover, #ececec);
}
.carous-cookie-banner--modern .carous-cookie-decline {
    background: var(--e-global-color-secondary, #f6f6f6);
    color: var(--e-global-color-primary, #222);
    border: none;
    border-radius: 1.25rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.98rem;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}
.carous-cookie-banner--modern .carous-cookie-decline:hover {
    background: var(--e-global-color-secondary-hover, #ececec);
}
.carous-cookie-banner--modern .carous-cookie-accept {
    background: var(--e-global-color-accent, #ff6a22);
    color: var(--e-global-color-contrast, #fff);
    border: none;
    border-radius: 1.25rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255,106,34,0.08);
    transition: background 0.2s;
}
.carous-cookie-banner--modern .carous-cookie-accept:hover {
    background: var(--e-global-color-accent-hover, #ff4d00);
}
.carous-cookie-sidebar--modern {
    position: fixed;
    top: 0;
    right: -370px;
    width: 340px;
    max-width: 98vw;
    height: 100vh;
    background: var(--e-global-color-background, #fff);
    border-radius: 1.5rem 0 0 1.5rem;
    box-shadow: -2px 0 24px rgba(0,0,0,0.10);
    padding: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    font-family: inherit;
}
.carous-cookie-sidebar--modern.open {
    right: 0;
}
.carous-cookie-sidebar--modern .carous-cookie-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 1.5rem 2rem 1rem 2rem;
    position: relative;
}
.carous-cookie-sidebar--modern .carous-cookie-sidebar__header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    flex: 1 1 auto;
    color: var(--e-global-color-primary, #222);
}
.carous-cookie-sidebar--modern .carous-cookie-sidebar__close {
    position: absolute;
    top: 0.5rem;
    right: -2.5rem;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
    color: #444;
    box-shadow: 0 2px 8px rgba(30,27,75,0.10);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s, color 0.2s;
}
.carous-cookie-sidebar--modern .carous-cookie-sidebar__close:hover {
    background: #f3f3f7;
    color: #111;
}
.carous-cookie-sidebar--modern .carous-cookie-sidebar__content {
    padding: 0 2rem 2rem 2rem;
}
.carous-cookie-group--toggle {
    margin-bottom: 1.5rem;
}
.cookie-group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}
.cookie-group-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--e-global-color-text, #222);
}
.cookie-toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 28px;
    background: #ede9fe;
    border-radius: 1.5em;
    transition: background 0.2s;
    vertical-align: middle;
    cursor: pointer;
}
.cookie-toggle-switch--on {
    background: var(--e-global-color-accent, #7c3aed);
}
.cookie-toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: left 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    color: var(--e-global-color-accent, #7c3aed);
}
.cookie-toggle-switch input[type="checkbox"]:checked + .cookie-toggle-knob {
    left: 19px;
    background: var(--e-global-color-accent, #7c3aed);
    color: #fff;
}
.cookie-group-desc {
    font-size: 0.98rem;
    color: var(--e-global-color-text, #444);
    margin-bottom: 0.5rem;
    margin-left: 0.1rem;
    margin-top: 0.2rem;
    line-height: 1.5;
}
.carous-cookie-sidebar__actions {
    margin-top: 2.5rem;
    padding: 0 2rem 2rem 2rem;
}
.carous-cookie-sidebar__save {
    width: 100%;
    display: block;
    background: var(--e-global-color-primary, #2563eb);
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    border: none;
    border-radius: 2.2rem;
    padding: 1.1rem 0;
    box-shadow: 0 2px 8px rgba(30,27,75,0.08);
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    letter-spacing: 0.01em;
}
.carous-cookie-sidebar__save:hover,
.carous-cookie-sidebar__save:focus {
    background: var(--e-global-color-accent, #1e1b4b);
    color: #fff;
}
/* Sidebar Backdrop for Cookie Banner */
.carous-cookie-sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 27, 75, 0.55);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.carous-cookie-sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Ensure sidebar is above the backdrop */
.carous-cookie-sidebar--modern {
    z-index: 10000;
}
@media (max-width: 900px) {
    .carous-cookie-banner--modern {
        padding: 0.5rem 0.5rem;
        gap: 0.7rem;
    }
}
@media (max-width: 600px) {
    .carous-cookie-banner--modern {
        border-radius: 1.25rem;
        padding: 0.5rem 0.2rem;
        gap: 0.3rem;
        font-size: 0.95rem;
    }
    .carous-cookie-banner--modern .carous-cookie-settings,
    .carous-cookie-banner--modern .carous-cookie-decline,
    .carous-cookie-banner--modern .carous-cookie-accept {
        padding: 0.5rem 0.7rem;
        font-size: 0.95rem;
    }
    .carous-cookie-sidebar--modern {
        width: 98vw;
        min-width: 0;
        border-radius: 1.25rem 0 0 1.25rem;
        padding: 0;
    }
    .carous-cookie-sidebar--modern .carous-cookie-sidebar__header,
    .carous-cookie-sidebar--modern .carous-cookie-sidebar__content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .carous-cookie-sidebar--modern .carous-cookie-sidebar__close {
        right: -1.2rem;
        width: 2rem;
        height: 2rem;
        font-size: 1.5rem;
    }
    .carous-cookie-sidebar--modern .carous-cookie-sidebar__header {
        padding: 1rem 1rem 0.5rem 1rem;
    }
    .carous-cookie-sidebar--modern .carous-cookie-sidebar__header h2 {
        font-size: 1rem;
    }
    .carous-cookie-sidebar__actions {
        padding: 0 1rem 1.2rem 1rem;
    }
    .carous-cookie-sidebar__save {
        font-size: 1rem;
        padding: 0.9rem 0;
    }
}
