/* ==========================================================================
   Cookie consent — matches the Inmolux design system:
   sharp corners, white surface, #010101 ink, Inter for body, Felidae for
   headings, custom cubic-bezier transitions consistent with .popup-modal.
   ========================================================================== */

.inm-cc {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 99990;
    pointer-events: none;
    font-family: "Inter", sans-serif;
    color: #010101;
}

.inm-cc[data-state="hidden"] {
    visibility: hidden;
}

.inm-cc[data-state="visible"] {
    pointer-events: auto;
}

/* ---------- Bottom bar (intro view) ---------- */

.inm-cc__bar {
    background: #FFFFFF;
    border-top: 1px solid rgba(1, 1, 1, 0.08);
    box-shadow: 0 -12px 32px rgba(1, 1, 1, 0.08);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.inm-cc[data-state="visible"] .inm-cc__bar {
    transform: translateY(0);
}

.inm-cc__bar-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
}

.inm-cc__text {
    min-width: 0;
}

.inm-cc__title {
    font-family: "Felidae", "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: var(--fs-25, 22px);
    line-height: 1.2;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.inm-cc__intro {
    font-size: var(--fs-16, 14px);
    line-height: 1.55;
    color: #3C3C3B;
    margin: 0;
    max-width: 720px;
}

.inm-cc__policy-link {
    color: #010101;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.25s ease;
    white-space: nowrap;
}

.inm-cc__policy-link:hover {
    opacity: 0.6;
}

.inm-cc__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---------- Buttons ---------- */

.inm-cc__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 14px 22px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.inm-cc__btn:focus-visible {
    outline: 2px solid #010101;
    outline-offset: 2px;
}

.inm-cc__btn--solid {
    background: #010101;
    color: #FFFFFF;
    border-color: #010101;
}

.inm-cc__btn--solid:hover {
    background: #FFFFFF;
    color: #010101;
}

.inm-cc__btn--outline {
    background: transparent;
    color: #010101;
    border-color: #010101;
}

.inm-cc__btn--outline:hover {
    background: #010101;
    color: #FFFFFF;
}

.inm-cc__btn--ghost {
    background: transparent;
    color: #3C3C3B;
    border-color: transparent;
    padding-left: 10px;
    padding-right: 10px;
}

.inm-cc__btn--ghost:hover {
    color: #010101;
}

/* ---------- Settings panel ---------- */

.inm-cc__panel {
    background: #FFFFFF;
    border-top: 1px solid rgba(1, 1, 1, 0.08);
    box-shadow: 0 -12px 32px rgba(1, 1, 1, 0.08);
    max-height: 78vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.inm-cc[data-state="visible"][data-view="settings"] .inm-cc__panel {
    transform: translateY(0);
}

.inm-cc__panel-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 32px;
}

.inm-cc__panel-title {
    font-family: "Felidae", "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: var(--fs-32, 26px);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.inm-cc__panel-intro {
    font-family: "Inter", sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.5;
    color: #3C3C3B;
    margin: 0 0 28px;
}

.inm-cc__panel-intro .inm-cc__policy-link {
    white-space: normal;
}

.inm-cc__cats {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    gap: 0;
}

.inm-cc__cat {
    padding: 20px 0;
    border-top: 1px solid rgba(1, 1, 1, 0.08);
}

.inm-cc__cat:last-child {
    border-bottom: 1px solid rgba(1, 1, 1, 0.08);
}

.inm-cc__cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 8px;
}

.inm-cc__cat-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.inm-cc__cat-status {
    font-size: 12px;
    color: #BABABA;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.inm-cc__cat-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #3C3C3B;
    margin: 0;
    max-width: 760px;
}

/* ---------- Toggle ---------- */

.inm-cc__toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.inm-cc__toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.inm-cc__toggle-track {
    display: inline-block;
    width: 40px;
    height: 22px;
    background: #E5E5E5;
    position: relative;
    transition: background-color 0.25s ease;
}

.inm-cc__toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #FFFFFF;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.inm-cc__toggle input:checked + .inm-cc__toggle-track {
    background: #010101;
}

.inm-cc__toggle input:checked + .inm-cc__toggle-track .inm-cc__toggle-thumb {
    transform: translateX(18px);
}

.inm-cc__toggle input:focus-visible + .inm-cc__toggle-track {
    outline: 2px solid #010101;
    outline-offset: 2px;
}

.inm-cc__panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ---------- Reopener pill (visible after consent) ---------- */

.inm-cc-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99980;
    appearance: none;
    -webkit-appearance: none;
    background: #FFFFFF;
    color: #010101;
    border: 1px solid rgba(1, 1, 1, 0.12);
    padding: 10px 16px 10px 14px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(1, 1, 1, 0.08);
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.92;
}

.inm-cc-reopen:hover {
    background: #010101;
    color: #FFFFFF;
    opacity: 1;
}

.inm-cc-reopen__dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
    .inm-cc__bar-inner {
        grid-template-columns: 1fr;
        padding: 22px 18px 18px;
        gap: 18px;
    }

    .inm-cc__actions {
        justify-content: stretch;
        gap: 8px;
    }

    .inm-cc__actions .inm-cc__btn {
        flex: 1 1 auto;
        text-align: center;
        padding: 14px 12px;
    }

    .inm-cc__actions .inm-cc__btn--ghost {
        order: 3;
        flex-basis: 100%;
        padding: 6px 0 0;
    }

    .inm-cc__panel-inner {
        padding: 28px 18px 22px;
    }

    .inm-cc__panel-actions {
        justify-content: stretch;
    }

    .inm-cc__panel-actions .inm-cc__btn {
        flex: 1 1 auto;
        text-align: center;
    }

    .inm-cc__panel-actions .inm-cc__btn--ghost {
        order: 3;
        flex-basis: 100%;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .inm-cc-reopen {
        bottom: 14px;
        left: 14px;
        padding: 8px 12px 8px 10px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inm-cc__bar,
    .inm-cc__panel,
    .inm-cc__toggle-thumb,
    .inm-cc__btn,
    .inm-cc-reopen {
        transition: none;
    }
}
