/**
 * Tab section Däck/Fälgar – mobile: tab buttons (Däck, Fälgar) at top, always in one row.
 *
 * @package Blocksy_Child
 */

/* Mobile: force tab heading above content, both tabs in one row */
@media (max-width: 1024px) {
	/* Widget + direct child */
	#tab-section-tire-rims.elementor-widget-n-tabs,
	#tab-section-tire-rims .elementor-widget-container {
		display: flex !important;
		flex-direction: column !important;
	}

	#tab-section-tire-rims .e-n-tabs {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
	}

	/* Tab buttons: always first, never wrap */
	#tab-section-tire-rims .e-n-tabs-heading {
		order: -1 !important;
		flex-shrink: 0 !important;
		flex-wrap: nowrap !important;
		display: flex !important;
		flex-direction: row !important;
		align-items: stretch !important;
		min-width: 0 !important;
	}

	#tab-section-tire-rims .e-n-tabs-heading .e-n-tab-title {
		flex-shrink: 0 !important;
		white-space: nowrap !important;
		min-width: fit-content !important;
	}

	/* Tab content: below heading */
	#tab-section-tire-rims .e-n-tabs-content {
		order: 1 !important;
		flex: 1 1 auto !important;
		min-height: 0 !important;
	}
}

/**
 * Däck hero – tyre image dynamic labels (Bredd / Profil / Tum).
 * The JS file `dack-hero-image.js` injects three spans with
 * classes .dack-hero-label-[width|profile|diameter] inside the
 * `#dack-hero-section-image` wrapper; these styles position and style them.
 */

#dack-hero-section-image {
	position: relative;
	display: inline-block;
}

#dack-hero-section-image img {
	display: block;
	height: auto;
	max-width: 100%;
}

.dack-hero-tyre-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.dack-hero-label {
	position: absolute;
	transform: translate(-50%, -50%);
	min-width: 0;
	padding: 0;
	border-radius: 0;
	background-color: transparent;
	color: #fff;
	font-weight: 700;
	font-size: clamp(11px, 1.4vw, 16px);
	text-align: center;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Positions: Bredd bottom-left, Profil top-right curve, Tum outside bottom-right */
.dack-hero-label-width {
	top: 46%;
	left: 25%;
	transform: translate(-50%, -50%) rotate(-24deg);
}

.dack-hero-label-profile {
	top: 42%;
	left: 36%;
}

.dack-hero-label-diameter {
	top: 44%;
	left: 47%;
	transform: translate(-50%, -50%) rotate(20deg);
}


@media (max-width: 768px) {

	#dack-hero-section-image img {
		width: 100% !important;
	}

	.dack-hero-label {
		font-size: 13px;
	}
	
	.dack-hero-label-width {
		top: 46%;
		left: 34%;
		transform: translate(-50%, -50%) rotate(-28deg);
	}
	
	.dack-hero-label-profile {
		top: 42%;
		left: 48%;
	}
	
	.dack-hero-label-diameter {
		top: 44%;
		left: 63%;
		transform: translate(-50%, -50%) rotate(20deg);
	}
}
