/**
 * Schwifty Variation Chips — stacked-detail template
 */

.svc-select-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.svc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 16px;
}

.svc-chips--stacked-detail .svc-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 96px;
	max-width: 140px;
	padding: 12px 10px;
	border: 2px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
	color: #2c2c2c;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font: inherit;
}

.svc-chips--stacked-detail .svc-chip:hover {
	border-color: #999;
}

.svc-chips--stacked-detail .svc-chip.is-selected {
	border-color: #2c2c2c;
	box-shadow: 0 0 0 1px #2c2c2c;
}

.svc-chips--stacked-detail .svc-chip.is-oos {
	opacity: 0.45;
	cursor: not-allowed;
}

.svc-chips--stacked-detail .svc-chip.is-hidden {
	display: none;
}

.svc-chip__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 8px;
	color: #2c2c2c;
	overflow: hidden;
}

.svc-chip__icon svg,
.svc-chip__icon img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	transform: scale(var(--svc-icon-scale, 1));
	transform-origin: center center;
}

.svc-chip__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	width: 100%;
}

.svc-chip__badge {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
}

.svc-chip__label {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
}

.svc-chip__price {
	font-size: 0.85rem;
	line-height: 1.3;
}

.svc-chip__price .woocommerce-Price-amount {
	font-weight: 500;
}

.svc-chip__hint {
	font-size: 0.75rem;
	line-height: 1.3;
	color: #666;
}

@media (max-width: 480px) {
	.svc-chips {
		gap: 8px;
	}

	.svc-chips--stacked-detail .svc-chip {
		min-width: calc(50% - 8px);
		flex: 1 1 calc(50% - 8px);
	}
}
