/* Banner consenso cookie - Sistema Group Engineering */
#sg-cookie, #sg-cookie * { box-sizing: border-box; }
#sg-cookie[hidden] { display: none; }

#sg-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    font-family: inherit;
    animation: sg-cookie-in .4s ease;
}
@keyframes sg-cookie-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sg-cookie-box {
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.sg-cookie-text { flex: 1 1 340px; min-width: 260px; }
.sg-cookie-text strong { display: block; font-size: 15px; color: #12203b; margin-bottom: 4px; }
.sg-cookie-text p { font-size: 13.5px; line-height: 1.5; color: #4a5568; margin: 0; }
.sg-cookie-text a { color: #0950e6; text-decoration: underline; }

.sg-cookie-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
    align-items: center;
}

.sg-cookie-btn {
    border: none;
    border-radius: 24px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease, transform .15s ease;
}
.sg-cookie-btn:not(.ghost) { background: #0950e6; color: #fff; }
.sg-cookie-btn:not(.ghost):hover { background: #073fbb; transform: translateY(-1px); }
.sg-cookie-btn.ghost {
    background: transparent;
    color: #4a5568;
    border: 1px solid #cbd2e0;
}
.sg-cookie-btn.ghost:hover { border-color: #0950e6; color: #0950e6; }

@media (max-width: 640px) {
    .sg-cookie-box { padding: 16px; }
    .sg-cookie-actions { width: 100%; }
    .sg-cookie-btn { flex: 1; }
}

/* Tabella cookie nella pagina Cookie Policy */
.sg-cookie-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
table.sg-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 560px;
}
table.sg-cookie-table th,
table.sg-cookie-table td {
    border: 1px solid #e4e8f0;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
table.sg-cookie-table th { background: #f5f7fb; font-weight: 700; color: #12203b; }
table.sg-cookie-table td { color: #4a5568; }
