/* Import Poppins Google font. */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

#cc-main {
    --p-text-base: #10121D;
    --p-primary: #0078D4;
    --p-primary-hovered: #50378C;
    --p-white: #ffffff;
    --p-grey-1: #CCD6DD;
    --p-grey-2: #EDF1F4;
    --p-grey-3: #F3F4F5;
    --p-grey-4: #EDF2F5;

    --cc-font-family: Poppins;

    --cc-bg: var(--p-white);
    --cc-primary-color: var(--p-text-base);
    --cc-secondary-color: var(--p-text-base);

    --cc-link-color: var(--p-primary);
    --cc-footer-color: var(--p-primary);

    --cc-btn-primary-bg: var(--p-primary);
    --cc-btn-primary-color: var(--p-white);
    --cc-btn-primary-hover-bg: var(--p-primary-hovered);
    --cc-btn-primary-hover-border-color: var(--p-primary-hovered);
    --cc-btn-primary-border-color: var(--p-primary);

    --cc-btn-secondary-bg: var(--p-white);
    --cc-btn-secondary-hover-bg: var(--p-primary-hovered);
    --cc-btn-secondary-hover-border-color: var(--p-primary-hovered);
    --cc-btn-secondary-hover-color: var(--p-white);
    --cc-btn-secondary-color: var(--p-primary);
    --cc-btn-secondary-border-color: var(--p-primary);

    --cc-btn-border-radius: 4px;
    --cc-btn-border: 1px solid var(--p-primary);

    --cc-toggle-on-bg: var(--p-primary);
    --cc-toggle-off-bg: var(--p-grey-1);
    --cc-toggle-readonly-bg: var(--p-grey-2);

    --cc-section-category-border: var(--p-grey-1);
    --cc-cookie-category-expanded-block-bg: var(--p-grey-3);
    --cc-cookie-category-block-hover-bg: var(--p-grey-4);
    --cc-cookie-category-expanded-block-hover-bg: unset;
    --cc-cookie-category-expanded-block-hover-bg: unset;
}

/* cm=banner and pm=preferences modal */
#cc-main .pm.pm--box {
    height: 100%;
    max-height: 35.5em;
}

#cc-main .cm__title {
    font-weight: 500;
    font-size: 20px;
}

#cc-main .cm__desc {
    font-size: 12px;
    line-height: 18px;
    padding-bottom: 0;
}

/* buttons */

#cc-main .cm__btn,
#cc-main .pm__btn {
    height: 40px;
    font-weight: 500;
    font-size: 12px;
    padding: 12px 16px;
}

#cc-main .cm__btns {
    border-top: none !important;
}

#cc-main .pm__btn+.pm__btn {
    background-color: transparent;
    color: var(--cc-btn-primary-bg);
    border: 1px solid var(--cc-btn-primary-border-color);
    margin-left: 8px;
}

#cc-main .pm__btn+.pm__btn:hover {
    background-color: var(--cc-btn-primary-hover-bg);
    color: var(--p-white);
    border: 1px solid var(--p-primary-hovered);
}

#cc-main .cm__btn-group:nth-of-type(2) {
    margin-top: 8px;
}

#cc-main .cm--inline .cm__btn:nth-of-type(2) {
    margin-left: 8px;
}

#cc-main button:focus-visible,
#cc-main a:focus-visible,
#cc-main input:focus-visible {
    outline-color: var(--cc-btn-primary-bg);
    outline-offset: 1px;
    outline-width: 2px;
    outline-style: solid;
}

#cc-main .cm__texts {
    height: 100%;
}

#cc-main .cm-wrapper .cm__footer {
    background-color: transparent!important;
    margin-bottom: 16px;
    padding: unset;
    background: transparent;
    border-top: none;
}

#cc-main .pm__title {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

#cc-main div.pm__header {
    position: relative;
    padding: 32px 32px 16px 32px;
    border-bottom: none;
}


#cc-main div.pm__body {
    padding: 0px 32px;
    margin-bottom: 0;
}

#cc-main div.pm__footer {
    padding: 24px 32px 32px 32px;
    border-top: none;
}

#cc-main .pm__section:first-child {
    margin-bottom: 16px;
}

#cc-main .pm__section--toggle .pm__section-title {
    border-radius: 2px;
    background-color: var(--p-white);
}

#cc-main .pm__section--expandable .pm__section-title {
    font-size: 14px;
    line-height: 20px;
    padding: 12px 44px;
    border-radius: 4px 4px;
}

/* svg icon buttons */

#cc-main .pm__close-btn {
    border: none;
}

#cc-main span.toggle__icon-on>svg,
#cc-main span.toggle__icon-off>svg {
    display: none;
}

#cc-main .pm__section--expandable .pm__section-arrow svg,
#cc-main .pm__close-btn svg {
    stroke: var(--p-text-base);
}

#cc-main .pm__close-btn:hover {
    background-color: var(--cc-cookie-category-block-hover-bg);
}

#cc-main .pm__close-btn:hover svg {
    background-color: unset;
    stroke: var(--p-text-base);
}


#cc-main .pm__close-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 32px;
    width: 32px;
}

#cc-main .pm__close-btn svg {
    background-color: unset;
    width: 32px;
    height: 32px;

}

/* toggle buttons and accordian */

#cc-main .section__toggle,
#cc-main .section__toggle-wrapper,
#cc-main .toggle__icon,
#cc-main .toggle__label {
    height: 32px;
    width: 60px;
}

#cc-main span.toggle__icon-circle {
    height: 24px;
    width: 24px;
    top: 4px;
    left: 4px;
}

#cc-main .pm__section--toggle .pm__section-desc-wrapper {
    border-radius: 0 0 4px 4px;
}

#cc-main .pm__section--toggle .pm__section-title-wrapper {
    border-radius: 4px 4px 0 0;
}

#cc-main .pm__section--expandable .pm__section-arrow {
    background-color: transparent;
}

#cc-main .pm__section,
#cc-main .pm__section--toggle {
    border-radius: 4px;
}

/* hide first toggle as always active */
#cc-main>.pm-wrapper>.pm.pm--box>.pm__body>.pm__section-toggles>div:nth-child(1)>.pm__section-title-wrapper>label {
    visibility: hidden;
    min-width: fit-content;
    align-self: center;
    font-size: 14px;
    padding-top: 12px;
    font-weight: 600;
    line-height: 20px;
}

#cc-main>.pm-wrapper>.pm.pm--box>.pm__body>.pm__section-toggles>div:nth-child(1)>.pm__section-title-wrapper>label:after {
    visibility: visible;
    content: "Always active";
    overflow: hidden;
    height: 20px;
    width: 60px;
    word-wrap: break-word;
}

#cc-main .pm__section--expandable .pm__section-title {
    border-radius: 4px 4px;
}

#cc-main .pm__section-desc {
    font-size: 12px;
    line-height: 18px;
}

#cc-main .pm__section--toggle .pm__section-desc {
    padding: 16px;
}

/* links */

#cc-main a,
#cc-main .pm__section-desc a {
    font-weight: 500;
}

#cc-main .cm__link-group {
    justify-content: left !important;
    font-size: 12px;
}

#cc-main a,
#cc-main .cc__link,
#cc-main .cm__footer .cm__link-group a {
    text-decoration-line: underline;
    background-size: unset;
    transition: none;
    background-image: unset;
}

#cc-main a:hover,
#cc-main .cc__link:hover,
#cc-main .cm__footer .cm__link-group a:hover {
    text-decoration-line: none;
    transition: none;
}

#cc-main a:hover,
#cc-main .pm__section-desc a:hover {
    color: var(--p-primary-hovered);
    background-size: unset;
}

#cc-main button,
#cc-main a,
#cc-main input {
    outline-color: var(--cc-btn-primary-bg);
    outline-offset: 3px;
}

@media screen and (max-width: 640px) {
    #cc-main .pm.pm--box {
        max-height: unset;
    }

    #cc-main .cm__desc,
    #cc-main .cm__btns {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #cc-main .cm__btn-group:first-of-type,
    #cc-main .pm__btn-group:first-of-type {
        flex-direction: row !important;
    }

    #cc-main .cm__btn+.cm__btn,
    #cc-main .pm__btn+.pm__btn {
        margin: 0 0 0 8px !important;
    }

    #cc-main .cm__btn-group:nth-of-type(2),
    #cc-main .pm__btn-group:nth-of-type(2),
    #cc-main .cm__title+.cm__desc {
        margin-top: 8px !important;
    }

    #cc-main .pm__footer,
    #cc-main .pm__body,
    #cc-main .pm__header {
        padding: 16px !important;
    }

}

@media screen and (max-width: 345px) {
    #cc-main>.pm-wrapper>.pm.pm--box>.pm__body>.pm__section-toggles>div:nth-child(1)>.pm__section-title-wrapper>label {
        min-width: unset;
        padding-top: unset;
        padding-bottom: 8px;
    }

}