html[data-cookie] .cookie-banner {
    display: none !important;
}

body.cookie-tampil {
    padding-bottom: calc(var(--cookie-tinggi, 0px) + 12px);
}

.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    padding: 14px 16px;
    color: var(--text);
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
}

.cookie-isi {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.cookie-teks {
    flex: 1 1 420px;
    min-width: 0;
}

.cookie-judul {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.cookie-teks p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
}

.cookie-teks strong {
    color: var(--text);
}

.cookie-teks a {
    color: var(--link);
    text-decoration: underline;
}

.cookie-aksi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cookie-tombol {
    min-height: 38px;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--on-primary);
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
}

.cookie-tombol:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--on-primary-hover);
}

.cookie-tombol:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

.tautan-cookie {
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
}

.tautan-cookie:hover {
    color: var(--link-hover);
}

.landing footer.footer .tautan-cookie {
    color: #bff0ea;
    font-weight: 700;
}

.landing footer.footer .tautan-cookie:hover {
    color: #bff0ea;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.legal-dokumen .tautan-cookie {
    color: var(--link);
}

@media (max-width: 520px) {
    .cookie-banner {
        padding: 12px;
    }

    .cookie-aksi {
        width: 100%;
    }

    .cookie-tombol {
        flex: 1 1 0;
    }
}
