/**
 * Branded content buttons — TinyMCE preview + front (also in main.css).
 */
.btn.rma-content-btn,
.rma-content-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-height: 3rem;
	padding: 0.7rem 1.7rem;
	border: 0;
	border-radius: 999px;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	vertical-align: middle;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.rma-content-btn:hover,
.rma-content-btn:focus-visible {
	transform: translateY(-1px);
	filter: brightness(0.97);
}

.rma-content-btn--secondary {
	background: #252525;
	color: #ffffff !important;
}

.rma-content-btn--accent {
	background: #cebbaa;
	color: #252525 !important;
}

.rma-content-btn--primary {
	background: #efe7dd;
	color: #252525 !important;
}

.rma-content-btn--green {
	background: #259e83;
	color: #ffffff !important;
}

.rma-content-btn--white {
	background: #ffffff;
	color: #252525 !important;
	box-shadow: inset 0 0 0 1px #cebbaa;
}

.rma-content-btn--icon-start::before,
.rma-content-btn--icon-end::after {
	content: '';
	display: block;
	flex: 0 0 auto;
	width: 0.85em;
	height: 0.85em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M10 3L4 8L10 13' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M10 3L4 8L10 13' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

/* Default glyph points left; flip so “end” faces outward in LTR. */
html[dir='ltr'] .rma-content-btn--icon-end::after {
	transform: scaleX(-1);
}

html[dir='rtl'] .rma-content-btn--icon-start::before {
	transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
	.rma-content-btn,
	.rma-content-btn:hover,
	.rma-content-btn:focus-visible {
		transition: none;
		transform: none;
	}
}
