/* entriso Cookies Shield - Public Styles */
:root {
    --ecc-primary: #6366F1;
    --ecc-bg: rgba(20, 20, 20, 0.85);
    --ecc-text: #ffffff;
    --ecc-radius: 12px;
    --ecc-blur: 15px;
}

.ecc-banner-wrap {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 99999999;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ecc-text);
}

.ecc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--ecc-bg);
    backdrop-filter: blur(var(--ecc-blur));
    -webkit-backdrop-filter: blur(var(--ecc-blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ecc-radius);
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.ecc-banner-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.ecc-banner-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.ecc-banner-content a {
    color: var(--ecc-primary);
    text-decoration: underline;
}

.ecc-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.ecc-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-transform: none;
}

.ecc-btn-primary { background: var(--ecc-primary); color: #fff; }
.ecc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }

.ecc-btn-secondary { background: rgba(255, 255, 255, 0.1); color: #fff; }
.ecc-btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

.ecc-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.ecc-btn-outline:hover { background: rgba(255, 255, 255, 0.05); }

/* Floating Layouts */
.ecc-layout-float-left .ecc-banner-inner { max-width: 450px; margin-left: 0; flex-direction: column; align-items: stretch; gap: 20px; }
.ecc-layout-float-right .ecc-banner-inner { max-width: 450px; margin-right: 0; flex-direction: column; align-items: stretch; gap: 20px; }

/* Modal */
.ecc-modal-wrap {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ecc-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.ecc-modal-container {
    position: relative;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    color: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ecc-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.ecc-modal-header h2 { margin: 0; font-size: 24px; font-weight: 800; }
.ecc-close-btn { background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; opacity: 0.5; }
.ecc-close-btn:hover { opacity: 1; }

.ecc-preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-bottom: 12px;
}

.ecc-pref-info strong { display: block; font-size: 15px; margin-bottom: 4px; }
.ecc-pref-info span { display: block; font-size: 13px; opacity: 0.6; }

.ecc-modal-footer { margin-top: 30px; }
.full-width { width: 100%; }

/* Switch for public (simplified from admin but same logic) */
.pl-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.pl-switch input { opacity: 0; width: 0; height: 0; }
.pl-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.1); transition: .4s; border-radius: 24px; }
.pl-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: white; transition: .4s; border-radius: 50%; }
input:checked + .pl-slider { background: var(--ecc-primary); }
input:checked + .pl-slider:before { transform: translateX(20px); }
.pl-switch.disabled { opacity: 0.5; cursor: not-allowed; }

/* Trigger Badge styling */
.ecc-trigger-badge {
    position: fixed;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ecc-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    padding: 0;
}
.ecc-trigger-badge:hover {
    transform: scale(1.08);
}
.ecc-trigger-badge svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Badge positions - Desktop */
.ecc-badge-pos-bottom-left { left: 20px; right: auto; }
.ecc-badge-pos-bottom-right { right: 20px; left: auto; }

@media (max-width: 768px) {
    .ecc-banner-wrap {
        padding: 10px !important;
    }
    .ecc-banner-inner { 
        flex-direction: column !important; 
        align-items: stretch !important; 
        gap: 20px !important; 
        padding: 20px 24px !important;
    }
    .ecc-banner-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .ecc-banner-actions .ecc-btn {
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .ecc-modal-container {
        padding: 24px 20px !important;
        border-radius: 16px !important;
    }
    .ecc-preference-item {
        padding: 12px 16px !important;
    }

    /* Badge positions - Mobile */
    .ecc-trigger-badge.ecc-badge-pos-mobile-bottom-left { left: 15px !important; right: auto !important; }
    .ecc-trigger-badge.ecc-badge-pos-mobile-bottom-right { right: 15px !important; left: auto !important; }
}
