/*
 *  edium Cookie Consent
 *  default Styles
 */

/* prevent scrolling if layer is open */
body.js-ecc-disable-scrolling {
    position: sticky;
    overflow: hidden;
}

/* Plugin view: Cookie Box */
.ecc-cookie-box {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    z-index: 9999999;
    overflow: hidden;
    font-size: 16px; /* base font size */
}

.ecc-cookie-box__wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    /*align-items: stretch;*/
    width: 90%;
    height: auto;
    min-width: 280px;
    max-width: 800px;
    max-height: 90%;
    padding: 2rem 1.5rem;
    background-color: #f4f4f4;
    overflow: hidden;
    opacity: 1;
    transition: all .5s ease-out;
}

/* hiding animation of the box content */
.ecc-cookie-box.js-saving-changes .ecc-cookie-box__wrapper {
    opacity: 0;
    top: -100%;
}

.ecc-cookie-box__close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.ecc-cookie-box__close:before,
.ecc-cookie-box__close:after {
    content: '';
    position: absolute;
    top: 48%;
    left: 22%;
    width: 55%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease-out;
}

.ecc-cookie-box__close:before {
    transform: rotate(-45deg);
}

.ecc-cookie-box__close:after {
    transform: rotate(45deg);
}

.ecc-cookie-box__close:hover:before {
    background-color: #f25c66;
    transform: rotate(45deg);
}

.ecc-cookie-box__close:hover:after {
    background-color: #f25c66;
    transform: rotate(-45deg);
}

/* Header */
.ecc-cookie-box__header {
    flex: 0 0 auto;
    margin-bottom: 15px;
}

.ecc-cookie-box__headline {
    margin: 0;
    padding: 0;
    font-size: 1.5em;
}

/* Body */
.ecc-cookie-box__body {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 5em;
    margin-bottom: 20px;
    overscroll-behavior: contain;
}

.js-ie .ecc-cookie-box__body { /* Internet Explorer */
    max-height: 60vh;
}


/* Categories */
.ecc-cookie-box__categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #d4d5d6;
}

.ecc-cookie-box__category {
    border-bottom: 1px solid #d4d5d6;
}

/* Accordion */
.ecc-cookie-box__accordion-toggle {
    clear: both;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    padding: 1em 0.5em;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.ecc-cookie-box__accordion-toggle:hover,
.ecc-cookie-box__accordion-toggle.js-toggle,
.ecc-cookie-box__accordion-toggle.js-open {
    color: #000;
    background-color: #eeeeee;
}

.ecc-cookie-box__accordion-headline {
    font-size: 1.25em;
    line-height: 28px;
    color: #666;
    margin: 0 60px 0 0;
    padding: 0;
    transition: color 0.3s ease;
}

.ecc-cookie-box__accordion-toggle:hover .ecc-cookie-box__accordion-headline,
.js-toggle .ecc-cookie-box__accordion-headline,
.js-open .ecc-cookie-box__accordion-headline {
    color: #000;
}

.ecc-cookie-box__accordion-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 1;
    width: 30px;
    height: 30px;
    margin-top: -15px;
}

.ecc-cookie-box__accordion-icon:before,
.ecc-cookie-box__accordion-icon:after {
    content: '';
    position: absolute;
    top: 48%;
    left: 22%;
    width: 55%;
    height: 2px;
    background-color: #666;
    transition: all 0.3s ease-out;
}

.ecc-cookie-box__accordion-icon:before {
    transform: rotate(0deg);
}

.ecc-cookie-box__accordion-icon:after {
    transform: rotate(90deg);
}

.ecc-cookie-box__accordion-toggle:hover .ecc-cookie-box__accordion-icon:before,
.ecc-cookie-box__accordion-toggle:hover .ecc-cookie-box__accordion-icon:after {
    background-color: #000;
}

.js-toggle .ecc-cookie-box__accordion-icon:before,
.js-toggle .ecc-cookie-box__accordion-icon:after,
.js-open .ecc-cookie-box__accordion-icon:before,
.js-open .ecc-cookie-box__accordion-icon:after {
    background-color: #000;
    transform: rotate(180deg);
}

.ecc-cookie-box__accordion-content {
    max-height: 0;
    padding: 0 0.5em;
    overflow: hidden;
    transition: max-height .4s linear;
}

.ecc-cookie-box__accordion-toggle.js-toggle + .ecc-cookie-box__accordion-content { /* while opening/closing */
    max-height: 50vh;
    color: #000;
    background-color: #eeeeee;
}

.ecc-cookie-box__accordion-toggle.js-open + .ecc-cookie-box__accordion-content { /* while open */
    max-height: none;
    color: #000;
    background-color: #eeeeee;
}

/* Switch Slide Button */
.ecc-cookie-box__switch,
.ecc-cookie-box__switch--small {
    float: left;
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0 1em 0 0;
}

.ecc-cookie-box__switch {
    width: 54px;
    height: 28px;
}

.ecc-cookie-box__switch--small {
    width: 40px;
    height: 20px;
}

.ecc-cookie-box__checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.ecc-cookie-box__slide-button,
.ecc-cookie-box__slide-button--small {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    box-shadow: 0 0 3px 1px #fff;
}

.ecc-cookie-box__slide-button {
    border-radius: 28px;
}

.ecc-cookie-box__slide-button--small {
    border-radius: 20px;
}

.ecc-cookie-box__slide-button:before,
.ecc-cookie-box__slide-button--small:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

.ecc-cookie-box__slide-button:before {
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
}

.ecc-cookie-box__slide-button--small:before {
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
}

.ecc-cookie-box__checkbox:disabled + .ecc-cookie-box__slide-button,
.ecc-cookie-box__checkbox:disabled + .ecc-cookie-box__slide-button--small {
    opacity: 0.3;
    cursor: default;
}

.ecc-cookie-box__checkbox:checked + .ecc-cookie-box__slide-button,
.ecc-cookie-box__checkbox:checked + .ecc-cookie-box__slide-button--small {
    background-color: #99cc33;
}

.ecc-cookie-box__checkbox:indeterminate + .ecc-cookie-box__slide-button {
    background-color: #ffcc00;
}

.ecc-cookie-box__checkbox:focus + .ecc-cookie-box__slide-button,
.ecc-cookie-box__checkbox:focus + .ecc-cookie-box__slide-button--small {
    box-shadow: 0 0 1px #ececec;
}

.ecc-cookie-box__checkbox:checked + .ecc-cookie-box__slide-button:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.ecc-cookie-box__checkbox:indeterminate + .ecc-cookie-box__slide-button:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

.ecc-cookie-box__checkbox:checked + .ecc-cookie-box__slide-button--small:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

/* Services */
.ecc-cookie-box__services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ecc-cookie-box__service {
    padding: 1em 0;
    border-top: 1px solid #ffffff;
}

.ecc-cookie-box__service-headline {
    display: block;
    font-size: 1.125em;
    line-height: 20px;
    margin: 0 0 10px;
    padding: 0;
}

.ecc-cookie-box__description {
    display: block;
    margin: 0 0 16px;
    padding: 0;
}

.ecc-cookie-box__service-text {
    clear: both;
}

/* Footer */
.ecc-cookie-box__footer {
    flex: 0 0 auto;
}

.ecc-cookie-box__buttons {
    margin-bottom: 10px;
}

.ecc-cookie-box__button {
    width: auto;
    margin: 0 0.5em 0.5em 0;
    border: 0;
    cursor: pointer;
}

.ecc-cookie-box__button:hover,
.ecc-cookie-box__button:focus,
.ecc-cookie-box__button:active {
    border: 0;
    outline: none;
}

.ecc-cookie-box__button:last-child {
    margin-right: 0;
}

.ecc-cookie-box__links a:not(:last-child) {
    margin-right: 0.5em;
}

/* Table */
.ecc-cookie-box__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    hyphens: auto;
    word-wrap: break-word;
}

.ecc-cookie-box__table-row {
    transition: background-color 200ms ease-in-out;
    border-bottom: 1px solid #f0f0f0;
}

.ecc-cookie-box__table-row:hover {
    background-color: #fafafa;
}

.ecc-cookie-box__table-header,
.ecc-cookie-box__table-data {
    text-align: left;
    padding: 0.3em 0.6em;
    vertical-align: top;
    border: none;
    background: none;
}

/* Spinner */
.ecc-cookie-box__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -35px;
    content: "";
    width: 70px;
    height: 50px;
    text-align: center;
}

.ecc-cookie-box__spinner > * {
    background-color: #f4f4f4;
    height: 100%;
    width: 10px;
    margin: 0 2px;
    display: inline-block;

    -webkit-animation: loading-stretch-delay 1.2s infinite ease-in-out;
    animation: loading-stretch-delay 1.2s infinite ease-in-out;
}

.ecc-cookie-box__spinner-rect--2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}

.ecc-cookie-box__spinner-rect--3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

.ecc-cookie-box__spinner-rect--4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}

.ecc-cookie-box__spinner-rect--5 {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}

@-webkit-keyframes loading-stretch-delay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
    20% { -webkit-transform: scaleY(1.0) }
}

@keyframes loading-stretch-delay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }  20% {
       transform: scaleY(1.0);
       -webkit-transform: scaleY(1.0);
   }
}


/* Cookie Box on small devices */
@media (max-width: 543px) {

    .ecc-cookie-box__wrapper {
        font-size: 0.8em; /* base font size mobile */
        padding: 1rem;
        width: calc(100% - 30px);
        max-height: calc(100% - 30px);
    }

    .ecc-cookie-box__close {
        width: 34px;
        height: 34px;
    }

    .ecc-cookie-box__header {
        margin-bottom: 10px;
    }

    .ecc-cookie-box__wrapper p,
    .ecc-cookie-box__wrapper li {
        line-height: 18px;
    }

    .ecc-cookie-box__body {
        margin-bottom: 15px;
    }

    .ecc-cookie-box__accordion-toggle {
        padding: 0.6em 0.25em;
    }

    .ecc-cookie-box__accordion-toggle:before,
    .ecc-cookie-box__accordion-toggle:after {
        right: 5px;
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }

    .ecc-cookie-box__switch {
        width: 40px;
        height: 20px;
        margin-top: 1px;
    }

    .ecc-cookie-box__slide-button {
        border-radius: 16px;
    }

    .ecc-cookie-box__slide-button:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }

    .ecc-cookie-box__checkbox:checked + .ecc-cookie-box__slide-button:before {
        -webkit-transform: translateX(20px);
        -ms-transform: translateX(20px);
        transform: translateX(20px);
    }

    .ecc-cookie-box__switch--small {
        width: 36px;
        height: 16px;
        margin-top: -1px;
    }
    .ecc-cookie-box__slide-button--small {
        border-radius: 16px;
    }

    .ecc-cookie-box__slide-button--small:before {
        height: 12px;
        width: 12px;
        left: 2px;
        bottom: 2px;
    }

    .ecc-cookie-box__accordion-headline {
        line-height: 21px;
        margin: 0 40px 0 0;
    }

    .ecc-cookie-box__description {
        display: block;
        line-height: 20px;
        margin: 0 0 10px;
    }

    .ecc-cookie-box__service-headline {
        line-height: 14px;
    }

    .ecc-cookie-box__buttons {
        margin-bottom: 5px;
    }

    .ecc-cookie-box__button {
        padding: 3px 8px;
    }
}


/* Plugin view: Cookie List */
.ecc-cookie-list {
    clear: both;
    margin: 3em 0 1em;
}

.ecc-cookie-list__header {
    margin: 0 0 1em;
}

.ecc-cookie-list__button {
    margin: 0;
    cursor: pointer;
}

.ecc-cookie-list__button:focus {
    outline: none;
}

.ecc-cookie-list__category {
    clear: both;
    margin: 2em 0 0;
}

.ecc-cookie-list__entry {
    clear: both;
    margin: 0 0 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #f0f0f0;
}

.ecc-cookie-list__entry:first-of-type {
    padding-top: 1em;
    border-top: 1px solid #f0f0f0;
}

.ecc-cookie-list__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    hyphens: auto;
    word-wrap: break-word;
}

.ecc-cookie-list__table-row {
    transition: background-color 200ms ease-in-out;
}

.ecc-cookie-list__table-row:nth-child(odd) {
    background-color: #fafafa;
}

.ecc-cookie-list__table-row:hover,
.ecc-cookie-list__table-row:hover:nth-child(odd) {
    background-color: #f0f0f0;
}

.ecc-cookie-list__table-header,
.ecc-cookie-list__table-data {
    text-align: left;
    padding: 0.3em 0.6em;
    vertical-align: top;
    border: none;
}
