/* =============================================
   Jump Menu Shortcode – Front-end Styles
   ============================================= */

.jm-wrapper {
	margin: 2em 0;
	padding: 1.5em 2em;
	background: #fff;
	border: 2px solid #e8e8e8;
	border-radius: 12px;
	box-sizing: border-box;
	width: 100%;
}

.jm-title {
	font-size: 1.1em !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #111 !important;
	margin: 0 0 1em 0 !important;
	padding: 0 !important;
	border: none !important;
}

.jm-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---- Pill button ---- */
.jm-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px 9px 16px;
	background: #cc0000;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 700;
	line-height: 1.3;

	/* KEY FIX: allow text to wrap inside the pill */
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;

	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
	box-shadow: 0 2px 6px rgba(204,0,0,0.25);
	box-sizing: border-box;
}

.jm-btn:hover,
.jm-btn:focus {
	background: #a80000;
	color: #fff !important;
	text-decoration: none !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(204,0,0,0.35);
	outline: none;
}

.jm-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(204,0,0,0.2);
}

/* Arrow icon – keep it from shrinking/wrapping */
.jm-arrow {
	width: 16px;
	height: 16px;
	min-width: 16px;
	flex-shrink: 0;
	opacity: 0.9;
	align-self: center;
}

/* -----------------------------------------------
   Mobile – buttons stack full-width
   ----------------------------------------------- */
@media (max-width: 600px) {

	.jm-wrapper {
		padding: 1.1em 1em;
		border-radius: 8px;
	}

	.jm-title {
		font-size: 1em !important;
		margin: 0 0 0.85em 0 !important;
	}

	.jm-nav {
		flex-direction: column;
		gap: 7px;
	}

	/* Each button fills the full container width */
	.jm-btn {
		width: 100%;
		justify-content: space-between;
		font-size: 0.83em;
		padding: 10px 14px 10px 16px;
		border-radius: 999px;
		box-sizing: border-box;
		/* Text wraps naturally inside full-width pill */
		white-space: normal;
		line-height: 1.35;
	}

	.jm-arrow {
		width: 15px;
		height: 15px;
		min-width: 15px;
	}
}

/* -----------------------------------------------
   Very small screens (< 360px)
   ----------------------------------------------- */
@media (max-width: 360px) {

	.jm-wrapper {
		padding: 0.9em 0.8em;
	}

	.jm-btn {
		font-size: 0.78em;
		padding: 9px 12px 9px 14px;
	}
}
