.cpc-privacy-modal-wrapper {
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.32); /* backdrop gris */
}

.cpc-privacy-modal {
    max-width: 861px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 32px 24px 24px 24px;
    font-family: 'Inter', Arial, sans-serif;
    color: #222;
    font-size: 16px;
    position: relative;
    z-index: 10001;
}

.cpc-privacy-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.cpc-privacy-modal-desc {
    font-size: 14px;
    color: #444;
    margin-bottom: 24px;
    line-height: 1.6;
}

.cpc-privacy-modal-desc a {
    color: #0073aa;
    text-decoration: underline;
}

.cpc-privacy-modal-categories {
    margin-bottom: 28px;
}

.cpc-privacy-modal-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFF;
    border: 1px solid #e3e8ee;
    padding: 0 18px 0 0;
    min-height: 65px;
    transition: box-shadow 0.2s;
}

.cpc-privacy-modal-category:last-child {
    margin-bottom: 0;
}

.cpc-category-toggle {
    background: none;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 0 0 18px;
    flex: 1;
    min-height: 56px;
    text-align: left;
}

.cpc-category-arrow {
    font-size: 18px;
    margin-right: 10px;
    width: 40px;
    height: 40px;
    background: #F1F1F1;
    border: 1px solid #C9C9C9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.cpc-category-toggle[aria-expanded="true"] .cpc-category-arrow {
    transform: rotate(180deg);
}

.cpc-category-title {
    color: #222;
    font-weight:700;
}

.cpc-category-switch {
    display: flex;
    align-items: center;
    margin-left: 18px;
}

.cpc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cpc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cpc-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #e3e8ee;
    transition: .4s;
    border-radius: 24px;
}

.cpc-switch input:checked + .cpc-slider {
    background-color: #2ecc71;
}

.cpc-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cpc-switch input:checked + .cpc-slider:before {
    transform: translateX(20px);
}

.cpc-slider.cpc-slider-disabled {
    cursor: not-allowed;
    
}

.cpc-switch input:disabled + .cpc-slider:before {
    background: #f0f0f0;
    box-shadow: none;
}

.cpc-switch input:disabled + .cpc-slider {
    opacity: 0.7;
    cursor: not-allowed;
}

.cpc-privacy-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}
    
.cpc-btn {
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 0px !important;
    padding: 12px 54px !important;
    border: none !important;
    cursor: pointer !important;
}

.cpc-btn-primary {
    background: #0B3C59 !important;
    color: #fff !important;
}

.cpc-btn-primary:hover {
    background: #005f85 !important;    
    color: #fff !important;
}

.cpc-accept-only-necessary-cookies {
    font-weight: 700;
    font-size: 14px;
    color: #0B3C59;
    cursor: pointer;
    text-decoration: underline;
}

.cpc-category-description {
    background: #FFF;
    border: 1px solid #e3e8ee;
    padding: 20px;
    border-top: 0px;
    display: none;
}

@media (max-width: 980px) {
    .cpc-privacy-modal {
        max-width: 90%;
        margin-left: 4%;
        padding: 18px 6vw 18px 6vw;
        font-size: 14px;
    }
    .cpc-category-toggle {
        padding: 0 0 0 8px;
        font-size: 13px;
    }
    .cpc-category-title {
        max-width: 60%;
    }
    .cpc-privacy-modal-title {
        font-size: 18px;
    }
    .cpc-privacy-modal-desc {
        font-size: 14px;
    }
    .cpc-category-description {
        padding: 14px;
        font-size: 14px;
    }
    .cpc-btn {
        padding: 10px 24px;
        font-size: 16px;
        width: 100%;
    }
    .cpc-privacy-modal-actions {
        flex-direction: column;
        align-items: center !important;
        gap: 12px;
        flex-direction: column-reverse !important;
        align-items: stretch;
    }
}

@media (max-width: 540px) {
    .cpc-privacy-modal {
        margin-left: 3.33%;
    }
}

.cpc-privacy-modal-wrapper-welcome {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    pointer-events: none;
}

.cpc-privacy-modal-wrapper-welcome .cpc-privacy-modal {
    margin: 0 0 24px 24px;
    pointer-events: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    max-width: 433px;
    width: 100%;
    border: 1px solid #C9C9C9;
}

.cpc-privacy-modal-wrapper-welcome .cpc-privacy-modal-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 20px;
}

.cpc-privacy-modal-wrapper-welcome .cpc-privacy-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-direction: column-reverse;
    width: 100%;
}
.cpc-privacy-modal-wrapper-welcome .cpc-btn-primary {
    width: 100%;
}
.cpc-privacy-modal-wrapper-welcome .cpc-manage-cookies {
    font-size: 14px;
    font-weight: 700;
    color: #0B3C59;
    cursor: pointer;
    text-decoration: underline;
}


@media (max-width: 540px) {
    .cpc-privacy-modal-wrapper-welcome .cpc-privacy-modal {
        margin: 0 0 12px 6px;
        max-width: 98vw;
    }
}

.cpc-privacy-modal-close {
    position: absolute;
    right: 0;
    top: 0;
    margin-top: 10px;
    margin-right: 10px;
    cursor: pointer;
    z-index: 999;
}