@import '../../../../../static/sass/common-frontend';

.cookie-notification {
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 999999;
	color: var(--color);

	a:hover {
		color: var(--colorHover);
	}

	@include media-breakpoint-down (xs) {
		> div {
			flex-direction: column;
		}
	}

	@include media-breakpoint-down (sm) {
		right: 0;

		> div {
			display: flex;
			align-items: center;
			padding-top: 15px;
			padding-bottom: 15px;
		}
	}


	// type 1
	&[data-type='type-1'] {
		@include media-breakpoint-down (sm) {
			background: var(--backgroundColor);
		}

		@include media-breakpoint-up (md) {
			padding: 0 25px 25px 25px;

			.ct-cookies-content {
				margin-bottom: 15px;
				max-width: 90%;
			}
		}

		.container {
			position: relative;

			@include media-breakpoint-down (sm) {
				width: 88%;
				margin: 0 auto;
			}

			@include media-breakpoint-up (md) {
				background: var(--backgroundColor);
				box-shadow: 0px 5px 30px -5px rgba(34, 56, 101, 0.15);
				padding: 25px 40px 25px 25px;
				border-radius: 3px;
				max-width: var(--maxWidth);
			}
		}
	}


	// type 2
	&[data-type='type-2'] {
		right: 0;
		background: var(--backgroundColor);

		@include media-breakpoint-up (md) {
			padding: 15px 0;

			.ct-container {
				display: flex;
				align-items: center;
				justify-content: center;
			}

			.ct-accept {
				margin-left: 25px;
			}
		}

		.ct-close {
			display: none;
		}
	}


	.ct-cookies-content {
		line-height: 1.4;

		> *:last-child {
			margin-bottom: 0;
		}

		a {
			text-decoration: underline;
			color: var(--colorHover);
		}

		@include media-breakpoint-down (xs) {
			text-align: center;
			margin-bottom: 15px;
		}

		@include media-breakpoint-down (sm) {
			font-size: 13px;
		}

		@include media-breakpoint-up (md) {
			font-size: 14px;
		}
	}

	.ct-accept {
		--buttonFontSize: 13px;
		--buttonMinHeight: 35px;
		--padding: 0 20px;
		--buttonShadow: none;
		--buttonTransform: none;

		@include media-breakpoint-down (xs) {
			width: 100%;
		}

		@include media-breakpoint-only (sm) {
			margin-left: 20px;
		}
	}

	.ct-close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 45px;
		height: 45px;
		position: absolute;
		top: 0;
		right: 0;
		opacity: 0.5;
		color: inherit;
		cursor: pointer;
		background: transparent;

		&:hover {
			opacity: 1;
		}

		@include media-breakpoint-down (sm) {
			display: none;
		}
	}

	// animation
	&.ct-fade-in-start,
	&.ct-fade-in-end,
	&.ct-fade-start,
	&.ct-fade-end {
		transition: all 0.3s ease;
	}

	&.ct-fade-in-start {
		opacity: 0;
		transform: translate3d(0, 15px, 0);
	}

	&.ct-fade-end {
		opacity: 0;
		transform: translate3d(0, 15px, 0);
	}
}
