.site-cerez {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10040;
    background: #2b2b36;
    color: #fff;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18);
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
}

.site-cerez[hidden] {
    display: none !important;
}

.site-cerez__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-cerez__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
}

.site-cerez__link {
    color: #d7e8c4;
    text-decoration: underline;
    white-space: nowrap;
}

.site-cerez__link:hover,
.site-cerez__link:focus {
    color: #fff;
}

.site-cerez__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

.site-cerez__btn {
    appearance: none;
    border: 0;
    border-radius: 6px;
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.site-cerez__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.site-cerez__btn--ghost:hover,
.site-cerez__btn--ghost:focus {
    background: rgba(255, 255, 255, 0.08);
}

.site-cerez__btn--accept {
    background: #8ec760;
    color: #fff;
}

.site-cerez__btn--accept:hover,
.site-cerez__btn--accept:focus {
    background: #7db552;
}

.site-cerez-prefs {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 0 0.4em;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.site-cerez-prefs:hover,
.site-cerez-prefs:focus {
    opacity: 0.8;
}

@media (max-width: 767px) {
    .site-cerez__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .site-cerez__actions {
        width: 100%;
    }

    .site-cerez__btn {
        flex: 1;
    }
}

@media (max-width: 991px) {
    body:has(.ec-nav-toolbar) .site-cerez,
    body:has(.tf-toolbar-bottom) .site-cerez {
        bottom: 64px;
    }
}
