/* WP Smart Auto Back Button v4 - fully scoped styles */

#wp-smart-auto-back-v4.wp-smart-auto-back-v4 {
	display: block !important;
	width: 100% !important;
	max-width: 1200px !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 auto !important;
	padding: 14px 20px 10px !important;
	box-sizing: border-box !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	position: relative !important;
	z-index: 9999 !important;
	text-align: left !important;
	line-height: normal !important;
}

#wp-smart-auto-back-v4.wp-smart-auto-back-v4[hidden] {
	display: none !important;
}

#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__button {
	/* Important: prevents theme CSS from making this a full-width bar. */
	display: inline-flex !important;
	width: auto !important;
	max-width: max-content !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;

	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;

	margin: 0 !important;
	padding: 9px 16px !important;

	border: 1px solid #dedede !important;
	border-radius: 5px !important;

	background: #ffffff !important;
	background-image: none !important;
	color: #222222 !important;

	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-align: left !important;
	text-decoration: none !important;
	text-transform: none !important;
	white-space: nowrap !important;

	cursor: pointer !important;
	box-sizing: border-box !important;

	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease !important;
}

#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__button:hover {
	background: #ffffff !important;
	background-image: none !important;
	color: #222222 !important;
	border-color: #8bd000 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.12) !important;
}

#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__button:active {
	transform: translateY(0) !important;
}

#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__button:focus-visible {
	outline: 3px solid rgba(139, 208, 0, 0.25) !important;
	outline-offset: 2px !important;
}

#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__arrow {
	display: inline-block !important;
	width: auto !important;
	font-size: 19px !important;
	font-weight: 400 !important;
	line-height: 14px !important;
}

#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__text {
	display: inline-block !important;
	width: auto !important;
	font-size: 14px !important;
	line-height: 1.2 !important;
}

/* Match the reference design: compact button, not a full-width green strip. */
@media (max-width: 767px) {
	#wp-smart-auto-back-v4.wp-smart-auto-back-v4 {
		padding: 10px 14px 8px !important;
	}

	#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__button {
		padding: 8px 13px !important;
		font-size: 13px !important;
	}

	#wp-smart-auto-back-v4 .wp-smart-auto-back-v4__text {
		font-size: 13px !important;
	}
}
