/* Bandeau cookies — UX type Revolut, adapté Last Call Beauty */
:root {
    --lcb-cc-ink: #191c1f;
    --lcb-cc-muted: #5c6168;
    --lcb-cc-surface: #ffffff;
    --lcb-cc-line: #e8eaed;
    --lcb-cc-ok: #0f8a4b;
    --lcb-cc-shadow: 0 12px 40px rgba(25, 28, 31, 0.18);
    --lcb-cc-font: "Poppins", system-ui, -apple-system, sans-serif;
}

#lcb-cc-root {
    position: relative;
    z-index: 2147483000;
    font-family: var(--lcb-cc-font);
    color: var(--lcb-cc-ink);
    -webkit-font-smoothing: antialiased;
}

#lcb-cc-root *,
#lcb-cc-root *::before,
#lcb-cc-root *::after {
    box-sizing: border-box;
}

#lcb-cc-root[hidden] {
    display: none !important;
}

.lcb-cc-banner {
    position: fixed;
    z-index: 2147483001;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    padding: 1.35rem 1.25rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
    background: var(--lcb-cc-surface);
    border-radius: 28px 28px 0 0;
    box-shadow: var(--lcb-cc-shadow);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

/* Au-dessus du fond sombre bloquant */
.lcb-cc-banner.is-open,
.lcb-cc-prefs.is-open {
    z-index: 2147483003;
}

.lcb-cc-banner.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.lcb-cc-banner__title {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lcb-cc-banner__logo {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    display: block;
}

.lcb-cc-banner__text {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--lcb-cc-muted);
}

.lcb-cc-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--lcb-cc-ink);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.lcb-cc-link:hover,
.lcb-cc-link:focus-visible {
    opacity: 0.75;
    outline: none;
}

.lcb-cc-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.lcb-cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease, opacity 0.2s ease;
}

.lcb-cc-btn:active {
    transform: scale(0.985);
}

.lcb-cc-btn--primary {
    background: var(--lcb-cc-ink);
    color: #fff;
}

.lcb-cc-btn--primary:hover,
.lcb-cc-btn--primary:focus-visible {
    background: #353a40;
    outline: none;
}

.lcb-cc-btn--ghost {
    background: transparent;
    color: var(--lcb-cc-ink);
    border-color: var(--lcb-cc-ink);
}

.lcb-cc-btn--ghost:hover,
.lcb-cc-btn--ghost:focus-visible {
    background: rgba(25, 28, 31, 0.08);
    outline: none;
}

.lcb-cc-btn--text {
    background: transparent;
    border: 0;
    color: var(--lcb-cc-ink);
    min-height: auto;
    padding: 0.55rem 0.75rem;
    width: auto;
}

.lcb-cc-btn--text:hover,
.lcb-cc-btn--text:focus-visible {
    background: rgba(25, 28, 31, 0.07);
    opacity: 1;
    outline: none;
}

.lcb-cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(17, 19, 21, 0.62);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.lcb-cc-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lcb-cc-prefs {
    position: fixed;
    z-index: 2147483003;
    inset: auto 0 0 0;
    width: 100%;
    max-height: min(92vh, 760px);
    display: flex;
    flex-direction: column;
    background: var(--lcb-cc-surface);
    border-radius: 28px 28px 0 0;
    box-shadow: var(--lcb-cc-shadow);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.lcb-cc-prefs.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.lcb-cc-prefs__header {
    position: relative;
    flex: 0 0 auto;
    padding: 1.15rem 1.35rem 0.35rem;
}

.lcb-cc-prefs__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: auto;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--lcb-cc-ink);
    cursor: pointer;
}

.lcb-cc-prefs__close:hover,
.lcb-cc-prefs__close:focus-visible {
    background: rgba(25, 28, 31, 0.06);
    outline: none;
}

.lcb-cc-prefs__close svg {
    width: 1.05rem;
    height: 1.05rem;
}

.lcb-cc-prefs__title {
    margin: 2.1rem 0 0.85rem;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.lcb-cc-prefs__body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 0 1.35rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.lcb-cc-prefs__intro {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--lcb-cc-muted);
}

.lcb-cc-prefs__intro a {
    color: inherit;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lcb-cc-cats {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
}

.lcb-cc-cat {
    border-top: 1px solid var(--lcb-cc-line);
}

.lcb-cc-cat:last-child {
    border-bottom: 1px solid var(--lcb-cc-line);
}

.lcb-cc-cat__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 0.85rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lcb-cc-cat__row--mixed {
    cursor: default;
    grid-template-columns: 1fr auto;
}

.lcb-cc-cat__expand {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.lcb-cc-cat__chevron {
    width: 1.15rem;
    height: 1.15rem;
    color: var(--lcb-cc-ink);
    transition: transform 0.22s ease;
}

.lcb-cc-cat.is-open .lcb-cc-cat__chevron {
    transform: rotate(45deg);
}

.lcb-cc-cat__name {
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lcb-cc-cat__status {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--lcb-cc-ok);
    white-space: nowrap;
}

.lcb-cc-cat__details {
    display: none;
    padding: 0 0 1rem 1.9rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--lcb-cc-muted);
}

.lcb-cc-cat.is-open .lcb-cc-cat__details {
    display: block;
}

.lcb-cc-switch {
    position: relative;
    width: 2.7rem;
    height: 1.55rem;
    flex: 0 0 auto;
}

.lcb-cc-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.lcb-cc-switch__track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #c9ced4;
    transition: background-color 0.2s ease;
}

.lcb-cc-switch__track::after {
    content: "";
    position: absolute;
    top: 0.18rem;
    left: 0.18rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.lcb-cc-switch input:checked + .lcb-cc-switch__track {
    background: var(--lcb-cc-ink);
}

.lcb-cc-switch input:checked + .lcb-cc-switch__track::after {
    transform: translateX(1.15rem);
}

.lcb-cc-switch input:focus-visible + .lcb-cc-switch__track {
    outline: 2px solid var(--lcb-cc-ink);
    outline-offset: 2px;
}

.lcb-cc-prefs__footer {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.85rem 1.35rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--lcb-cc-line);
    background: var(--lcb-cc-surface);
}

.lcb-cc-prefs__footer .lcb-cc-btn--text {
    align-self: center;
}

@media (min-width: 768px) {
    .lcb-cc-banner {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        width: min(24.5rem, calc(100vw - 3rem));
        padding: 1.5rem 1.45rem 1.35rem;
        border-radius: 28px;
    }

    .lcb-cc-banner__title {
        font-size: 1.45rem;
    }

    .lcb-cc-banner__text,
    .lcb-cc-link {
        font-size: 0.92rem;
    }

    .lcb-cc-prefs {
        inset: 0 0 0 auto;
        width: min(26.5rem, 100%);
        max-height: none;
        height: 100%;
        border-radius: 0;
        transform: translateX(110%);
    }

    .lcb-cc-prefs.is-open {
        transform: translateX(0);
    }

    .lcb-cc-prefs__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.5rem 1.25rem;
    }

    .lcb-cc-prefs__footer .lcb-cc-btn--primary {
        width: auto;
        min-width: 12.5rem;
        flex: 1 1 auto;
    }

    .lcb-cc-prefs__footer .lcb-cc-btn--text {
        order: 2;
        flex: 0 0 auto;
        align-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lcb-cc-banner,
    .lcb-cc-prefs,
    .lcb-cc-overlay,
    .lcb-cc-cat__chevron,
    .lcb-cc-btn,
    .lcb-cc-switch__track,
    .lcb-cc-switch__track::after {
        transition: none !important;
    }
}

body.establishment-picker-open #lcb-cc-root .lcb-cc-banner,
body.establishment-picker-open #lcb-cc-root .lcb-cc-prefs,
body.establishment-picker-open #lcb-cc-root .lcb-cc-overlay {
    visibility: hidden !important;
    pointer-events: none !important;
}
