:root {
    /* Variabili dedicate: tengono il banner coerente fra layout shared, configuratore e blog mirror. */
    --bp-cookiebot-bottom-offset: 0px;
    --bp-cookiebot-surface: #f8f3ea;
    --bp-cookiebot-surface-strong: #fffaf2;
    --bp-cookiebot-ink: #172127;
    --bp-cookiebot-soft: #52606a;
    --bp-cookiebot-line: rgba(23, 33, 39, 0.14);
    --bp-cookiebot-accent: #d4632e;
    --bp-cookiebot-accent-strong: #9f3b14;
    --bp-cookiebot-shadow: 0 26px 70px rgba(23, 33, 39, 0.18);
}

.bp-cookiebot,
.bp-cookiebot-trigger {
    font-family: "Lexend", "Inter", sans-serif;
}

.bp-cookiebot {
    position: fixed;
    left: 20px;
    bottom: calc(20px + var(--bp-cookiebot-bottom-offset));
    z-index: 9998;
    width: min(520px, calc(100vw - 40px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(28px);
    transition: opacity 180ms ease, transform 220ms ease, visibility 0s linear 220ms;
}

.bp-cookiebot.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.bp-cookiebot__surface {
    padding: 24px;
    border: 1px solid var(--bp-cookiebot-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(212, 99, 46, 0.18), transparent 15rem),
        linear-gradient(180deg, var(--bp-cookiebot-surface-strong) 0%, var(--bp-cookiebot-surface) 100%);
    color: var(--bp-cookiebot-ink);
    box-shadow: var(--bp-cookiebot-shadow);
}

.bp-cookiebot__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(212, 99, 46, 0.12);
    color: var(--bp-cookiebot-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bp-cookiebot__title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.15;
}

.bp-cookiebot__body {
    margin: 0;
    color: var(--bp-cookiebot-soft);
    line-height: 1.65;
}

.bp-cookiebot__link {
    color: var(--bp-cookiebot-accent-strong);
    font-weight: 700;
}

.bp-cookiebot__actions,
.bp-cookiebot__details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bp-cookiebot__actions {
    margin-top: 18px;
}

.bp-cookiebot__actions .bp-cookiebot__button {
    flex: 1 1 0;
}

.bp-cookiebot__button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.bp-cookiebot__button:hover {
    transform: translateY(-1px);
}

.bp-cookiebot button.bp-cookiebot__button--primary,
.bp-cookiebot [type="button"].bp-cookiebot__button--primary {
    background-color: var(--bp-cookiebot-accent);
    background-image: none;
    border-color: var(--bp-cookiebot-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(212, 99, 46, 0.24);
}

.bp-cookiebot button.bp-cookiebot__button--secondary,
.bp-cookiebot [type="button"].bp-cookiebot__button--secondary {
    background-color: rgba(23, 33, 39, 0.06);
    background-image: none;
    color: var(--bp-cookiebot-ink);
}

.bp-cookiebot button.bp-cookiebot__button--ghost,
.bp-cookiebot [type="button"].bp-cookiebot__button--ghost {
    background-color: transparent;
    background-image: none;
    color: var(--bp-cookiebot-ink);
    border-color: rgba(23, 33, 39, 0.18);
}

.bp-cookiebot__details {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 33, 39, 0.1);
}

.bp-cookiebot__details-copy {
    margin: 0 0 14px;
    color: var(--bp-cookiebot-soft);
    line-height: 1.55;
    font-size: 0.92rem;
}

.bp-cookiebot__cards {
    display: grid;
    gap: 12px;
}

.bp-cookiebot__card {
    display: block;
    padding: 14px 15px;
    border: 1px solid rgba(23, 33, 39, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.bp-cookiebot__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.bp-cookiebot__card-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--bp-cookiebot-ink);
}

.bp-cookiebot__card-copy {
    display: block;
    color: var(--bp-cookiebot-soft);
    line-height: 1.55;
    font-size: 0.92rem;
}

.bp-cookiebot__card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--bp-cookiebot-accent);
    cursor: pointer;
}

.bp-cookiebot__card input[type="checkbox"][disabled] {
    cursor: not-allowed;
}

.bp-cookiebot__details-actions {
    margin-top: 14px;
}

.bp-cookiebot__details-actions .bp-cookiebot__button {
    width: 100%;
}

.bp-cookiebot-trigger {
    position: fixed;
    left: 20px;
    bottom: calc(20px + var(--bp-cookiebot-bottom-offset));
    z-index: 9997;
    border: 1px solid rgba(23, 33, 39, 0.14);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(248, 243, 234, 0.96);
    color: var(--bp-cookiebot-ink);
    box-shadow: 0 12px 32px rgba(23, 33, 39, 0.12);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
}

.bp-cookiebot-trigger.is-visible {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .bp-cookiebot__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bp-cookiebot {
        left: 12px;
        right: 12px;
        bottom: calc(12px + var(--bp-cookiebot-bottom-offset));
        width: auto;
    }

    .bp-cookiebot__surface {
        padding: 18px;
        border-radius: 20px;
    }

    .bp-cookiebot__actions,
    .bp-cookiebot__details-actions {
        flex-direction: column;
    }

    .bp-cookiebot__button {
        width: 100%;
    }

    .bp-cookiebot-trigger {
        left: 12px;
        bottom: calc(12px + var(--bp-cookiebot-bottom-offset));
    }
}
