* {
    font-family: 'Open Sans', sans-serif;
}

.cookie-backdrop {
    --primary: #03A9F4;
    color: #121216;
    width: 100%;
    bottom: 0px;
    height: 100%;
    display: none;
    z-index: 100000;
    position: fixed;
    background: rgb(29,30,37,0.6);
    justify-content: center;
}   

.cookie-backdrop header svg {
    width: 120px;
    height: auto;
    color: var(--primary);
}

.cookie-backdrop > div {
    width: fit-content;
    height: fit-content;
    display: flex;
    padding: 60px;
    z-index: 150;
    max-width: 600px;
    align-self: center;
    background: #fff;
    flex-direction: column;
    border-radius: 8px;
}

.cookie-backdrop > div h2 {
    opacity: 0.75;
    font-weight: 700;
    font-size: 28px;
    color: #121216;
    text-align: center;
    margin: 0 0 32px 0;
}

.cookie-backdrop > div p {
    font-size: 16px;
    line-height: 24px;
    color: rgb(29,30,37,0.75);
    font-weight: 100;
    text-align: justify;
    text-align: center;
    margin: 0 0 40px 0;
}

.cookie-backdrop a {
    color: var(--primary);
}

.cookie-backdrop button {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background-color: transparent;
    height: 44px;
    padding: 0 16px;
    font-size: 16px;
    border: none;
    color: var(--primary);
    text-decoration: none;
    outline: none;
    flex: 0 0 44px;
    cursor: pointer;
    transition: color .5s, background-color .5s ease;
    outline: none;
}

.cookie-backdrop button.primary:hover {
    background-color: #0a91ce;
}

.cookie-backdrop .switch {
    display: flex;
    margin: 20px 0 44px 0;
    flex-direction: column;
}

.cookie-backdrop .switch > div {
    background-color: #fff;
    box-shadow: 0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%);
}

.cookie-backdrop .switch > div > div:first-child {
    display: flex;
    padding: 0px 24px;
    min-height: 48px;
    transition: min-height 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.cookie-backdrop .switch > div > div:last-child {
    font-size: 16px;
    line-height: 24px;
    color: rgb(29,30,37,0.75);
    font-weight: 100;
    text-align: justify;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.cookie-backdrop .switch .open div:last-child {
    height: 100%;
    max-height: var( --max, 128px);
}

.cookie-backdrop .switch > div:last-child.open  div:last-child {
    height: 100%;
    max-height: var( --max, 176px);
}

.cookie-backdrop .switch > div > div:last-child p {
    margin: 0;
    padding: 8px 24px 24px;
}

.cookie-backdrop .switch > div:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.cookie-backdrop .switch > div:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.cookie-backdrop .switch > div svg {
    margin-right: 8px;
}

.cookie-backdrop .switch > div label {
    flex: 1 1 auto;
    cursor: pointer;
    font-size: 16px;
}

.cookie-backdrop .switch > div .toggle {
    width: 58px;
    height: 38px;
    display: inline-flex;
    padding: 12px;
    z-index: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    vertical-align: middle;
    left: 12px;
    -webkit-tap-highlight-color: transparent;   
}

.cookie-backdrop .switch > div .toggle > span.btn-label {
    width: 100%;
    display: flex;
    align-items: inherit;
    justify-content: inherit;
    top: 0;
    left: 0;
    z-index: 1;
    position: absolute;
    padding: 9px;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.cookie-backdrop .switch > div .toggle.checked  > span.btn-label {
    transform: translateX(20px);
}

.cookie-backdrop .switch > div .toggle.checked.disabled > span.back {
    background:rgb(131, 131, 131);
}

.cookie-backdrop .switch > div .toggle.checked.disabled > span .thumb {
    background:#ebebeb;
    box-shadow: 0px 2px 1px 0px rgb(0 0 0 / 10%);
}

.cookie-backdrop .switch > div .toggle > span .input {
    left: -110%;
    width: 300%;
    top: 0;
    width: 100%;
    cursor: inherit;
    height: 100%;
    margin: 0;
    opacity: 0;
    padding: 0;
    z-index: 1;
    position: absolute; 
}

.cookie-backdrop .switch > div .toggle > span .thumb {
    width: 20px;
    height: 20px;
    box-shadow: 0px 2px 1px -1px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%), 0px 1px 3px 0px rgb(0 0 0 / 12%);
    border-radius: 50%;

    background-color: #fff;
}

.cookie-backdrop .switch > div .toggle > span.back {
    background-color: #000;
    width: 100%;
    height: 100%;
    opacity: 0.38;
    z-index: -1;
    transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-radius: 7px;
    opacity: 0.12;
}

.cookie-backdrop .switch > div .toggle.checked  > span .thumb {

    background-color: var(--primary);
}

.cookie-backdrop .switch > div .toggle.checked > span.back {
    background-color: var(--primary);
}


.default-cookies {
    color: rgb(29,30,37,0.5);
}

.cookie-backdrop svg {
    fill: currentColor;
    width: 1em;
    height: 1em;
    display: inline-block;
    font-size: 1.5rem;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    flex-shrink: 0;
    user-select: none;
}

.cookie-backdrop .buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    
}

.cookie-backdrop button {
    flex: 0 0 auto;
}

.cookie-backdrop button:hover {
    background-color: #eaedf1;
}

.cookie-backdrop button.primary {
    background-color: var( --primary );
    color: #fff;
    margin-right: 8px;
}

.cookie-backdrop .switch p {
    text-align: left;
}

.cookie-backdrop button.primary:hover {
    background-color: #0a91ce;
}

@media only screen and (max-width: 480px) {

    .cookie-backdrop {
        flex-direction: column;
        justify-content: flex-end;
    }

    .cookie-backdrop > div {
        padding: 36px;
        justify-content: center;
        background-color: rgba(255, 255, 255, 1);
        border-radius: 0;
        flex: 0 0 auto;
        overflow: auto; 
        transform: translateY(400px);
        transition: transform .35s ease;
    }

    .cookie-backdrop > div.cshow {
        transform: translateY(0);
    }
}