/**
 * Rahman Bazian widgets — carousel controls for the theme's Owl carousels.
 * Loaded on every front-end page (the Noile testimonials widget is not one
 * of ours, so rbw-widgets.css may not be on the page).
 */

/* Every Owl arrow and dot: a visible keyboard focus ring. */
.owl-carousel .owl-nav button:focus-visible,
.owl-carousel .owl-dots .owl-dot:focus-visible {
	outline: 2px solid var(--noile-base, #256884);
	outline-offset: 3px;
}

/* ---- Noile testimonials: 44×44 arrows on one row with the dots ----
   The carousel becomes a wrapping flex row: the slides take the full first
   line, then prev · dots · next share the second. */
.testimonial-one__carousel.owl-carousel.owl-loaded {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: 16px;
}

.testimonial-one__carousel > .owl-stage-outer {
	flex: 0 0 100%;
	min-width: 0;
}

.testimonial-one__carousel > .owl-nav:not(.disabled) {
	display: contents;
}

.testimonial-one__carousel .owl-nav button.owl-prev,
.testimonial-one__carousel .owl-nav button.owl-next {
	order: 1;
	align-self: flex-end;
	width: 44px;
	height: 44px;
	margin: 36px 0 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--noile-base, #256884);
	border-radius: 0;
	background: #ffffff;
	color: var(--noile-base, #256884);
	font-size: 22px;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.testimonial-one__carousel .owl-nav button.owl-next {
	order: 3;
}

.testimonial-one__carousel .owl-nav button.owl-prev:hover,
.testimonial-one__carousel .owl-nav button.owl-next:hover,
.testimonial-one__carousel .owl-nav button.owl-prev:focus-visible,
.testimonial-one__carousel .owl-nav button.owl-next:focus-visible {
	background: var(--noile-base, #256884);
	color: #ffffff;
}

.testimonial-one__carousel .owl-nav button.disabled {
	opacity: 0.4;
	cursor: default;
}

/* The theme forces the dots' top margin (50px !important), so arrows and dots
   line up on their bottom edge instead: both are 44px tall, so their centres
   match whatever that margin is. */
.testimonial-one__carousel > .owl-dots {
	order: 2;
	align-self: flex-end;
	height: 44px;
	align-items: center;
	margin-inline: 4px;
}

/* Dots keep their look; an invisible layer makes each one 24px to tap. */
.testimonial-one__carousel .owl-dots .owl-dot {
	position: relative;
}

.testimonial-one__carousel .owl-dots .owl-dot::after {
	content: "";
	position: absolute;
	inset: -7px; /* from inside the 1px border: 12px dot → 24px */
}
