/**
 * Top Banner — frontend.
 *
 * Sınıf öneki pt-tb-*: temadaki eski .banner-* kurallarıyla çakışmasın diye.
 */

.pt-tb {
	position: relative;
	width: 100%;
	margin: 0 auto;
}

.pt-tb-viewport {
	width: 100%;
	overflow: hidden;
}

.pt-tb-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
	touch-action: pan-y;
}

.pt-tb-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.pt-tb-link {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	height: 100%;
}

.pt-tb-img {
	display: block;
	max-width: 100%;
	max-height: 50px;
	height: auto;
	width: auto;
	pointer-events: none;
}

/* Kontroller — Flatsome sıfırlaması.
   flatsome.css `button` etiketine `min-width: 24px; min-height: 2.5em; line-height: 2.4em`
   ve `margin-bottom: 1em` veriyor. min-* değerleri spesifiklikten bağımsız olarak
   width/height'ı klipsler; sıfırlanmazsa nokta 6px yerine 24×39px olup şeridin
   üstünden taşar. */

.pt-tb-nav,
.pt-tb-dot {
	min-width: 0;
	min-height: 0;
	margin: 0;
	box-shadow: none;
}

/* Oklar */

.pt-tb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.pt-tb-nav:hover,
.pt-tb-nav:focus-visible {
	opacity: 1;
	background: rgba(0, 0, 0, 0.45);
}

.pt-tb-prev {
	left: 10px;
}

.pt-tb-next {
	right: 10px;
}

/* Noktalar */

.pt-tb-dots {
	position: absolute;
	left: 50%;
	bottom: 4px;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 6px;
}

.pt-tb-dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pt-tb-dot.is-aktif {
	background: #fff;
}

/* Tek banner varsa kontroller hiç basılmıyor; yine de güvence olsun */

.pt-tb:not(.pt-tb--coklu) .pt-tb-nav,
.pt-tb:not(.pt-tb--coklu) .pt-tb-dots {
	display: none;
}

@media (max-width: 1024px) {
	.pt-tb-nav {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}

	.pt-tb-prev {
		left: 4px;
	}

	.pt-tb-next {
		right: 4px;
	}
}

@media (max-width: 768px) {
	.pt-tb-nav {
		display: none;
	}

	.pt-tb-track {
		cursor: grab;
	}

	.pt-tb-track:active {
		cursor: grabbing;
	}
}
