#cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px 40px;
    box-shadow: 0 0.625em 1.875em rgb(2 2 3 / 28%);
    border-radius: 12px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: min(1100px, 90%);
    gap: 27px;
}

.cookie-h1 {
    font-size: 1.15em;
    color: #AD2661;
    margin: 0;
}

.cookie-p {
    font-size: 0.86em;
    margin: 0;
    text-align: justify;
}

.cookie-btn {
    display: flex;
    flex-direction: column;
    flex: 4;
}

.cookie-text {
    display: flex;
    flex-direction: column;
    flex: 6;
    gap: 10px;
}

#cookie-banner button, #cookie-settings button {
    border: none;
    padding: 15px 20px;
    margin: 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.85em;
    text-wrap: nowrap;
    transition: all 0.3s;
}

.cookie-obsah p {
    font-size: 0.9em;
}

.prim {
    background-color: #AD2661;
    color: white;
}

.prim:hover {
    background-color: #921f51;
}

.sec {
    background-color: #eaeff2;
    color: #AD2661;
}

.sec:hover {
    background-color: #d1d7da;
}

#cookie-banner a {
    color: #AD2661;
    text-decoration: underline;
}

/* Modal backdrop */
#modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* General modal styling */
#cookie-settings {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0.625em 1.875em rgba(2, 2, 3, 0.28);
    z-index: 9999;
    width: min(1100px, 90%);
}

.cookie-nadpisy {
    font-size: 1em;
    color: #AD2661;
    font-weight: 500;
}

.cookie-category {
    padding: 10px 20px;
    background: #f0f4f7;
    border-radius: 4px;
}

.set-header {
    border-bottom: 1px solid #d1d1d1;
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
} 

.cookie-footer {
    border-top: 1px solid #d1d1d1;
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
}

.set-header svg {
    background-color: #e4e4e4;
    padding: 9px;
    border-radius: 10px;
    cursor: pointer;
}

.set-header svg:hover {
    background-color: #d8d7d7;
}

.cookie-description {
    display: none;
    font-size: 0.9em;
    color: #555;
}

.pouzivame {
    font-size: 0.8em;
}

.cookie-obsah {
    padding: 15px 35px;
    min-height: 300px;
    max-height: 300px;
    overflow-y: auto;
}

.cookie-vyber {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.cookie-set {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

/* On-Off Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #AD2661;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

/* Modal backdrop */
#modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        padding: 30px;
        width: 80%;
        bottom: 20px;
        gap: 15px;
    }

    .cookie-btn {
        flex-direction: row;
    }
    

}

@media (max-width: 450px) {
    #cookie-banner {
        flex-direction: column;
        padding: 30px;
        width: 80%;
        bottom: 20px;
        gap: 15px;
    }

    .cookie-btn {
        flex-direction: column;
    }
    


}
