#petitcookie {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #000;
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    max-height: 80%;
    overflow: auto;
    transform: translate(-50%, -50%);
    padding: 40px;
    box-shadow: 0px 0px 300px 100px #000;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#petitcookie-choices-panel {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #000;
    position: fixed;
    z-index: 10000;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    max-height: 80%;
    height: 400px;
    transform: translate(-50%, -50%);
    padding: 40px;
    box-shadow: 0px 0px 300px 100px #000;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#close-choices-panel {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(50%, -80%);
    height: 50px;
    width: 50px;
    border: none;
    background-color: #00b1b9;
    color: #fff;
    border-radius: 100%;
    cursor: pointer;
}

#petitcookie-categories {
    overflow: auto;
}

.petitcookie-category {
    width: 100%;
}

.petitcookie-category-label {
    font-weight: bold;
}

.petitcookie-service {
    display: flex;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}

.petitcookie-service-description {
    margin-bottom: 10px;
}

.petitcookie-service p {
    padding: 0;
    margin: 0;
}

.petitcookie-service-description {
    flex: 3;
}

.petitcookie-service-consent {
    flex: 1;
}

.petitcookie-service-consent button {
    border: 1px solid #00b1b9;
    color: #00b1b9;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.service-activated {
    background: #00b1b9 !important;
    color: #fff !important;
}

#petitcookie-buttons {
    display: flex;
    width: 100%;
}

#petitcookie-buttons > .petitcookie-button {
    flex: 0 0 calc(50% - 20px);
    margin: 0 10px;
}

.petitcookie-button {
    border: none;
    background: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: inherit;
}

.petitcookie-button:hover {
    opacity: 0.8;
}

#petitcookie-accept-button {
    background: #00b1b9;
    color: #fff;
}

#petitcookie-choices-button {
    border: 1px solid #00b1b9;
    color: #00b1b9;
}

#petitcookie-choices-open {
    position: fixed;
    bottom: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 100000;
}

@media (max-width: 500px){
    #petitcookie {
        justify-content: unset;
    }

    #close-choices-panel {
        transform: translate(0%, -75%);
    }

    #petitcookie-buttons{
        flex-direction: column;
    }

    .petitcookie-button {
        margin-bottom: 10px !important;
    }

    .petitcookie-service {
        flex-direction: column;
    }
}