/* =============================================================
 * Ondata Quote Builder Majop — Carrossel CSS (v2.2.0)
 *
 * Depende de:
 *   - swiper-bundle.min.css (CDN)
 *   - frontend.css (cards, botões, variáveis)
 * ============================================================= */

.oqm-carousel-wrap {
	font-family: 'Inter', -apple-system, sans-serif;
	margin: 24px auto;
	max-width: 1240px;
	padding: 0 24px;
	position: relative;
}

.oqm-carousel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.oqm-carousel-title {
	font-size: clamp(18px, 2.4vw, 22px);
	font-weight: 600;
	margin: 0;
	color: var(--oqm-text);
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.oqm-carousel-arrows {
	display: flex;
	gap: 8px;
}

.oqm-carousel-prev,
.oqm-carousel-next {
	background: #fff;
	border: 1px solid var(--oqm-border);
	color: var(--oqm-primary);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
}

.oqm-carousel-prev:hover,
.oqm-carousel-next:hover {
	background: var(--oqm-primary);
	border-color: var(--oqm-primary);
	color: #fff;
	transform: translateY(-1px);
}

.oqm-carousel-prev:disabled,
.oqm-carousel-next:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none;
}

.oqm-carousel-prev:disabled:hover,
.oqm-carousel-next:disabled:hover {
	background: #fff;
	color: var(--oqm-primary);
	border-color: var(--oqm-border);
}

/* Wrapper Swiper — overrides */
.oqm-carousel.swiper {
	padding: 8px 4px 32px;
	overflow: hidden;
}

.oqm-carousel .swiper-slide {
	height: auto;
	display: flex;
}

.oqm-carousel .swiper-slide > .oqm-card {
	width: 100%;
	height: 100%;
}

/* Bolinhas de paginação (quando ativas) */
.oqm-carousel .swiper-pagination {
	bottom: 4px !important;
}

.oqm-carousel .swiper-pagination-bullet {
	background: #D1D5DB;
	opacity: 1;
	transition: all 0.2s;
}

.oqm-carousel .swiper-pagination-bullet-active {
	background: var(--oqm-primary);
	width: 24px;
	border-radius: 4px;
}

/* Mobile: header empilhado */
@media (max-width: 580px) {
	.oqm-carousel-wrap {
		padding: 0 16px;
		margin: 16px auto;
	}

	.oqm-carousel-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.oqm-carousel-arrows {
		align-self: flex-end;
		margin-top: -36px;
		position: absolute;
		right: 16px;
		top: 8px;
	}

	.oqm-carousel-prev,
	.oqm-carousel-next {
		width: 32px;
		height: 32px;
	}
}
