/**
 * Woo Series & Collection — base frontend styles.
 *
 * Deliberately minimal and low-specificity so a theme can override it
 * without !important battles. Layout/colour/typography are also exposed as
 * plugin settings (Frontend tab) for store owners who don't want to touch
 * CSS at all — this stylesheet just needs to look acceptable by default.
 */

/* --- Product page: unified purchase-option UI --- */

.wsc-purchase-options {
	margin: 1.5em 0;
	padding: 1em 1.25em;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
}

.wsc-option {
	padding: 0.6em 0;
	border-bottom: 1px solid #ececec;
}

.wsc-option:last-of-type {
	border-bottom: none;
}

.wsc-option label {
	display: flex;
	align-items: center;
	gap: 0.5em;
	cursor: pointer;
	font-weight: 500;
}

.wsc-option-checkbox {
	margin: 0;
}

.wsc-option.wsc-option--disabled {
	opacity: 0.5;
}

.wsc-option.wsc-option--disabled label {
	cursor: not-allowed;
}

.wsc-option__attributes {
	margin: 0.6em 0 0.2em 1.6em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.wsc-attribute-select {
	min-width: 160px;
}

.wsc-badge {
	display: inline-block;
	font-size: 0.78em;
	font-weight: 600;
	padding: 0.15em 0.55em;
	border-radius: 999px;
	background: #e8f5e9;
	color: #2e7d32;
	margin-left: 0.5em;
}

.wsc-badge--discount {
	background: #fff3e0;
	color: #e65100;
}

.wsc-badge--savings {
	background: #e8f5e9;
	color: #2e7d32;
}

.wsc-live-total {
	margin-top: 0.9em;
	padding-top: 0.7em;
	border-top: 1px solid #e0e0e0;
	font-size: 1.05em;
}

.wsc-live-total__amount {
	font-weight: 700;
	margin-left: 0.35em;
}

.wsc-includes {
	margin: 0.6em 0 0.2em 1.6em;
}

.wsc-includes__title {
	font-weight: 600;
	margin: 0 0 0.25em;
	font-size: 0.9em;
}

.wsc-includes__list {
	list-style: none;
	margin: 0;
	padding: 0;
	color: #555;
	font-size: 0.88em;
}

/* --- Cart / checkout upsell cards --- */

.wsc-upsells {
	margin-top: 2em;
}

.wsc-upsells__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1em;
}

.wsc-upsell-card {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1em;
	text-align: center;
}

.wsc-upsell-card__image img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.wsc-upsell-card__message {
	font-size: 0.9em;
	min-height: 2.4em;
}

.wsc-upsell-card__note {
	font-size: 0.75em;
	color: #888;
}

button.wsc-ajax-add.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* --- Order / email breakdown --- */

.wsc-order-breakdown {
	margin-top: 0.5em;
	font-size: 0.9em;
}

.wsc-order-breakdown ul {
	margin: 0.25em 0 0 1em;
}
