:root {
    --transition: .15s all ease;
    --animation-duration: .4s;
}

#cookie-popup-open {
    z-index: 2021;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #333;
    display: grid;
    place-content: center;
    padding: .5rem;
    border-radius: .5rem;
    border: none;
    transition: var(--transition);
    outline: none;
    box-shadow: 0 0 15px #0002;
}
#cookie-popup-open:hover {
    cursor: pointer;
    background-color: hotpink;
}
#cookie-popup-open img {
    width: 2.5rem;
    height: 2.5rem;
    filter: invert();
}
.cookie-popup {
    z-index: 2022;
    position: fixed;
    bottom: 15px;
    right: 15px;
    background-color: #333;
    color: white;
    min-width: 250px;
    padding: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px #0002;
    display: none;
}
.cookie-popup.show {
    display: flex;
    animation: bounce_in var(--animation-duration) ease-out forwards;
}
.cookie-popup.answered {
    display: flex;
    pointer-events: none;
    animation: bounce_out var(--animation-duration) ease-in forwards;
}
.cookie-popup img {
    width: 75px;
    filter: invert();
}
.cookie-popup p {
    max-width: 280px;
    text-align: center;
    font-weight: bold;
}
.cookie-popup .buttons {
    display: flex;
    gap: .5rem;
}
.cookie-popup button {
    border: 3px solid white;
    background-color: transparent;
    padding: .3rem 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    width: 100%;
    transition: var(--transition);
    outline: none;
    color: white;
}
.cookie-popup button:not(:disabled):first-child:hover {
    background-color: hotpink;
    color: white;
    border-color: hotpink;
}
.cookie-popup button:not(:disabled):not(:first-child):hover {
    background-color: pink;
    color: white;
    border-color: pink;
}
@keyframes bounce_in {
    0% { transform: scale3d(0.5, 0.5, 0.5); opacity: 0; }
    80% { transform: scale3d(1.1, 1.1, 1.1); opacity: 1; }
    100% { transform: scale3d(1, 1, 1); opacity: 1; }
}
@keyframes bounce_out {
    0% { transform: scale3d(1, 1, 1); opacity: 1; }
    20% { transform: scale3d(1.1, 1.1, 1.1); opacity: 1; }
    100% { transform: scale3d(0.5, 0.5, 0.5); opacity: 0; }
}
