/* Cookie 同意横幅
   贴底而不是遮罩全屏：访客还没决定要不要信任这个站之前，先被一个
   不能关的黑幕拦住，体验上更像勒索。贴底条足够显眼，也留得住内容。 */

.consent {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 90;
	padding: var(--space-4);
	background: var(--color-white);
	border-top: 1px solid var(--color-border);
	box-shadow: 0 -8px 24px rgb(0 0 0 / 10%);
}

.consent-inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-4);
	align-items: center;
	justify-content: space-between;
	max-width: var(--container);
	margin-inline: auto;
}

.consent-text {
	flex: 1 1 24rem;
	min-width: 0;
}

.consent-title {
	margin: 0 0 var(--space-1);
	font-size: 1rem;
	font-weight: 800;
	color: var(--color-text);
}

.consent-text p {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--color-text-muted);
}

.consent-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	flex-shrink: 0;
}

/* 两个按钮同宽同高：拒绝做得比接受难，拿到的就不是自由给出的同意。 */
.consent-actions .btn {
	flex: 1 1 auto;
	min-width: 9rem;
	justify-content: center;
}

@media (max-width: 640px) {
	.consent {
		/* 手机上 WhatsApp 浮标在右下角，横幅别把它压住。 */
		padding-bottom: var(--space-6);
	}

	.consent-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.consent-actions .btn {
		width: 100%;
	}
}
