/**
 * Стили для баннера согласия на cookie
 */

#ccb-banner {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999999;
	background-color: #ffffff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ccb-banner-top {
	top: 0;
	border-bottom: 1px solid #e0e0e0;
}

.ccb-banner-bottom {
	bottom: 0;
	border-top: 1px solid #e0e0e0;
}

.ccb-banner-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
}

.ccb-banner-text {
	flex: 1;
	min-width: 250px;
	font-size: 14px;
	line-height: 1.5;
	color: #333333;
}

.ccb-privacy-link {
	color: #0073aa;
	text-decoration: underline;
	margin-left: 5px;
}

.ccb-privacy-link:hover {
	color: #005177;
}

.ccb-banner-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ccb-button {
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	min-width: 100px;
}

.ccb-button-accept {
	background-color: #0073aa;
	color: #ffffff;
}

.ccb-button-accept:hover {
	background-color: #005177;
}

.ccb-button-decline {
	background-color: #f0f0f0;
	color: #333333;
	border: 1px solid #d0d0d0;
}

.ccb-button-decline:hover {
	background-color: #e0e0e0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
	#ccb-banner {
		padding: 15px;
	}
	
	.ccb-banner-content {
		flex-direction: column;
		align-items: stretch;
	}
	
	.ccb-banner-text {
		margin-bottom: 10px;
	}
	
	.ccb-banner-buttons {
		width: 100%;
	}
	
	.ccb-button {
		flex: 1;
	}
}

/* Анимация появления */
.ccb-banner-show {
	animation: ccb-slide-in 0.3s ease-out;
}

@keyframes ccb-slide-in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ccb-banner-top.ccb-banner-show {
	animation-name: ccb-slide-in-top;
}

@keyframes ccb-slide-in-top {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
