/**
 * RWO Link Container — stretched-link overlay
 * Keeps the container as the positioning context, lets the overlay span its full box,
 * and lifts interactive descendants above the overlay so they remain clickable.
 */

.rwo-has-link {
	position: relative;
	cursor: pointer;
}

.rwo-has-link > .rwo-link-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
	background: transparent;
	border: 0;
	/* keep the link discoverable by AT but invisible visually */
	color: transparent;
	font-size: 0;
	line-height: 0;
	text-decoration: none;
}

.rwo-has-link > .rwo-link-overlay:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* Lift descendants that should remain interactive above the overlay. */
.rwo-has-link a:not(.rwo-link-overlay),
.rwo-has-link button,
.rwo-has-link input,
.rwo-has-link textarea,
.rwo-has-link select,
.rwo-has-link label,
.rwo-has-link summary,
.rwo-has-link [role="button"],
.rwo-has-link [role="link"],
.rwo-has-link [role="tab"],
.rwo-has-link [role="menuitem"],
.rwo-has-link .elementor-button,
.rwo-has-link .elementor-button-wrapper,
.rwo-has-link .swiper-button-next,
.rwo-has-link .swiper-button-prev,
.rwo-has-link .swiper-pagination {
	position: relative;
	z-index: 2;
}

/* Suppress navigation while editing in Elementor preview, but keep the overlay visible. */
.elementor-editor-active .rwo-has-link > .rwo-link-overlay,
body.elementor-editor-preview .rwo-has-link > .rwo-link-overlay {
	pointer-events: none;
}
