/* ============================================================
   GDPR cookie dialog — Paleo (restyled)
   Plugin markup: .gdprcookie > [ div(title), p(message),
   .gdprcookie-types, .gdprcookie-buttons > button(accept), button(advanced) ]
   NOTE: the plugin builds the inner containers as <div class=gdprcookie-types/>
   and <div class=gdprcookie-buttons/> (unquoted, trailing slash), so the actual
   class names are "gdprcookie-types/" and "gdprcookie-buttons/". We therefore
   target them with substring attribute selectors so the rules apply either way.
   ============================================================ */

.gdprcookie {
    z-index: 999999999;
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 440px;
    max-width: calc(100% - 48px);
    box-sizing: border-box;
    padding: 24px 26px 22px;
    background: #ffffff;
    color: #444;
    font-family: 'Nunito', -apple-system, Segoe UI, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    border: 0;
    border-top: 4px solid #65818c;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
    animation: gdpr-in .35s ease both;
}
@keyframes gdpr-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* title (first <div> inside .gdprcookie) */
.gdprcookie > div:first-child,
.gdprcookie h1,
.gdprcookie h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: #65818c;
    margin: 0 0 10px;
    line-height: 1.3;
}
.gdprcookie p { margin: 0 0 16px; }
.gdprcookie a { color: #65818c; text-decoration: underline; }
.gdprcookie a:hover { color: #445a64; }

/* ===== buttons ===== */
[class*="gdprcookie-buttons"] { text-align: left; margin-top: 4px; }
[class*="gdprcookie-buttons"] button {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .4px;
    padding: 11px 20px;
    margin: 8px 10px 0 0;
    border-radius: 4px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
/* primary = "Accetta cookies" */
[class*="gdprcookie-buttons"] button:first-child {
    background: #65818c;
    color: #fff;
    border: 1px solid #65818c;
}
[class*="gdprcookie-buttons"] button:first-child:hover { background: #566e78; border-color: #566e78; }
/* secondary = "Preferenze cookies" */
[class*="gdprcookie-buttons"] button:last-child {
    background: #fff;
    color: #65818c;
    border: 1px solid #65818c;
}
[class*="gdprcookie-buttons"] button:last-child:hover { background: #eef2f3; }
[class*="gdprcookie-buttons"] button:disabled { opacity: .45; cursor: default; }

/* ===== preferences (cookie types) ===== */
[class*="gdprcookie-types"] { margin-top: 4px; }
[class*="gdprcookie-types"] > div:first-child { font-weight: 600; color: #444; margin-bottom: 8px; }
[class*="gdprcookie-types"] ul { overflow: hidden; padding: 0; margin: 0 0 14px; }
[class*="gdprcookie-types"] li { display: block; list-style: none; float: left; width: 50%; padding: 5px 0; margin: 0; }
[class*="gdprcookie-types"] label { font-size: 13.5px; cursor: pointer; }
[class*="gdprcookie-types"] input[type=checkbox] { margin-right: 8px; vertical-align: middle; }

/* ===== mobile ===== */
@media (max-width: 600px) {
    .gdprcookie {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
        padding: 20px 18px 18px;
    }
    .gdprcookie > div:first-child,
    .gdprcookie h1, .gdprcookie h2 { font-size: 18px; }
    [class*="gdprcookie-buttons"] button { display: inline-block; }
    [class*="gdprcookie-types"] li { width: 100%; }
}
