#ciast-kontener {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-family: "Poppins", sans-serif;
}

.ciast-okno1,
.ciast-okno2 {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 660px;
    width: calc(100% - 40px);
    margin: auto;
    box-sizing: border-box;
    position: relative;
    transform: translateY(0);
    color: #333333;
}

.ciast-content1 {
    padding: 90px 60px 55px;
    position: relative;
}

.ciast-content1 .ikona_cookies {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 135px;
    height: auto;
}

.ciast-header1 {
    margin-bottom: 35px;
}

.ciast-tytul1 {
    font-size: 22px;
    line-height: 24px;
    font-weight: 600;
    margin: 0;
}

.ciast-body1 {
    margin-bottom: 5px;
}

.ciast-komunikat-opis {
    margin-bottom: 35px;
    line-height: 1.5;
}

.ciast-content2 {
    padding: 40px 60px;
}

.ciast-header2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.ciast-tytul2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.ciast-btn-zamknij {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
    transform-origin: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 -10px 0 0;
}

.ciast-btn-zamknij:hover {
    transform: rotate(180deg);
}

.ciast-btn-zamknij svg {
    width: 24px;
    height: 24px;
}

.ciast-body2.scroll {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 8px;
    -webkit-overflow-scrolling: touch;
}

.ciast-body2.scroll::-webkit-scrollbar {
    width: 8px;
}

.ciast-body2.scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ciast-body2.scroll::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.ciast-body2.scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.ciast-komunikat-opis, 
.ciast-opis {
    font-size: 15px;
    line-height: 1.5;
    text-align: justify;
}
.ciast-kropki {
    color: #333333 !important
}
.ciast-footer {
    padding: 35px 0 0;
}

.ciast-komunikat-btn-kontener {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.ciast-btn {
    flex: 1 1 auto;
    padding: 16px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    white-space: nowrap;
}

.ciast-btn:hover {
    opacity: 0.8;
}

.ciast-btn:focus-visible,
.ciast-btn-zamknij:focus-visible,
.ciast-switch__input:focus-visible + .ciast-switch__slider,
#ciast-kontener a:focus-visible {
    outline: 2px solid #1863dc;
    outline-offset: 2px;
}

.ciast-okno1:focus,
.ciast-okno2:focus {
    outline: none;
}

.ciast-polityka {
    color: #1863dc;
    text-decoration: underline;
}

.ciast-btn-dostosuj {
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    color: #2e2d2c;
    border-color: #e2e2e2;
    background-color: transparent;
}

/* "Odrzuć wszystko" i "Akceptuj wszystko" wyglądają identycznie (równorzędny wybór - wytyczne EDPB) */
.ciast-btn-wybor {
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    color: #FFFFFF;
    border-color: #2e2d2c;
    background-color: #2e2d2c;
}

.ciast-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    cursor: pointer;
}

.ciast-switch__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.ciast-switch__input:checked + .ciast-switch__slider {
    background-color: #00ac09;
}

.ciast-switch__input:checked + .ciast-switch__slider:before {
    transform: translateX(24px);
}

.ciast-switch__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.ciast-switch__slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.ciast-zgoda {
    margin-bottom: 16px;
}

.ciast-zgoda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ciast-accordion-btn {
    font-weight: bold;
    cursor: pointer;
    color: #333333;
}

.ciast-zawsze-aktywne {
    color: #00ac09;
    font-size: 14px;
}

.ciast-zgoda-opis {
    font-size: 14px;
    line-height: 1.5;
}

.ciast-horizontal-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 16px 0;
}

.ciast-pokaz-wiecej-btn,
.ciast-pokaz-mniej-btn {
    color: #1863dc;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.ciast-pokaz-wiecej-btn:hover,
.ciast-pokaz-mniej-btn:hover {
    text-decoration: underline;
}

.ciast-wiecej-content {
    margin-top: 8px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    #ciast-kontener {
        padding: 10px;
    }

    .ciast-okno1,
    .ciast-okno2 {
        width: calc(100% - 20px);
        margin: 10px auto;
    }

    .ciast-content1 {
        padding: 60px 30px 40px;
    }

    .ciast-content2 {
        padding: 25px 30px 35px
    }

    .ciast-content1 .ikona_cookies {
        width: 110px;
    }

    .ciast-footer {
        padding: 20px 0 0;
    }

    .ciast-header1 {
        margin-bottom: 25px;
    }

    .ciast-komunikat-opis {
        margin-bottom: 30px;
    }

    .ciast-tytul1,
    .ciast-tytul2 {
        font-size: 20px;
    }

    .ciast-komunikat-opis,
    .ciast-zgoda-opis {
        font-size: 14px;
    }

    .ciast-komunikat-btn-kontener {
        flex-direction: column;
        gap: 12px;
    }

    .ciast-btn {
        width: 100%;
        padding: 10px 20px;
    }

    .ciast-body2.scroll {
        max-height: calc(100vh - 300px);
    }

    .ciast-zgoda-header {
        align-items: flex-start;
        gap: 8px;
    }

    .ciast-switch {
        width: 40px;
        height: 20px;
    }

    .ciast-switch__slider:before {
        height: 16px;
        width: 16px;
        left: 2px;
        bottom: 2px;
    }

    .ciast-switch__input:checked + .ciast-switch__slider:before {
        transform: translateX(20px);
    }
}

@media (max-width: 480px) {
    #ciast-kontener {
        padding: 5px;
    }

    .ciast-okno1,
    .ciast-okno2 {
        width: calc(100% - 10px);
        margin: 5px auto;
    }

    .ciast-content2 {
        padding: 40px 15px 25px;
    }

    .ciast-content1 {
        padding: 50px 15px 25px;
    }

    .ciast-tytul1,
    .ciast-tytul2 {
        font-size: 17px;
        line-height: 22px;
    }

    .ciast-komunikat-opis,
    .ciast-zgoda-opis {
        font-size: 13px;
    }

    .ciast-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .ciast-body2.scroll {
        max-height: calc(100vh - 285px);
    }

    .ciast-zgoda {
        margin-bottom: 12px;
    }

    .ciast-horizontal-separator {
        margin: 12px 0;
    }

    .ciast-zawsze-aktywne {
        font-size: 12px;
    }

    .ciast-content1 .ikona_cookies {
        width: 85px;
        top: 10px;
        right: 10px;
    }

    .ciast-header1 {
        margin-bottom: 15px;
    }

    .ciast-komunikat-opis {
        margin-bottom: 20px;
    }

    .ciast-btn-zamknij {
        position: absolute;
        margin: 0;
        top: 0;
        right: 0;
    }
    
    .ciast-header2 {
        margin-bottom: 10px;
    }
   .ciast-opis {
        font-size: 14px;
    }

    .ciast-footer {
        padding: 25px 0 0;
    }
}