// Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
// For licensing, see LICENSE.md.

@use 'helpers/color';
@use 'helpers/font';
@use 'helpers/globals';
@use 'helpers/spacing';

.footer {
	z-index: 30;
	font-size: font.u-font-size( -2 );
	width: globals.$u-sidebar-width;
	height: 50px;

	@include globals.u-responsive-narrow {
		background: color.u-color( 'background-bright' );
		text-align: right;
		padding: spacing.u-spacing( -2 ) spacing.u-spacing( 4 ) spacing.u-spacing( 0 ) spacing.u-spacing( 2 );
		position: relative;
		float:right;
		height: globals.$u-footer-height;
	}

	@include globals.u-responsive-wide {
		position: fixed;
		bottom: 0;
		right: 0;

		&--bordered {
			border-left: 1px solid color.u-color( 'background-hue' );
		}
	}

	p {
		color: color.u-color( 'text', 20% );
		position: absolute;
		bottom: spacing.u-spacing( 2 );
		right: spacing.u-spacing( 3 );
	}
}
