.cwvc-widget,
.cwvc-widget * {
	box-sizing: border-box;
}

.cwvc-widget {
	width: 100%;
	font: inherit;
}

.cwvc-fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.cwvc-sr-only {
	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;
}

.cwvc-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cwvc-card {
	display: block;
	margin: 0;
	cursor: pointer;
}

.cwvc-card.is-disabled {
	cursor: not-allowed;
}

.cwvc-card__surface {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "image content price";
	align-items: center;
	column-gap: 10px;
	min-height: 68px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #f7f1e9;
	transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cwvc-card:not(.is-disabled):hover .cwvc-card__surface {
	transform: translateY(-1px);
}

.cwvc-card__input:focus-visible + .cwvc-card__surface {
	outline: 3px solid #1a73e8;
	outline-offset: 3px;
}

.cwvc-card__image {
	grid-area: image;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 48px;
	min-width: 0;
}

.cwvc-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.cwvc-card__content {
	grid-area: content;
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 3px;
}

.cwvc-card__title {
	display: block;
	color: #4d3328;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	word-break: break-word;
}

.cwvc-card__product-name,
.cwvc-card__variation-name {
	display: block;
}

.cwvc-card__variation-name {
	margin-top: 2px;
}

.cwvc-card__stock {
	display: block;
	color: #8a5a4a;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.cwvc-card__price-area {
	grid-area: price;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 4px;
	min-width: max-content;
}

.cwvc-card__prices {
	display: flex;
	align-items: baseline;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 4px;
	line-height: 1.2;
}

.cwvc-card__price-current {
	color: #3f2b23;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.cwvc-card__price-regular {
	color: #806e65;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration-thickness: 1px;
}

.cwvc-card__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	padding: 3px 7px;
	border-radius: 3px;
	background-color: #c48b2c;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.15;
	white-space: nowrap;
}

.cwvc-actions {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: stretch;
	gap: 8px;
	margin-top: 14px;
}

.cwvc-quantity {
	display: grid;
	grid-template-columns: 34px minmax(34px, 1fr) 34px;
	align-items: stretch;
	width: 112px;
	min-height: 48px;
	overflow: hidden;
	border: 1px solid #d8cec8;
	border-radius: 999px;
	background: #fff;
	color: #4d3328;
}

.cwvc-quantity__button,
.cwvc-quantity__input {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	text-align: center;
}

.cwvc-quantity__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	transition: background-color 160ms ease;
}

.cwvc-widget .cwvc-quantity__button {
	-webkit-tap-highlight-color: transparent;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

.cwvc-widget .cwvc-quantity__button:hover,
.cwvc-widget .cwvc-quantity__button:focus,
.cwvc-widget .cwvc-quantity__button:active {
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: inherit !important;
}

.cwvc-quantity__button:focus-visible,
.cwvc-quantity__input:focus-visible,
.cwvc-add-to-cart:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 2px;
}

.cwvc-quantity__input {
	width: 100%;
	appearance: textfield;
	-moz-appearance: textfield;
}

.cwvc-quantity__input::-webkit-outer-spin-button,
.cwvc-quantity__input::-webkit-inner-spin-button {
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
}

.cwvc-add-to-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0;
	padding: 13px 22px;
	gap: 6px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #5e3b2c;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.cwvc-add-to-cart:not(:disabled):hover {
	background: #44291f;
	transform: translateY(-1px);
}

.cwvc-add-to-cart:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.cwvc-add-to-cart.is-loading {
	cursor: wait;
}

.cwvc-add-to-cart.is-loading::after {
	content: "";
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-inline-start-color: transparent;
	border-radius: 50%;
	animation: cwvc-spin 700ms linear infinite;
}

.cwvc-add-to-cart__price,
.cwvc-add-to-cart__price .amount {
	color: inherit;
	white-space: nowrap;
}

.cwvc-status {
	min-height: 1.4em;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.cwvc-status:empty {
	min-height: 0;
	margin-top: 0;
}

.cwvc-status.is-success {
	color: #287a35;
}

.cwvc-status.is-error {
	color: #b3261e;
}

@keyframes cwvc-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
	.cwvc-card__surface {
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas: "image content price";
		column-gap: 8px;
	}

	.cwvc-card__price-area {
		min-width: 0;
	}

	.cwvc-card__prices {
		flex-direction: column;
		align-items: flex-end;
		justify-content: center;
		text-align: left;
	}

	.cwvc-card__price-current {
		order: 1;
	}

	.cwvc-card__price-regular {
		order: 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cwvc-card__surface,
	.cwvc-add-to-cart {
		transition: none;
	}

	.cwvc-card:not(.is-disabled):hover .cwvc-card__surface,
	.cwvc-add-to-cart:not(:disabled):hover {
		transform: none;
	}
}

.cwvc-widget--no-images .cwvc-card__surface {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "content price";
}

.cwvc-quantity__button:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}
