/**
 * Design arrows on Divi buttons.
 *
 * Any button using Divi's arrow icon ($) gets the design's stroke arrow
 * instead of the icon-font glyph, in the button's icon colour. Buttons keep
 * their Divi icon settings (on/off, colour, placement); only the drawing
 * changes. Other directions are picked per module in Advanced → Custom CSS:
 *   selector:after { --hc-icon: var(--hc-arrow-ur); }    ↗ external link
 *   selector:after { --hc-icon: var(--hc-arrow-down); }  ↓ in-page jump
 */
:root {
	--hc-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
	--hc-arrow-ur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
	--hc-arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='m6 13 6 6 6-6'/%3E%3C/svg%3E");
	--hc-arrow-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 18-6-6 6-6'/%3E%3C/svg%3E");
}

body .et_pb_button[data-icon="$"]::after,
body .et_pb_button.hc-arrow-icon::after {
	content: "" !important;
	width: 1.15em;
	height: 1.15em;
	font-size: inherit !important;
	line-height: 1 !important;
	top: 50%;
	transform: translateY(-50%);
	background-color: currentColor;
	-webkit-mask: var(--hc-icon, var(--hc-arrow)) center / contain no-repeat;
	mask: var(--hc-icon, var(--hc-arrow)) center / contain no-repeat;
}

/* Arrow buttons (gold, green… everything except the two text-link presets):
   label and arrow sit side by side, 10px apart and centred as a pair, as in the
   design. The arrow is part of the button's width, so the button's own padding
   stays symmetrical. Per module: `selector{--hc-arrow-size:16px;--hc-arrow-gap:8px}`.
   The long selectors outrank Divi's `body #page-container .et_pb_section … :after` rules. */
body #page-container .et_pb_section .et_pb_button[data-icon="$"]:not(.preset--module--divi-button--hcd2ae5c34):not(.preset--module--divi-button--hcaf2d89a2) {
	display: inline-flex;
	flex-direction: row; /* Divi makes modules column flex boxes */
	align-items: center;
	justify-content: center;
	gap: var(--hc-arrow-gap, 10px);
}
body #page-container .et_pb_section .et_pb_button[data-icon="$"]:not(.preset--module--divi-button--hcd2ae5c34):not(.preset--module--divi-button--hcaf2d89a2)::after {
	position: static !important;
	flex: none;
	width: var(--hc-arrow-size, 18px);
	height: var(--hc-arrow-size, 18px);
	margin: -4px 0 !important; /* taller than the 14px label: don't let it grow the button */
	transform: none !important;
	opacity: 1 !important;
}

/* Text-link presets: the arrow is pinned to the right edge of the link, inside
   the preset's 24px right padding (8px gap + 16px arrow, as in the design), so
   it stays put when a long label wraps onto two lines. The long selector
   outranks Divi's own `body #page-container .et_pb_section … :after` rules. */
body #page-container .et_pb_section .et_pb_button.preset--module--divi-button--hcd2ae5c34::after,
body #page-container .et_pb_section .et_pb_button.preset--module--divi-button--hcaf2d89a2::after {
	left: auto !important;
	right: var(--hc-arrow-inset, 0px) !important;
	margin-left: 0 !important;
}
