.arablady-variation-swatches {
	margin: 0.25rem 0 0.75rem;
}

.arablady-variation-swatches .visually-hidden,
.arablady-variation-swatches__select {
	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;
}

.arablady-variation-swatches__select select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	clip: rect(0, 0, 0, 0) !important;
}

.arablady-variation-swatches__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.arablady-swatch {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	min-width: 3.1rem;
	max-width: 4.8rem;
	padding: 0.3rem 0.35rem 0.35rem;
	border: 1.5px solid rgba(168, 0, 119, 0.16);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
	font: inherit;
	color: #374151;
}

.arablady-swatch:hover:not(.is-disabled) {
	border-color: rgba(168, 0, 119, 0.45);
	box-shadow: 0 2px 8px rgba(168, 0, 119, 0.1);
	transform: translateY(-1px);
}

.arablady-swatch.is-selected {
	border-color: #a80077;
	box-shadow: 0 0 0 1px rgba(168, 0, 119, 0.18);
	background: #fff8fc;
}

.arablady-swatch.is-disabled {
	opacity: 0.38;
	cursor: not-allowed;
}

.arablady-swatch__color {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: var(--swatch-color, #d1d5db);
	border: 1.5px solid rgba(17, 24, 39, 0.12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.arablady-swatch--color .arablady-swatch__color[style*="ffffff"],
.arablady-swatch--color .arablady-swatch__color[style*="#fff"] {
	border-color: rgba(168, 0, 119, 0.25);
}

.arablady-swatch__size {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	min-height: 1.75rem;
	padding: 0.1rem 0.35rem;
	border-radius: 6px;
	background: linear-gradient(180deg, #fff 0%, #fdf2f8 100%);
	font-size: 0.82rem;
	font-weight: 800;
	color: #9d174d;
	line-height: 1;
}

.arablady-swatch__label {
	display: block;
	font-size: 0.62rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	color: #4b5563;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.arablady-swatch.is-selected .arablady-swatch__label {
	color: #831843;
}

.arablady-variation-swatches__grid--size .arablady-swatch {
	min-width: 2.4rem;
	max-width: 2.85rem;
	padding: 0.3rem 0.25rem;
}

.arablady-variation-swatches__grid--size .arablady-swatch__label {
	display: none;
}

table.variations td.label label {
	font-weight: 700;
	color: #9d174d;
	font-size: 0.92rem;
}

.woocommerce div.product form.cart .variations {
	margin-bottom: 0.5rem;
}

.woocommerce div.product form.cart .variations td {
	padding: 0.25rem 0;
	vertical-align: top;
}

.woocommerce div.product form.cart .reset_variations {
	margin-top: 0.25rem;
	font-size: 0.8rem;
}

@media (max-width: 640px) {
	.arablady-variation-swatches__grid {
		gap: 0.3rem;
	}

	.arablady-swatch {
		min-width: 2.85rem;
		max-width: 4.2rem;
	}
}
