:root {
    --header-color: #fff;
    --text-color: #fff;
    --primary-color: #1D2227;

    --link-color: #F39C12;
    /* Buttons */
    --accept-button-background: #4CAF50;
    --accept-button-text: #fff;
    --accept-button-border: #4CAF50;

    --decline-button-background: #Ff0000;
    --decline-button-text: #fff;
    --decline-button-border: #Ff0000;

    --customize-button-background: #0000FF;
    --customize-button-text: #fff;
    --customize-button-border: #0000FF;

    --scrollbar-color: #505050; 
    --checkbox-checked-color: #505050;
}


/* Główne style banera małego */
/* ------------------------------------------------------------------------------------- */
#ccm-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 9999;
    color: var(--text-color);
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 300;
}

#ccm-cookie-banner h3 {
    color: var(--header-color);
    margin-top: 0;
    font-size: 18px;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 400;
}

#ccm-cookie-banner p{
    font-size: 14px;
    margin-bottom: 10px;
}

#ccm-cookie-banner-small-link a {
    color: var(--link-color);
    text-decoration: none;
}

#ccm-cookie-banner-small-buttons {
    display: flex;
    justify-content: space-between;
}

/* Przyciski */
#ccm-accept-all,
#ccm-accept-all-2,
#ccm-save-preferences {
    margin: 5px;
    padding: 10px 15px;
    background: var(--accept-button-background);
    color: var(--accept-button-text);
    border: solid 2px var(--accept-button-border) !important;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 300;
    line-height: normal;
    font-size: 12px;
}

#ccm-decline-all,
#ccm-decline-all-2 {
    margin: 5px;
    padding: 10px 15px;
    background: var(--decline-button-background);
    color: var(--decline-button-text);
    border: solid 2px var(--decline-button-border) !important;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 300;
    font-size: 12px;
}
#ccm-cookie-banner button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 300;
    line-height: initial;
}

#ccm-customize,
#ccm-close-preferences {
    margin: 5px;
    padding: 10px 15px;
    background: var(--customize-button-background);
    color: var(--customize-button-text);
    border: solid 2px var(--customize-button-border) !important;
    transition: background 0.3s ease, transform 0.2s ease-in-out;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 300;
    font-size: 12px;
}

#ccm-customize:hover,
#ccm-close-preferences:hover {
    background: darken(var(--customize-button-background), 10%);
    transform: scale(1.05);
}

#ccm-accept-all:hover,
#ccm-accept-all-2:hover,
#ccm-save-preferences:hover {
    background: darken(var(--accept-button-background), 10%);
    transform: scale(1.05);
}

#ccm-decline-all:hover,
#ccm-decline-all-2:hover {
    background: darken(var(--decline-button-background), 10%);
    transform: scale(1.05);
}

/* Stylizacja tła po otworzeniu dużego bannera */
/* ------------------------------------------------------------------------------------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 9998;
    display: none;
}

/* Główne style banera dużego*/
/* ------------------------------------------------------------------------------------- */
#ccm-preferences-banner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Wyrównanie na środku ekranu */
    width: 90%;
    max-width: 800px;
    max-height: 500px;

    background: var(--primary-color); /* Ciemne tło */
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 30px;
    padding-top: 0px;
    z-index: 9999;
    overflow-y: auto;
    text-align: left;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
}

.scrollable-content {
    max-height: 300px;  
    overflow-y: auto;   
    margin-bottom: 20px; 
    padding-right: 15px; 
}

.scrollable-content::-webkit-scrollbar {
    width: 8px; 
}

.scrollable-content::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-color);  
    border-radius: 10px;  
    transition: background-color 0.3s ease; 
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-color); 
}

.scrollable-content::-webkit-scrollbar-track {
    background-color: #f1f1f1;  
    border-radius: 10px;  
}

.scrollable-content div {
    margin-bottom: 20px; 
}

.scrollable-content h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin: 10px 0;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 800;
}

.scrollable-content p {
    font-size: 14px;
    color: #ddd;
    margin-top: 5px;
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 300;
}

/* Styl dla checkboxa */
.scrollable-content input[type="checkbox"] {
    -webkit-appearance: none;  /* Działa na Webkit */
    -moz-appearance: none;     /* Działa na Firefox */
    appearance: none;          /* Standardowy wygląd */
    width: 20px;
    height: 20px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    background-color: #f1f1f1;  /* Kolor tła, gdy checkbox nie jest zaznaczony */
    border: 2px solid #ccc;     /* Kolor obramowania */
    position: relative;         /* Potrzebne dla pseudoelementów */
    transition: background-color 0.3s, border-color 0.3s;
}

/* Styl dla checkboxa, gdy jest zaznaczony */
.scrollable-content input[type="checkbox"]:checked {
    background-color: var(--checkbox-checked-color);  /* Kolor tła, gdy zaznaczony */
    border-color: var(--checkbox-checked-color);      /* Kolor obramowania */
}

/* Styl dla checkboxa po najechaniu */
.scrollable-content input[type="checkbox"]:hover {
    background-color: #e0e0e0;  /* Kolor tła przy hoverze */
    border-color: #bbb;         /* Kolor obramowania przy hoverze */
}

/* Styl ptaszka (checkmark) */
.scrollable-content input[type="checkbox"]:checked::before {
    content: '\2713';  /* Unicode symbol ptaszka */
    position: absolute;
    top: 50%;  /* Wyrównanie w pionie */
    left: 50%; /* Wyrównanie w poziomie */
    transform: translate(-50%, -50%); /* Centrowanie na środku */
    font-size: 16px; /* Rozmiar ptaszka */
    color: white; /* Kolor ptaszka */
}

/* Opcjonalnie: zmiana koloru ptaszka przy hoverze */
.scrollable-content input[type="checkbox"]:hover::before {
    color: #fff;
}


/* Nagłówek H2 */
#ccm-preferences-banner h2 {
    font-size: 26px;
    font-weight: 300;
    margin-bottom: 15px;
    text-align: left;
    color: var(--header-color);
    font-family: 'Arial', 'Verdana', sans-serif !Important;
    font-weight: 400;
}

/* Nagłówek H3 */
#ccm-preferences-banner h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--checkbox-checked-color);
}

/* Paragrafy */
#ccm-preferences-banner p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Style checkboxów */
#ccm-preferences-banner input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
}

#ccm-cookie-banner-big-buttons{
    display: flex;
    width: 100%;
    justify-content: space-between;
    border-radius: 4px !important;
}
#ccm-cookie-banner-big-buttons button{
    border-radius: 4px;
    cursor: pointer;
}

/* Style dla przycisków */
.button-container button {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: none;
    border-radius: 4px !important;
    background: #3498db; /* Niebieskie przyciski */
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    cursor: pointer;
}

.button-container button:hover {
    background: #2980b9; /* Ciemniejszy niebieski przy hoverze */
    transform: scale(1.05);
    cursor: pointer;
}

.button-container button:active {
    transform: scale(0.98); /* Zmniejszenie przycisku po kliknięciu */
}

/* Style dla ikony cookie */
.cookie-icon {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f39c12;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    z-index: 9999;
  }
  
  .cookie-icon svg {
    fill: #fff;
  }
  
  /* Klasa do pokazywania ikony */
  .cookie-icon-visible {
    display: flex;
  }
/* Responsywność dla urządzeń mobilnych */
/* ------------------------------------------------------------------------------------- */
@media (max-width: 700px) {
    #ccm-preferences-banner {
        top: 0;
        display: none;
        width: calc(100vw - 60px); /* Cała szerokość ekranu */
        height: 100vh; /* Domyślna wysokość na desktopie */
        left: 0;
        right: 0;
        transform: none;
        max-height: none;
    }

    #ccm-preferences-banner h2 {
        margin-top: 10px;
        font-size: 22px;
    }

    #ccm-preferences-banner h3 {
        font-size: 16px;
    }

    #ccm-preferences-banner p {
        font-size: 13px;
    }

    #ccm-cookie-banner-big-buttons{
        display: flex;
        flex-direction: column !important;
        padding-bottom: 10px;
    }
    .scrollable-content{
        overflow: auto !important;
        height: fit-content !important;
        max-height: none;
        padding-right: 0px;
    }
}
@media (max-width: 600px) {
    #ccm-cookie-banner {
        width: calc(100vw - 38px); 
        left: 0px;
        bottom: 0px;
        padding-right: 20px !important;
    }
    #ccm-cookie-banner-small-buttons{
        display: flex;
        flex-direction: column;
    }

    #ccm-cookie-banner {
        padding-right: 20px !important;
    }

    #ccm-cookie-banner-small-buttons {
        gap: 12px; 
    }

    #ccm-cookie-banner-small-buttons button {
        padding: 14px 17px;
    }
}




