/**
 * Variation Swatches Custom Styles
 * Custom styling untuk plugin Variation Swatches for WooCommerce
 */

/* Hide selected variation label value */
.cfvsw-selected-label {
	display: none !important;
}

/* Hide Clear/Reset variations button */
.reset_variations {
	display: none !important;
}

/* Hide variation price di bagian bawah (karena kita update harga utama) */
.woocommerce-variation-price {
	display: none !important;
}

/* Step label styling - Badge dengan rounded left + border bottom menyatu */
.cfvsw-step-label {
	display: flex;
	align-items: flex-end;
	margin: 10px 0;
	width: 100%;
}

.cfvsw-step-label:first-child {
	margin-top: 0;
}

.cfvsw-step-badge {
	background-color: var(--base-900, #1e3a5f);
	color: #ffffff;
	padding: 4px 12px;
	font-weight: 600;
	font-size: 12px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	display: inline-block;
	white-space: nowrap;
	line-height: 1.4;
	flex-shrink: 0;
	border-bottom: 1px solid var(--base-900, #1e3a5f);
}

.cfvsw-step-line {
	flex: 1;
	height: 1px;
	background-color: var(--base-900, #1e3a5f);
	margin-left: 0;
	margin-bottom: 0;
	align-self: flex-end;
}

.cfvsw-step-wrapper {
	margin-bottom: 12px;
}

.cfvsw-step-wrapper table.variations {
	margin-top: 0;
}

/* Image swatch dengan label di bawah */
.cfvsw-image-with-label {
	flex-direction: column;
	align-items: center;
	padding-bottom: 8px;
	min-height: 130px !important;
	border-radius: 12px !important;
}

.cfvsw-image-with-label .cfvsw-swatch-inner {
	margin-bottom: 8px;
}

.cfvsw-image-label-text {
	font-size: 12px;
	color: #333;
	text-align: center;
	line-height: 1.3;
	margin-top: 4px;
	font-weight: 500;
	width: 100%;
}

/* Fix tooltip position untuk image swatch dengan label */
.cfvsw-image-with-label .cfvsw-tooltip {
	bottom: auto !important;
	top: -10px !important;
	transform: translateX(-50%) translateY(-100%) !important;
}

.cfvsw-image-with-label .cfvsw-tooltip::before {
	bottom: -5px !important;
	top: auto !important;
	left: calc(50% - 4px) !important;
	transform: rotate(45deg) !important;
}

/* Global tooltip size tweak (berlaku untuk semua swatches) */
.cfvsw-tooltip {
	padding: 0.35em 0.8em;
	font-size: 0.9em;
	min-width: 14px;
	min-height: 14px;
}

.cfvsw-tooltip-label {
	font-size: 13px !important;
}

.cfvsw-tooltip-preview {
	min-width: 70px;
	min-height: 70px;
}

.cfvsw-swatches-container {
	grid-gap: 14px !important;
}