.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    /* width: min(760px, calc(100vw - 32px)); */
    width: min(870px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(50, 121, 111, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 60px rgba(16, 35, 31, 0.18);
    opacity: 0;
    transform: translate(-50%, 14px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.cookie-consent__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: rgba(105, 191, 178, 0.15);
    color: #32796f;
    font-size: 22px;
}

.cookie-consent__content span {
    display: block;
    margin-bottom: 5px;
    color: #181818;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.cookie-consent__content p {
    margin: 0;
    color: #52605f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
}

.cookie-consent__btn--ghost {
    border-color: rgba(50, 121, 111, 0.22);
    background: #fff;
    color: #32796f;
}

.cookie-consent__btn--ghost:hover {
    border-color: #32796f;
    background: #f7faf9;
    color: #24675e;
}

.cookie-consent__btn--primary {
    background: #32796f;
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: #24675e;
    color: #fff;
}

@media only screen and (max-width: 767px) {
    .cookie-consent {
        left: 50%;
        bottom: 12px;
        grid-template-columns: 42px minmax(0, 1fr);
        width: calc(100vw - 24px);
        padding: 14px;
        gap: 12px;
    }

    .cookie-consent__icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .cookie-consent__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .cookie-consent__btn {
        width: 100%;
        min-width: 0;
    }
}

@media only screen and (max-width: 380px) {
    .cookie-consent {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-consent__icon {
        display: none;
    }
}
