/* Sunsky Dropship — image swatches for colour (and model) on variable products.
   Renders small square thumbnail swatches like Sunsky, independent of any
   third-party swatches plugin. */

.sds-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0 14px;
}

.sds-swatch {
	position: relative;
	width: 56px;
	height: 56px;
	border: 2px solid #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #fff;
	padding: 0;
	transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.sds-swatch:hover {
	border-color: #999;
	transform: translateY(-1px);
}

.sds-swatch.is-selected {
	border-color: #f4511e;
	box-shadow: 0 0 0 2px rgba(244, 81, 30, .25);
}

.sds-swatch img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Text buttons (e.g. Model) — compact, clean, Sunsky-style. */
.sds-swatch.is-text {
	width: auto;
	min-width: 0;
	height: auto;
	padding: 7px 14px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: .1px;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #fff;
	color: #333;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-transform: none;
}

.sds-swatch.is-text:hover {
	border-color: #f4511e;
	color: #f4511e;
	transform: none;
}

.sds-swatch.is-text.is-selected {
	border-color: #f4511e;
	color: #f4511e;
	background: #fff5f1;
	box-shadow: none;
}

/* Tighter gap for the text-button rows. */
.sds-swatches:has(.is-text) {
	gap: 6px;
	row-gap: 6px;
}
.sds-swatch.is-text {
	margin: 0;
}

.sds-swatch.is-disabled {
	opacity: .35;
	cursor: not-allowed;
}

/* Small label above the swatch row showing the picked value. */
.sds-swatch-label {
	font-size: 13px;
	color: #666;
	margin-bottom: 4px;
}
.sds-swatch-label b { color: #222; }

/* Hide the native select we replaced (kept in DOM for WooCommerce). */
.sds-swatches-hidden-select {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0);
}

/* ── Bulk / quantity tier pricing ── */
.sds-tier-wrap { margin: 10px 0 16px; }
.sds-tier-title { font-size: 12.5px; font-weight: 700; color: #f4511e; margin: 0 0 8px; text-transform: none; }
.sds-tier-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sds-tier {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	min-width: 72px; padding: 8px 12px; border: 1.5px solid #e4e6e9;
	border-radius: 10px; background: #fff; line-height: 1.2;
}
.sds-tier-q { font-size: 11.5px; color: #6b7280; font-weight: 600; white-space: nowrap; }
.sds-tier-p { font-size: 14px; color: #1f2937; font-weight: 800; }
.sds-tier-p .amount, .sds-tier-p bdi { color: #1f2937 !important; }

/* Tier boxes are clickable buttons. */
.sds-tier { cursor: pointer; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.sds-tier:hover { border-color: #f4511e; }
.sds-tier.is-active { border-color: #f4511e; box-shadow: 0 0 0 2px rgba(244,81,30,.2); }
.sds-tier.is-active .sds-tier-p { color: #f4511e; }
