.cookies {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 24rem;
    z-index: 100;
    overflow: hidden;
}

.cookies[hidden] {
    display: none;
}

.cookies-inner {
    padding: 1.25rem;
    color: white;
    background: var(--color-blue);
    translate: 0 100%;
}

.cookies:not([hidden]) .cookies-inner {
    animation: fade-in-clip 0.5s 1.3s ease both;
}

.cookies-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cookies-title {
    margin: 0;
    font-size: var(--text-p1);
    font-weight: 400;
}

.cookies-close {
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1;
    font-size: 1.5rem;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cookies-body {
    margin-bottom: 1.25rem;
    font-size: var(--text-p2);
    line-height: 1.4;
}

.cookies-body p {
    margin: 0 0 0.5rem;
}

.cookies-body p:last-child {
    margin-bottom: 0;
}

.cookies-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cookies-actions-buttons {
    display: flex;
    gap: 1rem;
}

.cookies-actions-buttons .button {
    font-size: var(--text-btn2);
}

.cookies-manage {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-green);
    font-size: var(--text-btn2);
}

@media screen and (min-width: 768px) {
    .cookies {
        bottom: 2rem;
        right: 2rem;
        left: auto;
    }
}
