#didak-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 -1px 10px 0 rgba(0, 0, 0, 0.2);
    display: none;
}

#didak-cookie-banner p {
    margin: 0 0 1em;
}

#didak-cookie-banner button,
#didak-cookie-preferences button,
#didak-necessary-cookies-warning button {
    margin: 0 10px 10px 0;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#didak-cookie-preferences,
#didak-necessary-cookies-warning > div {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#didak-necessary-cookies-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99999;
    display: none;
}

#didak-cookie-preferences h2,
#didak-necessary-cookies-warning h2 {
    margin-top: 0;
}

#didak-cookie-preferences > div {
    margin-bottom: 20px;
}

#didak-cookie-preferences label {
    font-weight: bold;
}

#didak-cookie-preferences p {
    margin: 5px 0 10px 20px;
    font-size: 1.2em;
}

.didak-show-specific-cookies {
    margin-left: 10px;
    font-size: 0.9em;

}

.didak-specific-cookies {
    margin-left: 0px;
    font-size: 0.9em;
    background-color: #f1f1f1;
    padding: 6px;
    border-radius: 4px;
}

#didak-settings-icon {
    position: fixed;
    z-index: 9998;
    background-size: cover;
    cursor: pointer;
}

/* Media query for smaller screens */
@media screen and (max-width: 768px) {
    #didak-settings-icon {
        transform: scale(0.7);
        transform-origin: bottom left;
    }
}

#didak-cookie-policy {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

#didak-cookie-policy h2 {
    margin-top: 0;
}

#didak-close-policy {
    margin-top: 20px;
}