/* ============================================
   Webvoria Cookie Consent Banner
   GDPR-compliant — stile CookieYes
   ============================================ */

/* Overlay */
.wv-cb__overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .4);
    z-index: 99998;
    opacity: 0;
    transition: opacity .25s ease;
}
.wv-cb[data-visible="true"] .wv-cb__overlay {
    opacity: 1;
}

/* Container */
.wv-cb__container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, .1);
    padding: 24px 28px;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.wv-cb[data-visible="true"] .wv-cb__container {
    transform: translateY(0);
}

/* Layout principale */
.wv-cb__main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.wv-cb__icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

/* Testo */
.wv-cb__title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.wv-cb__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.wv-cb__link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.wv-cb__link:hover {
    text-decoration: underline;
}

/* Pulsanti */
.wv-cb__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.wv-cb__btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: background .15s ease, transform .1s ease;
    white-space: nowrap;
    font-family: inherit;
}
.wv-cb__btn:active {
    transform: scale(.97);
}

.wv-cb__btn--accept {
    background: #2563eb;
    color: #fff;
}
.wv-cb__btn--accept:hover {
    background: #1d4ed8;
}

.wv-cb__btn--necessary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.wv-cb__btn--necessary:hover {
    background: #e2e8f0;
}

.wv-cb__btn--settings {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}
.wv-cb__btn--settings:hover {
    background: #eff6ff;
}

/* ============================================
   Vista impostazioni
   ============================================ */
.wv-cb__settings {
    max-width: 640px;
    margin: 0 auto;
}

.wv-cb__settings .wv-cb__title {
    margin-bottom: 8px;
}

.wv-cb__settings .wv-cb__desc {
    margin-bottom: 20px;
}

.wv-cb__settings .wv-cb__actions {
    margin-top: 20px;
    justify-content: flex-end;
}

/* Categoria cookie */
.wv-cb__category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.wv-cb__cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wv-cb__cat-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
}

.wv-cb__cat-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.wv-cb__cat-badge {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 3px 8px;
    border-radius: 999px;
}

.wv-cb__cat-desc {
    font-size: 12px;
    color: #64748b;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .wv-cb__container {
        padding: 20px 16px;
    }
    .wv-cb__main {
        flex-direction: column;
        gap: 14px;
    }
    .wv-cb__icon {
        display: none;
    }
    .wv-cb__actions {
        flex-wrap: wrap;
        width: 100%;
    }
    .wv-cb__btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}
