/**
 * Cookie Notice 样式
 * 简洁的底部提示条设计
 */

.compt-cookie-notice {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #2c3e50;
	color: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

.compt-cookie-notice.is-visible {
	transform: translateY(0);
}

.compt-cookie-notice__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: var(--compt-content-width, 1400px);
	margin: 0 auto;
	padding: 16px 24px;
}

.compt-cookie-notice__content {
	flex: 1;
	min-width: 0;
}

.compt-cookie-notice__title {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}

.compt-cookie-notice__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.compt-cookie-notice__link {
	color: #3498db;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.compt-cookie-notice__link:hover {
	color: #5dade2;
}

.compt-cookie-notice__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.compt-cookie-notice__button {
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 500;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.compt-cookie-notice__button--settings {
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.compt-cookie-notice__button--settings:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}

.compt-cookie-notice__button--accept {
	background: #3498db;
	color: #fff;
}

.compt-cookie-notice__button--accept:hover {
	background: #2980b9;
}

.compt-cookie-notice__close {
	margin-left: 8px;
	padding: 8px;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease;
}

.compt-cookie-notice__close:hover {
	color: #fff;
}

/* 响应式适配 */
@media (max-width: 768px) {
	.compt-cookie-notice__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 16px 20px;
		gap: 16px;
	}

	.compt-cookie-notice__actions {
		justify-content: space-between;
	}

	.compt-cookie-notice__button {
		flex: 1;
		padding: 12px 16px;
	}

	.compt-cookie-notice__close {
		position: absolute;
		top: 12px;
		right: 12px;
	}
}

@media (max-width: 480px) {
	.compt-cookie-notice__title {
		font-size: 15px;
	}

	.compt-cookie-notice__text {
		font-size: 13px;
	}

	.compt-cookie-notice__actions {
		flex-direction: column;
		gap: 8px;
	}

	.compt-cookie-notice__button--settings {
		order: 2;
	}

	.compt-cookie-notice__button--accept {
		order: 1;
	}
}