/**
 * web51net Cookie Manager - Shortcode styles (in-content only).
 */

.w51cm-cookie-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	/* Layout (width/margins) is handled by the theme content column. */
}

.w51cm-cookie-table-wrap .w51cm-cookie-table {
	margin: 0;
}

/*
 * Do not style .w51cm-preferences-trigger layout: WordPress block themes center
 * .wp-block-paragraph children via layout container rules (e.g. max-width + margin auto).
 * Any width/margin on the wrapper breaks that alignment.
 */

.w51cm-open-preferences {
	position: static;
	float: none;
	clear: none;
	display: inline-block;
	width: auto;
	max-width: 100%;
	margin: 0;
	vertical-align: baseline;
	box-sizing: border-box;
	border: none;
	border-radius: 8px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	background: var(--w51cm-primary, #1a73e8);
	color: #fff;
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
	user-select: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition:
		background-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.12s ease,
		opacity 0.18s ease;
}

.w51cm-open-preferences:hover,
.w51cm-open-preferences:focus {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.w51cm-open-preferences:active {
	transform: translateY(0) scale(0.98);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
	transition-duration: 0.08s;
}

/* Theme button resets (full-bleed / 100% width rules). */
.entry-content .w51cm-open-preferences,
.wp-block-post-content .w51cm-open-preferences,
main .w51cm-open-preferences {
	display: inline-block !important;
	width: auto !important;
	min-width: 0;
	max-width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
	left: auto !important;
	right: auto !important;
	transform: none !important;
}

@media (max-width: 600px) {
	.w51cm-open-preferences {
		padding: 8px 16px;
		font-size: 13px;
	}
}
