#consent-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}
#consent-popup.hidden {
    display: none !important;
}
#consent-popup .consent-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: 14px;
    max-width: 700px;
    width: 95%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
    animation: fadeInUp 0.3s;
}
#consent-popup .consent-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
#consent-popup .consent-description { font-size: 15px; color: #333; margin-bottom: 1.2rem; line-height: 1.6; }
#consent-popup .consent-group { border-top: 1px solid #eee; margin-top: 1rem; padding-top: 1rem; }
#consent-popup .consent-item { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem;}
#consent-popup .consent-item label { flex: 1; font-size: 14px; color: #222; padding-right: 1rem;}
#consent-popup .consent-item input[type="checkbox"] {margin-top: 3px; transform: scale(1.2);}
#consent-popup .consent-buttons { display: flex; gap: 1rem; margin-top: 2rem;}
#consent-popup .consent-buttons button { flex: 1; padding: 0.75rem 1.2rem; font-size: 15px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-weight: 500; transition: all 0.2s;}
#consent-popup .btn-accept { background: #d62828; color: #fff;}
#consent-popup .btn-accept:hover { background: #b32020;}
#consent-popup .btn-accept-selected { background: #fff; color: #333; border: 1px solid #ccc;}
#consent-popup .btn-accept-selected:hover { background: #f5f5f5;}
#consent-popup .btn-decline { background: transparent; color: #555; border: 1px solid #ddd;}
#consent-popup .btn-decline:hover { background: #f0f0f0;}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
 
#consent-popup.consent-popup-minimized {
    background: none !important;
    display: block !important;
    position: fixed !important;
    bottom: 32px !important;
    left: 32px !important;
    width: 2rem !important;
    height: 2rem !important;
    box-shadow: none !important;
    z-index: 99999 !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
}
/*
#consent-popup .consent-box,
#consent-popup-content {
    display: none !important;
}
*/
#consent-popup.consent-popup-minimized .consent-fab {
    display: flex !important;
}


.consent-fab {
    position: fixed;
    left: 32px;
    bottom: 32px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #0073e6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
    font-size: 32px;
    border: none;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, background 0.2s;
}
.consent-fab:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.23);
    background: #e9f3fb;
}
.hidden {display: none !important;}


#consent-popup.consent-popup-minimized #consent-popup-content {
    display: none !important;
}
#consent-popup:not(.consent-popup-minimized) #consent-popup-content {
    display: block !important;
}

#consent-popup.consent-popup-minimized .consent-fab {
    display: flex !important;
}
#consent-popup:not(.consent-popup-minimized) .consent-fab {
    display: none !important;
}

@media (max-width: 600px) {
    #consent-popup {
        align-items: flex-end;
        justify-content: center;
        padding: 0 0.5rem;
    }
    #consent-popup .consent-box {
        padding: 1.3rem 0.9rem 1rem 0.9rem;
        border-radius: 16px 16px 0 0;
        max-width: 500px;
        width: calc(100% - 1.8rem);
        margin-bottom: 0;
        margin-top: auto;
        box-shadow: 0 -6px 32px rgba(0,0,0,0.14);
        animation: slideUp 0.32s;
    }
    #consent-popup .consent-title {
        font-size: 1.08rem;
        font-weight: 700;
        margin-bottom: 1rem;
        text-align: left;
    }
    #consent-popup .consent-description {
        font-size: 15px;
        margin-bottom: 1.15rem;
        line-height: 1.6;
        color: #333;
        text-align: left;
    }
    #consent-popup .consent-group {
        padding-top: 0.8rem;
        margin-top: 1rem;
        border-top: 1px solid #eee;
    }
    #consent-popup .consent-item {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0.8rem;
    }
    #consent-popup .consent-item label {
        font-size: 14px;
        padding-right: 0.7rem;
        margin-bottom: 0;
        color: #222;
        flex: 1;
        line-height: 1.3;
    }
    #consent-popup .consent-item input[type="checkbox"] {
        margin-top: 0;
        margin-bottom: 0;
        margin-right: 5px;
        transform: scale(1.18);
    }
    #consent-popup .consent-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    #consent-popup .consent-buttons button {
        font-size: 15px;
        padding: 0.8rem 0.7rem;
        border-radius: 8px;
    }
    .consent-fab {
        left: 14px;
        bottom: 14px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    /* Ładne wejście popupa od dołu */
    @keyframes slideUp {
        from { transform: translateY(70px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
}
