/* ── Pill button (WP block button styled like the state buttons) ─────────────
 * Add `wpgmza-tc-pill-btn` to the wrapping <div class="wp-block-button">.
 * The wrapper draws the pill; the inner link fills it so the whole pill is clickable.
 */

/* Keep the buttons on one line, spaced like the state buttons. */
.wp-block-buttons:has(> .wp-block-button.wpgmza-tc-pill-btn) {
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.wp-block-button.wpgmza-tc-pill-btn {
	/* Don't stretch to the row height, and match the state buttons' vertical margin. */
	align-self: center;
	flex: 0 0 auto;
	margin: 16px 0 8px;
	padding: 0;
	height: auto;
	min-height: 0;
	border: 1px solid #d4c9b0;
	border-radius: 20px;
	background: #fff;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.wp-block-button.wpgmza-tc-pill-btn .wp-block-button__link {
	display: block;
	box-sizing: border-box;
	width: auto;
	height: auto;
	min-height: 0;
	aspect-ratio: auto;
	margin: 0;
	padding: 6px 14px;
	border: 0;
	border-radius: 20px;
	background: transparent;
	color: #4a4035;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	/* The state buttons pick these up from the theme's <button> styling. */
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: none;
	transition: color 0.15s;
}

.wp-block-button.wpgmza-tc-pill-btn:hover {
	border-color: #b5631f;
}

.wp-block-button.wpgmza-tc-pill-btn .wp-block-button__link:hover,
.wp-block-button.wpgmza-tc-pill-btn .wp-block-button__link:focus,
.wp-block-button.wpgmza-tc-pill-btn .wp-block-button__link:active {
	background: transparent;
	color: #b5631f;
	text-decoration: none;
	box-shadow: none;
}

/* ── Mobile: sit tight under the state row ─────────────────────────────────── */
@media (max-width: 781px) {
	.wp-block-buttons:has(> .wp-block-button.wpgmza-tc-pill-btn) {
		justify-content: flex-end;
	}

	.wp-block-button.wpgmza-tc-pill-btn {
		margin: 4px 0 8px;
	}
}
