/*
@keyframes commonPrivacy_hidePanel {
    0% {
        display: block;
        opacity: 1;
    }

    99% {
        display: block;
        opacity: 0;
    }

    100% {
        display: none;
        opacity: 0;
    }
}
*/

.commonPrivacy {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;

    width: auto;

    display: flex;
    justify-content: flex-end;

    flex-direction: column;
    align-items: center;

    pointer-events: none;
    z-index: 100000;
    max-width: 100vw;

    /*background-color: rgba(0, 0, 0, 0.5); */
}

/* zorbazela lista */
commonPrivacy--default {}

/* zorbazen dialog s vyberem konkretnich cookies */
commonPrivacy--options {}

/* souhlasy minimalizovany do leveho dolniho rohu*/
commonPrivacy--minimized {}


.commonPrivacy__bar {
    display: flex;
    flex-direction: column;

    pointer-events: auto;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(200, 200, 200, 0.5);

    padding: 20px 50px 10px 50px;
    max-width: 640px;
}

.commonPrivacy__bar--hidden {
    /*animation: commonPrivacy_hidePanel 0.5s 1;*/
    /*animation-fill-mode: forwards;*/
    display: none;
}

.commonPrivacy__header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 26px;
}

.commonPrivacy__description {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;

    max-height: 50vh;
    overflow: auto;
}

.commonPrivacy__buttons {
    align-self: center;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "left main""bottom bottom";
    column-gap: 20px;
    row-gap: 5px;
    justify-content: center;
    max-width: 300px;
}

.commonPrivacy__buttons--onlyOneButton {
    grid-template-columns: 1fr;
    grid-template-areas: "main""bottom";
}

.commonPrivacy__button {
    min-width: 150px;
    cursor: pointer;
    border: 1px solid #cacaca;
    border-radius: 3px;
    background-color: #f5f5f5;
    height: 35px;
    font-size: 16px;
}

.commonPrivacy__button--disallowAll {
    grid-area: left;
}

.commonPrivacy__button--disallowAll:hover {
    background-color: #faa;
    color: #800;

    outline: 2px solid #800;
    outline-offset: 2px;
}

.commonPrivacy__button--allowAll {
    grid-area: main;
    background-color: #007c47;
    border-color: #007c47;
    color: #fff;
    font-weight: bold;
}

.commonPrivacy__button--allowAll:hover {
    outline: 2px solid #007c47;
    outline-offset: 2px;
}

.commonPrivacy__button--options {
    grid-area: bottom;
    text-align: center;
    text-decoration: underline;
    border: none;
    background-color: transparent;
    /*white-space: nowrap;*/
    line-height: 18px;
    font-size: 16px;
}

.commonPrivacy__button--options:hover {
    text-decoration: none;
}



/* DETAIL - DIALOG S PODROBNYM NASTAVENÍM */
.commonPrivacy__dialog {
    pointer-events: auto;

    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(200, 200, 200, 0.5);

    padding: 35px;

    max-width: 1000px;
    max-height: 100vh;
    overflow: auto;


}

.commonPrivacy__dialog--hidden {
    /*animation: commonPrivacy_hidePanel 0.5s 1;*/
    /*animation-fill-mode: forwards;*/
    display: none;
}

.commonPrivacy__dialogHeader {
    font-size: 30px;
    margin-bottom: 15px;
}

.commonPrivacy__dialogDescription {
    font-size: 16px;
}

.commonPrivacy__dialogGroups {
    height: 300px;
    overflow: auto;
    margin: 10px 0 25px;
}

.commonPrivacy__dialogGroup {
    display: grid;
    grid-template-columns: 1fr 130px;
    grid-template-areas: "label button""description description";
    padding: 10px 0;
}

.commonPrivacy__dialogGroupLabel {
    grid-area: label;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
}

.commonPrivacy__dialogGroupLabel:hover {
    background-color: #eee;
}


.commonPrivacy__checkbox {
    width: auto;
    margin-right: 7px;
}

.commonPrivacy__dialogGroupButton {
    display: flex;
    grid-area: button;
    align-self: center;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.commonPrivacy__dialogGroupButton:hover {
    background-color: #f0f0f0;
}

.commonPrivacy__dialogGroupButtonNumber {
    min-width: 50px;
    height: 50px;
    border-radius: 25px;
    font-size: 16px;
    background-color: #eee;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.commonPrivacy__dialogGroupButtonText {
    font-size: 14px;
    white-space: nowrap;
    flex: 1;
}

.commonPrivacy__dialogGroupHeader {
    font-size: 20px;
    font-weight: bold;
}

.commonPrivacy__dialogGroupDescription {
    grid-area: description;
    padding: 5px 28px;
    width: 100%;
    font-size: 14px;
    text-align: left;
}

.commonPrivacy__dialogAgreements {
    padding-left: 30px;
}

.commonPrivacy__dialogAgreements--hidden {
    display: none;
}

.commonPrivacy__dialogAgreement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px 0;
}

.commonPrivacy__dialogAgreementCheckbox {
    margin-right: 7px;
    width: auto;
}

.commonPrivacy__dialogAgreementLabel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-right: 7px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}

.commonPrivacy__dialogAgreementLabel:hover {
    background-color: #eee;
}

.commonPrivacy__dialogAgreementName {}

.commonPrivacy__dialogAgreementType:before {
    content: "(";
}

.commonPrivacy__dialogAgreementType {
    margin-left: 5px;
    font-size: 14px;
}

.commonPrivacy__dialogAgreementType:after {
    content: ")";
}

.commonPrivacy__dialogAgreementDescription {
    width: 100%;
    padding-left: 25px;
    font-size: 14px;
    text-align: left;
}

.commonPrivacy__dialogAgreementMoreInfo {
    font-size: 14px;
    padding-left: 25px;
}

.commonPrivacy__dialogButtons {

    display: grid;
    grid-template-columns: 1fr min-content min-content;
    grid-template-areas: "left right main";
    column-gap: 10px;

    /*
    display: flex;
    row-gap: 10px;
    flex-direction: column;*/
}

.commonPrivacy__dialogButton {
    display: block;
    cursor: pointer;
    border: 1px solid #cacaca;
    border-radius: 3px;
    background-color: #f5f5f5;
    height: 45px;
    padding-left: 15px;
    padding-right: 15px;
}

.commonPrivacy__dialogButton--main {
    background-color: #007c47;
    border-color: #007c47;
    color: #fff;
}

.commonPrivacy__dialogButton--allowAll {
    grid-area: main;
    min-width: 150px;
}

.commonPrivacy__dialogButton--allowSelected {
    grid-area: right;
    min-width: 150px;
}

.commonPrivacy__dialogButton--disallowAll {
    grid-area: left;
    justify-self: start;
    min-width: 100px;
}


/* BADGE levy dolni roh */
.commonPrivacy__badge {
    pointer-events: auto;

    display: grid;
    grid-template-areas: "icon text";
    column-gap: 5px;

    position: fixed;
    left: 15px;
    bottom: 15px;

    min-width: 60px;

    background-color: #f8f8f8;
    border-radius: 7px;
    box-shadow: 0px 5px 10px rgba(200, 200, 200, 0.5);
    padding: 10px 15px 10px 10px;
    cursor: pointer;
}

.commonPrivacy__badge:hover {
    text-decoration: underline;
}

.commonPrivacy__badge--hidden {
    display: none;
}

.commonPrivacy__badgeIcon {
    grid-area: icon;
    width: 18px;
    height: 18px;
    justify-self: center;
    align-self: center;
}

.commonPrivacy__badgeText {
    grid-area: text;
    justify-self: start;
    align-self: center;
    font-size: 13px;
    color: rgba(100, 100, 100, 1);
}

@media all and (min-width: 0px) and (max-width: 1000px) {
    .commonPrivacy {
        bottom: 0;
        top: 0;
        right: 0;
        left: 0;

        padding-left: 5px;
        padding-right: 5px;
    }

    .commonPrivacy--default,
    .commonPrivacy--options {
        /*background-color: rgba(0, 0, 0, 0.5);*/
    }

    .commonPrivacy__dialog {
        max-width: 100vw;
        padding: 20px;
    }

    .commonPrivacy__description {
        font-size: 14px;
    }

    .commonPrivacy__dialogHeader {
        font-size: 22px;
    }

    .commonPrivacy__dialogDescription {
        font-size: 14px;
    }

    .commonPrivacy__dialogGroups {
        max-height: 300px;
        height: auto;
    }

    .commonPrivacy__dialogGroup {
        grid-template-columns: 1fr;
        grid-template-areas: "label""button""description";
    }

    .commonPrivacy__dialogGroupHeader {
        font-size: 16px;
    }

    .commonPrivacy__dialogGroupDescription {
        font-size: 13px;
    }

    .commonPrivacy__dialogGroupButton {
        margin-top: 10px;
    }

    .commonPrivacy__dialogGroupButtonNumber {
        height: 35px;
        min-width: 35px;
    }

    .commonPrivacy__dialogAgreementName {
        flex: 1;
    }

    .commonPrivacy__dialogAgreementDescription {
        font-size: 13px;
    }

    .commonPrivacy__dialogButtons {
        display: flex;
        flex-wrap: wrap;
        flex-direction: center;
        row-gap: 10px;
        justify-content: center;
    }

    .commonPrivacy__dialogButton {
        height: 35px;
    }
}

@media all and (min-width: 0px) and (max-width: 375px) {
    .commonPrivacy {
        padding-bottom: 5px;
    }

    .commonPrivacy__bar {
        padding: 20px;
        box-shadow: 0px 0px 10px rgb(200 200 200 / 80%);
    }

    .commonPrivacy__buttons {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "left"
            "bottom";
        column-gap: 0;
    }

    .commonPrivacy__button--options {
        font-size: 14px;
    }
}