/*
 * Elementor and many themes lay out form.cart as a row of columns.
 * The kit puts everything in one .bsk-kit block that always fills the width.
 */
.bsk-form.cart,
form.cart.bsk-form,
.woocommerce div.product form.cart.bsk-form,
.elementor-add-to-cart form.cart.bsk-form,
.elementor-widget-woocommerce-product-add-to-cart form.cart.bsk-form {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	text-align: left;
	--bsk-accent: #0e7a5a;
	--bsk-size: 34px;
}

.bsk-form .bsk-kit {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 1.25rem;
	flex: 1 1 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.bsk-form .bsk-kit > * {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	float: none !important;
}

/* Included products: stacked images. */
.bsk-kit-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	align-items: start;
}

.bsk-kit-item {
	margin: 0;
	padding: 0;
}

.bsk-kit-item img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.bsk-form .bsk-kit-item figcaption {
	margin-top: 0.4rem;
	font-size: 15px !important; /* Same as "Choose your Color". */
	line-height: 1.4;
	opacity: 0.75;
	text-wrap: pretty;
}

.bsk-colours {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.bsk-form .bsk-legend {
	display: block;
	margin: 0 0 0.5rem !important;
	padding: 0;
	font-size: 15px !important;
	font-weight: 400;
	line-height: 1.4;
}

.bsk-legend strong {
	font-weight: 700;
}

/* ": Haint Blue" appears once a color is chosen or hovered. */
.bsk-chosen-wrap:has(.bsk-chosen:empty) {
	display: none;
}

.bsk-group-title {
	margin: 0.75rem 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.65;
}

.bsk-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
}

.bsk-swatch {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: var(--bsk-size);
	height: var(--bsk-size);
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.bsk-swatch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: inherit;
}

.bsk-chip {
	display: block;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	border-radius: 5px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	background: var(--bsk-c, #eeeae2);
	transition: transform 0.12s ease;
}

.bsk-chip.has-image {
	background-color: var(--bsk-c, #eeeae2);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.bsk-swatch:hover .bsk-chip {
	transform: scale(1.08);
}

.bsk-swatch input:checked + .bsk-chip,
.bsk-swatch.is-selected .bsk-chip {
	outline: 3px solid var(--bsk-accent);
	outline-offset: 2px;
	transform: none;
}

.bsk-swatch input:focus-visible + .bsk-chip {
	outline: 3px solid #2271b1;
	outline-offset: 2px;
}

/* Backorder: small amber dot. */
.bsk-swatch.is-backorder::after,
.bsk-key-dot {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #d08a00;
	box-shadow: 0 0 0 2px #fff;
}

.bsk-swatch.is-backorder::after {
	position: absolute;
	top: -3px;
	right: -3px;
	pointer-events: none;
}

.bsk-key-dot {
	display: inline-block;
	vertical-align: middle;
	margin: 0 4px 0 3px;
}

.bsk-key {
	margin: 0.6rem 0 0;
	font-size: 0.8125rem;
	opacity: 0.8;
}

.bsk-key[hidden] {
	display: none;
}

/* Out of stock: faded with a diagonal line. */
.bsk-swatch.is-outofstock {
	cursor: not-allowed;
	opacity: 0.4;
}

/* Let clicks reach the square so it can say "out of stock". */
.bsk-swatch input:disabled {
	pointer-events: none;
}

.bsk-chip {
	position: relative;
}

.bsk-swatch.is-outofstock .bsk-chip::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0, 0, 0, 0.6) 50%, transparent calc(50% + 1px));
}

.bsk-swatch.is-outofstock:hover .bsk-chip {
	transform: none;
}

.bsk-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bsk-notice {
	margin: 0;
	padding: 0.6rem 0.8rem;
	border-left: 3px solid #d08a00;
	background: #faf6ee;
	font-size: 0.875rem;
	text-align: left;
	text-wrap: pretty;
}

.bsk-notice[hidden] {
	display: none;
}

.bsk-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.5rem;
}

.bsk-actions .quantity {
	margin: 0 !important;
}

.bsk-actions .single_add_to_cart_button {
	margin: 0 !important;
}

/* Cart: included products follow the sample pot's quantity. */
.bsk-qty {
	display: inline-block;
	min-width: 2.5em;
	text-align: center;
}
