/**
 * VN Cookie Consent Manager — frontend styles.
 * Bottom-left popup, responsive, no framework dependency.
 */

.vnccm-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 999999;
	width: 380px;
	max-width: calc(100vw - 40px);
	box-sizing: border-box;
	padding: 20px 22px 18px;
	background: #ffffff;
	color: #1f2430;
	border: 1px solid #e6e8ec;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.vnccm-banner[hidden] {
	display: none;
}

.vnccm-banner.vnccm-visible {
	opacity: 1;
	transform: translateY(0);
}

.vnccm-title {
	margin: 0 28px 8px 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #11151c;
}

.vnccm-desc {
	margin: 0 0 16px;
	font-size: 13.5px;
	color: #434a57;
}

.vnccm-policy {
	color: #2563eb;
	text-decoration: underline;
	white-space: nowrap;
}

.vnccm-actions {
	display: flex;
	gap: 10px;
}

.vnccm-btn {
	flex: 1 1 0;
	appearance: none;
	border: 1px solid transparent;
	border-radius: 9px;
	padding: 11px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vnccm-btn-accept {
	background: #4600b9;
	color: #ffffff;
}

.vnccm-btn-accept:hover {
	background: #36008f;
}

.vnccm-btn-deny {
	background: #f2f3f5;
	color: #1f2430;
	border-color: #e0e2e7;
}

.vnccm-btn-deny:hover {
	background: #e7e9ed;
}

.vnccm-btn:focus-visible,
.vnccm-close:focus-visible,
.vnccm-policy:focus-visible {
	outline: 2px solid #4600b9;
	outline-offset: 2px;
}

.vnccm-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #8b909b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
	margin: 0;
	padding: 0;
}

.vnccm-close:hover {
	background: #f2f3f5;
	color: #1f2430;
}

/* Footer settings link */
.vnccm-footer-link {
	text-align: center;
	margin: 12px 0;
	font-size: 13px;
}

.vnccm-open-settings {
	cursor: pointer;
}

/* Tablet / mobile: full-width strip pinned to the bottom, never covers the
   whole screen. */
@media (max-width: 600px) {
	.vnccm-banner {
		left: 10px;
		right: 10px;
		bottom: 10px;
		width: auto;
		max-width: none;
		padding: 16px 16px 14px;
		border-radius: 12px;
	}

	.vnccm-actions {
		flex-direction: column-reverse;
	}

	.vnccm-btn {
		width: 100%;
		padding: 12px 14px;
	}
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
	.vnccm-banner {
		transition: none;
	}
}

/* Optional dark scheme to blend with dark themes. */
@media (prefers-color-scheme: dark) {
	.vnccm-banner {
		background: #1b1f27;
		color: #e6e8ec;
		border-color: #2c313c;
	}
	.vnccm-title { color: #f3f5f8; }
	.vnccm-desc { color: #b8bfca; }
	.vnccm-btn-deny {
		background: #2a2f39;
		color: #e6e8ec;
		border-color: #3a4150;
	}
	.vnccm-btn-deny:hover { background: #333a45; }
	.vnccm-close:hover { background: #2a2f39; color: #fff; }
}
