.wcves-widget {
	--wcves-transition: 120ms ease;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.wcves-widget *,
.wcves-widget *::before,
.wcves-widget *::after {
	box-sizing: border-box;
}

.wcves-widget.wcves-placeholder {
	padding: 16px;
	border: 1px dashed #d0d5dd;
	border-radius: 8px;
	color: #667085;
	font-size: 14px;
}

/* ---- Section & Dividers ---- */
.wcves-section {
	margin-bottom: 24px;
}

.wcves-section:not(:last-of-type) {
	border-bottom: 1px solid #f1f3f5;
	padding-bottom: 24px;
	margin-bottom: 24px;
}

.wcves-section-heading {
	margin-bottom: 14px;
}

.wcves-section-title {
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 4px;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

.wcves-section-desc {
	font-size: 14px;
	color: #6b7280;
	margin: 0;
	line-height: 1.4;
}

/* ---- Swatch / option boxes ---- */
.wcves-options {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.wcves-option {
	position: relative;
	background-color: #fafafa;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px 10px;
	text-align: center;
	cursor: pointer;
	transition: border-color var(--wcves-transition), background-color var(--wcves-transition), box-shadow var(--wcves-transition);
	user-select: none;
	outline: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 76px;
}

.wcves-option:hover {
	border-color: #cbd5e1;
	background-color: #f8fafc;
}

.wcves-option:focus-visible {
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.wcves-option.is-selected {
	background-color: #eff6ff;
	border: 1.5px solid #2563eb;
}

.wcves-option.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.wcves-option-title {
	font-size: 14.5px;
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
}

.wcves-option-subtitle {
	font-size: 14px;
	font-weight: 500;
	color: #111827;
	margin-top: 4px;
	line-height: 1.25;
}

.wcves-option-subtitle:empty {
	display: none;
}

.wcves-badge {
	font-size: 13px;
	font-weight: 500;
	color: #2563eb;
	margin-top: 3px;
	line-height: 1.2;
}

/* ---- Dropdown ---- */
.wcves-select {
	width: 100%;
	padding: 12px 14px;
	font-size: 15px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background-color: #fff;
	color: #111827;
	appearance: auto;
}

/* ---- Bottom Card Container ---- */
.wcves-card {
	background-color: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 16px;
	padding: 24px;
	margin-top: 24px;
}

/* ---- Quantity stepper (when inside or outside card) ---- */
.wcves-card .wcves-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}

.wcves-qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.wcves-qty-label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
}

.wcves-qty-stepper {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.wcves-qty-btn {
	background: #ffffff;
	border: none;
	width: 34px;
	height: 34px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #111827;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--wcves-transition);
}

.wcves-qty-btn:hover {
	background: #f3f4f6;
}

.wcves-qty-input {
	width: 44px;
	height: 34px;
	border: none;
	border-left: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	-moz-appearance: textfield;
}

.wcves-qty-input::-webkit-outer-spin-button,
.wcves-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---- Total row (stacked vertically as shown in screenshot) ---- */
.wcves-total-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 18px;
	padding: 0;
}

.wcves-total-label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	line-height: 1.2;
}

.wcves-total-amounts {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.wcves-total-amount {
	font-size: 32px;
	font-weight: 800;
	color: #111827;
	letter-spacing: -0.5px;
	line-height: 1.1;
}

.wcves-total-regular {
	font-size: 16px;
	color: #9ca3af;
	text-decoration: line-through;
	font-weight: 500;
}

/* ---- Button ---- */
.wcves-button {
	display: block;
	width: 100%;
	padding: 15px 24px;
	background-color: #0066ff;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	text-align: center;
	transition: background-color var(--wcves-transition), transform 100ms ease, opacity var(--wcves-transition);
	letter-spacing: -0.1px;
}

.wcves-button:hover {
	background-color: #0052cc;
}

.wcves-button:active {
	transform: scale(0.99);
}

.wcves-button[disabled],
.wcves-button.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.wcves-button.is-loading {
	opacity: 0.75;
	cursor: progress;
}

/* ---- Shipping Note ---- */
.wcves-note {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.wcves-note-icon {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	color: #111827;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wcves-note-icon svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
}

.wcves-note-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wcves-note-line:first-child {
	font-size: 13.5px;
	font-weight: 600;
	color: #111827;
	line-height: 1.35;
}

.wcves-note-line:last-child:not(:first-child) {
	font-size: 13px;
	font-weight: 400;
	color: #6b7280;
	line-height: 1.35;
}

/* ---- Responsive default ---- */
@media (max-width: 767px) {
	.wcves-options {
		grid-template-columns: repeat(2, 1fr);
	}

	.wcves-card {
		padding: 20px 16px;
	}

	.wcves-total-amount {
		font-size: 28px;
	}
}