/**
 * Banner consenso cookie — usato da area pubblica e B2B
 */

.safit-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    padding: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(110%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.safit-cookie-banner.safit-cookie-banner--visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.safit-cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.18);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.safit-cookie-banner__text {
    flex: 1 1 280px;
    min-width: 0;
}

.safit-cookie-banner__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #1a1a1a;
}

.safit-cookie-banner__lead {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #3d3d3d;
}

.safit-cookie-banner__details {
    margin: 0.35rem 0 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #444;
}

.safit-cookie-banner__details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--theme-header-color, #e42807);
    list-style-position: outside;
}

.safit-cookie-banner__details summary:hover {
    text-decoration: underline;
}

.safit-cookie-banner__long {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e9ecef;
    max-height: 40vh;
    overflow-y: auto;
}

.safit-cookie-banner__long p {
    margin: 0 0 0.65rem;
}

.safit-cookie-banner__long p:last-child {
    margin-bottom: 0;
}

.safit-cookie-banner__more {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
}

.safit-cookie-banner__more a {
    color: var(--theme-header-color, #e42807);
    font-weight: 600;
}

.safit-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 0 0 auto;
    justify-content: flex-end;
}

.safit-cookie-btn {
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.safit-cookie-btn--primary {
    background: var(--theme-header-color, #e42807);
    color: #fff;
}

.safit-cookie-btn--primary:hover {
    filter: brightness(0.92);
}

.safit-cookie-btn--secondary {
    background: #f1f3f5;
    color: #212529;
    border: 1px solid #dee2e6;
}

.safit-cookie-btn--secondary:hover {
    background: #e9ecef;
}

@media (max-width: 576px) {
    .safit-cookie-banner__actions {
        width: 100%;
        flex-direction: column;
    }

    .safit-cookie-btn {
        width: 100%;
        text-align: center;
    }
}
