/* Statistics consent banner (includes/consent.php). Uses the theme's .btn styles; quiet card, bottom-left. */
.dtsun-consent {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 60;
	display: grid;
	gap: 14px;
	width: min(420px, calc(100vw - 32px));
	padding: 18px 20px;
	border: 1px solid var(--line, rgba(30, 27, 26, 0.14));
	border-radius: 14px;
	background: #fff;
	color: var(--soot, #1e1b1a);
	box-shadow: 0 12px 32px rgba(30, 27, 26, 0.18);
	font-size: 0.95rem;
	line-height: 1.55;
}
.dtsun-consent[hidden] { display: none; }
.dtsun-consent__text { margin: 0; }
.dtsun-consent__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dtsun-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dtsun-consent__actions .btn { flex: 1 1 0; justify-content: center; min-height: 44px; }

/* Footer "ตั้งค่าคุกกี้": looks like the other small-print links. */
.dtsun-consent__reopen {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-block: -10px;
	padding: 0;
	border: 0;
	background: none;
	color: #d9d4cf; /* same as the footer links (.site-footer a) */
	font: inherit;
	text-decoration: none;
	cursor: pointer;
}
.dtsun-consent__reopen:hover { color: #fff; text-decoration: underline; }
.dtsun-consent__reopen:focus-visible { outline: 2px solid var(--ember, #b4232b); outline-offset: 2px; }

@media (max-width: 600px) {
	.dtsun-consent { left: 0; right: 0; bottom: 0; width: auto; border-radius: 14px 14px 0 0; border-bottom: 0; padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
	.dtsun-consent:not([hidden]) { animation: dtsun-consent-in 0.25s ease-out; }
	@keyframes dtsun-consent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
.dtsun-consent__links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
