/* CONSENTEMENT */
.consentpopup{
    position: fixed;
    z-index: 9999999;
    background-color: hsla(var(--clr-txt-hsl),.75);
    color: var(--clr-bg);
    padding: 1rem;
    padding-top: 1.5rem;
    bottom: 1.25rem;
    left: 1rem;
    max-width: 32rem;
    width: 100%;
    translate:0 150%;
    border-radius: var(--br);
    font-family: var(--ff);
    animation: showConsent .5s .3s ease-in-out forwards;
}
@keyframes showConsent{
    to{
        translate:0 0;
    }
}
.consentpopup.consentclosing{
    animation: hideConsent .3s 0s ease-in-out forwards;
}
@keyframes hideConsent{
    from{
        translate:0 0;
    }
    to{
        translate:0 150%;
    }
}
.closeconsent{
    color: currentColor;
    width: 1.325rem;
    height: 1.325rem;
    position: absolute;
    
    top: .5rem;
    right: .5rem;
    rotate:45deg;
    cursor: pointer;
}

.closeconsent svg{
    stroke-width: 3px;
}

.closeconsent:hover{
    color: var(--clr-accent);
}
.closeconsent span{
    position: absolute;
    height: 1.375rem;
    top: 50%;
    left: 50%;
    translate:-50% -50%;
}

.consentpopup h3{
    width: calc(100% - 2.5rem);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.consentpopup p{
    font-size: 1rem;
    line-height: 1.4;
    width: calc(100% - 1.5rem);
    margin-bottom: .75rem;
}

.consentpopup a{
    font-size: .9rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.consentpopup a:hover{
    text-decoration: none;
}

.consentbuttons{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:.75rem;
    margin-top: 1rem;
}

.consentpopup button{
    -webkit-appearance:none;
    appearance:none;
    color: var(--clr-bg);
    text-align: center;
    font-size: 1.1rem;
    border:1px solid var(--clr-bg);
    background-color: transparent;
    font-weight: bold;
    border-radius: .5rem;
    padding: .85rem;
    display: block;
    width: 100%;
    cursor: pointer;
    transition: all .2s;
}

.consentpopup button+button{
    background-color: var(--clr-accent);
    border-color: var(--clr-accent);
    color:var(--clr-txt);
}

.consentpopup button:hover{
    background-color:var(--clr-bg);
    color:var(--clr-primary);
}
.consentpopup button+button:hover{
    color: var(--clr-bg);
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

@media screen and (max-width:81.25rem){
    .closeconsent{top: 1rem;right: 1rem;}
    .consentpopup{
        left: 1rem;
        bottom: 1rem;
        padding: 1rem;
        max-width: 29rem;
    }
    .consentpopup button{
        font-size: 1rem;
        padding: .75rem;
        
    }
}
@media screen and (max-width:53.5rem){
    .consentpopup{
        bottom: .65rem;
        left: .75rem;
    }
}
@media screen and (max-width:46.875rem){
    .consentpopup{left: .5rem;bottom: .5rem;width: calc(100% - 1rem);}
}