/* 1.0 Accept permissions call to action
-----------------------------------------------------------------------------------------------*/
.divAcceptConsents {
    position: relative;
    background: #774646;
    color: #FFFFFF;
    font-family: arial, serif;
    padding: 5px;
    text-align: center;
    overflow: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #eeb4b4 #ffd5d5;
    z-index: 9999999;
}
.divAcceptConsents .divAcceptConsentsContent {
    font-size: 15px;
    line-height: 25px;
    font-family: arial, serif;
    font-weight: bold;
    padding: 0;
}
.divAcceptConsents .divAcceptConsentsContent .mainIcon {
    font-size: 20px;
}
/* Buttons */
.divAcceptConsents a {
    color: inherit;
    white-space: nowrap;
}
.divAcceptConsents a:hover {
    text-decoration: underline;
}
.divAcceptConsents .button {
    margin-right:10px;
    margin-left:10px;
    font-family: arial, serif;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    padding: 4px 20px;
    cursor: pointer;
    color: white;
}
.divAcceptConsents .btnAcceptAllConsents {
    background: #A70505;
    background: linear-gradient(0deg, rgb(167, 5, 5) 0%, rgb(249, 57, 57) 100%);
    border: 1px solid #6e0303;
    font-size: 14px;
}
.divAcceptConsents .btnRejectAllConsents {
    background: #616060;
    background: linear-gradient(0deg, rgb(121, 121, 121) 0%, rgb(222, 222, 222) 100%);
    border: 1px solid #cdcdcd;
}
.divAcceptConsents .consentsButtons.bottom .btnRejectAllConsents {
    margin-bottom: 15px;
}
.divAcceptConsents .btnAcceptConsentsShowDescription, .divAcceptConsents .btnOpenConsentsPopup {
    text-decoration: none;
    font-size: 14px;
}
/* More content */
.divAcceptConsentsDescription {
    display:none;
    margin: 20px 15px 15px;
    padding: 10px;
    background-color: #5e3737;
    color: #EBEBEB;
}
.divAcceptConsentsDescription p {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 21px;
}
.divAcceptConsentsDescription ul {
    max-width: 670px;
    text-align: left;
    margin: 16px auto;
    font-size: 16px;
    line-height: 25px;
    padding-left: 40px;
}
.divAcceptConsentsDescription p:last-of-type {
    margin-bottom: 30px;
}
.divAcceptConsentsDescription .consentsButtons {
    padding-bottom: 10px;
}
.divAcceptConsentsDescription .consentsButtons .otherButtons {
    margin-top: 16px;
}


/* Pink theme
-----------------------------------------------------------------------------------------------*/
.divAcceptConsents.pinkTheme {
    background: #ffdfdf;
    color: #464545;
}
.divAcceptConsents.pinkTheme .divAcceptConsentsDescription {
    background-color: #f1cbcb;
    color: #371919;
}
.divAcceptConsents.fixedAtBottom.pinkTheme {
    border-color: #ffd1d1;
    box-shadow: 0 0 0 0 #dbaeae;
}


/* Wide buttons
-----------------------------------------------------------------------------------------------*/
.divAcceptConsents.fixedAtCenterOfScreen.wideButtons .otherButtons .button {
    margin: 0;
}
.divAcceptConsents.fixedAtCenterOfScreen.wideButtons .otherButtons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
.divAcceptConsents.fixedAtCenterOfScreen.wideButtons .button {
    max-width: 250px;
    width: 100%;
    height: 30px;
}

/* Blue accept button
-----------------------------------------------------------------------------------------------*/
.divAcceptConsents.blueAccept .btnAcceptAllConsents {
    background: #0563A7;
    background: linear-gradient(0deg, rgb(5, 83, 167) 0%, rgb(57, 132, 249) 100%);
    border: 1px solid #5a75b6;
}



/* 2.1 Fixed on bottom of browser screen
-----------------------------------------------------------------------------------------------*/
.divAcceptConsents.fixedAtBottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-height: 480px;
    border-top: 1px solid;
    border-color: #7e6464;
}
.divAcceptConsents.fixedAtBottom .divAcceptConsentsContent {
    display: flex;
    gap:10px;
    /*width: 100%;*/
}
.divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .callToActionText {
    /*display: flex;*/
    /*flex: 1;*/
    /*flex-direction: column;*/
    /*justify-content: center;*/
    /*align-items: flex-start;*/
    font-size: 14px;
}
.divAcceptConsents.fixedAtBottom .btnAcceptConsentsShowDescription {
    font-size: 11px;
}
.divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .consentsButtons {
    /*width: 320px;*/
    display: flex;
    /*flex-direction: column;*/
    justify-content: right;
    align-items: center;
}
.divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .consentsButtons .otherButtons {
    display: flex;
}


/* 2.2 Fixed in center of browser screen
-----------------------------------------------------------------------------------------------*/
.divAcceptConsents.fixedAtCenterOfScreen {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0%);
    max-width: 93%;
    max-height: 480px;
    width: 400px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.53);
    border-radius: 5px;
    bottom: unset;
    border: 1px solid #603737;
}
.divAcceptConsents.fixedAtCenterOfScreen .divAcceptConsentsContent {
    font-size: 16px;
    line-height: 22px;
}
.divAcceptConsents.fixedAtCenterOfScreen .divAcceptConsentsContent .callToActionText {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.divAcceptConsents.fixedAtCenterOfScreen .divAcceptConsentsContent .callToActionText span {
    margin-bottom: 8px;
}
.divAcceptConsents.fixedAtCenterOfScreen .divAcceptConsentsContent .callToActionText span:last-child {
    margin-bottom: 0;
}
.divAcceptConsents.fixedAtCenterOfScreen .divAcceptConsentsDescription p {
    font-size: 16px;
}
.divAcceptConsents.fixedAtCenterOfScreen .btnAcceptAllConsents {
    display: block;
    margin: 20px auto;
}
.divAcceptConsents.fixedAtCenterOfScreen .btnAcceptConsentsShowDescription {
    font-size: 14px;
}


/* 2.3 Statically placed somewhere on web page
-----------------------------------------------------------------------------------------------*/
.divAcceptConsents.staticInHtml .divAcceptConsentsContent .consentsButtons .otherButtons {
    margin-top: 10px;
}
.divAcceptConsents.staticInHtml .divAcceptConsentsContent .consentsButtons {
    padding: 10px;
}





/* 3. Overlays
-----------------------------------------------------------------------------------------------*/
.consentsDisabledWrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    z-index: 99;
}
.consentsDisabledWrapper .consentsDisabled {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.9;
    z-index: inherit;
}
.consentsDisabledWrapper .consentsUpdating {
    display: none;
    z-index: inherit;
    width: 66px;
    height: 66px;
    background: url('/images/loading_red.gif') no-repeat center center;
}
.consentsDisabledWrapper .consentsUpdated {
    display: none;
    z-index: inherit;
    font-size: 42px;
}
.consentsDisabledWrapper .consentsError {
    display: none;
    z-index: inherit;
    flex-direction: column;
    gap: 10px;
}
.consentsDisabledWrapper .consentsError span {
    font-size: 42px;
}
.consentsDisabledWrapper .consentsError em {
    font-size: 16px;
    font-weight: bold;
    color:black;
    font-style: normal;
}

.divAcceptConsents.fixedAtBottom .consentsDisabledWrapper .consentsUpdating {
    background: url('/images/loading_red_small.gif') no-repeat center center;
}
.divAcceptConsents.fixedAtBottom .consentsDisabledWrapper .consentsError {
    flex-direction: row;
    align-items: center;
}
.divAcceptConsents.fixedAtBottom .consentsDisabledWrapper .consentsError span {
    font-size: 32px;
}
.consentChooserControl.disabled {overflow: hidden}
.consentChooserControl.disabled .consentsDisabledWrapper {display: flex;}
.consentChooserControl.showWaiting .consentsUpdating {display: block;}
.consentChooserControl.showSuccess .consentsUpdated {display: block;}
.consentChooserControl.showError .consentsError {display: flex;}

html {
    scrollbar-gutter: stable;
}
body.hideScrollBar {
    overflow: hidden;
}




/* 4.1 Permissions chooser popup (GDPR Cookie Modal)
-----------------------------------------------------------------------------------------------*/
.consentsPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /*display: flex;*/
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.divConsentChooser {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 550px;
    max-height: 90vh;
    width: 90%;
    position: relative;
    text-align: center;
    overflow-y: auto;
    box-sizing: border-box;

    scrollbar-width: thin;
    scrollbar-color: #eeb4b4 #ffd5d5;
}
/* --- Header and Text Content --- */
.btnCloseConsentChooser {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}
.btnCloseConsentChooser:hover {
    color: #333;
}
.consentChooserIcon {
    font-size: 3rem;
    line-height: 1;
}
.consentChooserTitle {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #333;
}
.divConsentChooser p {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    font-size: 16px;
}
.divConsentChooser a {
    color: #be1313;
    text-decoration: none;
    font-weight: 500;
}
.divConsentChooser a:hover {
    text-decoration: underline;
}
/* --- Cookie List and Items --- */
.consentGroups {
    margin: 2rem 0;
    text-align: left;
}
.consentGroupItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.consentGroupItem:last-child {
    border-bottom: none;
}
.consentGroupInfo {
    padding-right: 1rem;
    width: 100%;
}
.consentGroupTitle {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    padding: 3px;
}
.consentGroupTitle strong {

    font-family: inherit;
    font-weight: bold;
}
.consentGroupTitle:hover {
    background: #ffffff;
    background: linear-gradient(90deg,rgba(255, 255, 255, 0.4) 0%, rgba(255, 202, 202, 0.4) 3%, rgba(255, 255, 255, 0.5) 100%);
}
.consentGroupTitle strong::before {
    content: "▸";
    margin-right: 2px;
    display: inline-block;
    transition: transform 0.3s ease;
    font-weight: normal;
}
.consentGroupTitle.open strong::before {
    transform: rotate(90deg);
}
.consentGroupAlwaysRequired {
    background-color: #e0e0e0;
    color: #757575;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    margin-left: 0.5rem;
}
.divConsentChooser p.consentGroupDescription {
    display: none;
    font-size: 16px;
    margin-top: 4px;
    line-height: 22px;
    text-align: justify;
    padding: 3px;
    cursor: pointer;
}
/* --- Custom Toggle Switch --- */
.toggleConsentGroup {
    display: flex;
    justify-content: right;
    width: 50px;
}
.toggleConsentGroup label {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 22px;
}
.toggleConsentGroup label input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggleConsentGroup label span {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 28px;
    transition: background-color 0.3s;
}
.toggleConsentGroup label em {
    position: absolute;
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
    cursor: pointer;
}
.toggleConsentGroup label input:checked + span {
    background-image: linear-gradient(45deg, #44c05d, #279500);
}
.toggleConsentGroup label input:checked ~ em {
    transform: translateX(22px);
}
.toggleConsentGroup label input:disabled + span {
    background-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.4;
}
/* --- Action Buttons --- */
.consentsChooserActions {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap; /* For better mobile view */
}
/* Base button styles */
.consentsChooserActions button {
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.consentsChooserActions .primaryActions {
    display: flex;
    gap: 10px;
}
.btn-secondary {
    background-color: #f2f2f2;
    color: #333;
}
.btn-secondary:hover {
    background-color: #e0e0e0;
}
.btn-primary {
    transition: transform 0.3s ease;
    background-image: linear-gradient(45deg, #0B5B01, #094F00);
    color: white;
}
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(28, 86, 2, 0.3);
    transform: translateY(-1px);
}


/* Delete visitor data */
.consentChooserDeleteContent, .btnDeleteVisitorData, .btnCloseConsentsPopup {display: none;}
.consentsPopup.deleteVisitorData .consentChooserContent {display: none;}
.consentsPopup.deleteVisitorData .consentChooserDeleteContent {display: block;}
.consentsPopup.deleteVisitorData .btnRejectAllConsents, .consentsPopup.deleteVisitorData .btnAcceptCustomConsents {display: none;}
.consentsPopup.deleteVisitorData .btnDeleteVisitorData {display: block;}
.consentsPopup.deleteVisitorData .btnAcceptAllConsents {display: none;}
.consentsPopup.deleteVisitorData .btnCloseConsentsPopup {display: block;}






/* 3.Responsive mobile
-----------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 1200px) {
    .divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .consentsButtons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px;
        flex-direction: column;
    }
    .divAcceptConsents.fixedAtBottom .btnRejectAllConsents {
        order: 2;
    }
}

@media only screen and (max-width: 730px) {
    .divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .consentsButtons {
        gap:15px;
    }

    .divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .callToActionText .hideOnMobile {
        display: none;
    }
}

@media only screen and (max-width: 500px) {
    .divAcceptConsents.fixedAtBottom .divAcceptConsentsContent {
        flex-direction: column;
        padding-bottom: 10px;
        padding-left: 5px;
        padding-right: 5px;
    }
    .divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .callToActionText {
        display: flex;
        flex-direction: column;
    }
    .divAcceptConsents.fixedAtBottom .divAcceptConsentsContent .consentsButtons {
        width: unset;
    }
    .consentsChooserActions {
        flex-direction: column;
    }
    .consentsChooserActions .primaryActions {
        flex-direction: column;
        order: 2;
    }
    .divAcceptConsents.fixedAtBottom .btnRejectAllConsents {
        order: unset;
    }
    .divAcceptConsents.fixedAtBottom .consentsDisabledWrapper .consentsError {
        flex-direction: column;
    }

}

@media only screen and (max-width: 380px) {
    .divAcceptConsents.fixedAtCenterOfScreen .divAcceptConsentsDescription {
        margin: 20px 5px 15px;
    }
    .consentGroupTitle strong::before {
        content: '';
    }
}
@media only screen and (max-width: 350px) {
    .divAcceptConsents.fixedAtCenterOfScreen .btnAcceptConsentsShowDescription,
    .divAcceptConsents.fixedAtCenterOfScreen .btnOpenConsentsPopup {
        display: block;
        width: 100%;
        margin-top: 15px;
    }
}