/* Double class (.rcb-badge.rcb-badge) raises specificity so theme button
   resets (e.g. ".woocommerce button") do not strip the styling. */
.rcb-badge.rcb-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: var(--rcb-margin-y, 0px) var(--rcb-margin-x, 0px);
	padding: var(--rcb-pad-y, 6px) var(--rcb-pad-x, 10px);
	background: var(--rcb-bg, #e8f5e9);
	background-image: none;
	color: var(--rcb-color, #1b5e20);
	border: 1px solid var(--rcb-border, #a5d6a7);
	border-radius: var(--rcb-radius, 4px);
	font-size: var(--rcb-font-size, 16px);
	line-height: 1.3;
	font-weight: 600;
	cursor: pointer;
	max-width: 100%;
	width: auto;
	text-align: left;
	text-transform: uppercase;
	box-shadow: none;
	letter-spacing: normal;
}

.rcb-badge:hover {
	filter: brightness(0.97);
}

.rcb-badge:focus-visible {
	outline: 2px solid var(--rcb-color, #1b5e20);
	outline-offset: 2px;
}

/* Same double-class trick so these win over the base .rcb-badge.rcb-badge rule. */
.rcb-badge.rcb-badge--loop {
	width: 100%;
	justify-content: center;
	text-align: center;
}

.rcb-badge__icon {
	display: inline-flex;
	align-items: center;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.rcb-badge:hover .rcb-badge__icon,
.rcb-badge:focus-visible .rcb-badge__icon {
	opacity: 1;
}

.rcb-badge.is-copied .rcb-badge__icon {
	display: none;
}

.rcb-badge__feedback {
	display: none;
	font-weight: 700;
}

.rcb-badge.is-copied .rcb-badge__text {
	display: none;
}

.rcb-badge.is-copied .rcb-badge__feedback {
	display: inline;
}

.rcb-badge.is-hidden {
	display: none;
}
