/* Complete your routine: box below the add to cart button (mobile, tablet) or full width below the product (desktop) */
.cs-routine {
	--cs-routine-accent: #3a3a3a;
	--cs-routine-line: rgba(0, 0, 0, 0.14);
	margin: 1.5em 0 1.25em;
	padding-top: 1.25em;
	border-top: 1px solid var(--cs-routine-line);
}
.cs-routine__title {
	margin: 0 0 0.8em;
	font-size: 0.95em;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.cs-routine__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
}
.cs-routine .cs-routine__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 46px 12px 12px;
	border: 1px solid var(--cs-routine-line);
	border-radius: 10px;
	background: #fff;
	font-size: 1em;
	font-weight: normal;
	line-height: 1.3;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-routine .cs-routine__card:hover {
	border-color: rgba(0, 0, 0, 0.35);
}
.cs-routine .cs-routine__card.is-selected {
	border-color: var(--cs-routine-accent);
	box-shadow: inset 0 0 0 1px var(--cs-routine-accent);
}
/* Real checkbox stays focusable for keyboard and screen readers */
.cs-routine .cs-routine__check {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.cs-routine__img {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
}
.cs-routine__img img {
	display: block;
	width: 64px;
	height: 64px;
	margin: 0;
	object-fit: contain;
}
.cs-routine__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.cs-routine__name {
	font-size: 0.85em;
	font-weight: 600;
}
.cs-routine__desc {
	display: -webkit-box;
	margin: 2px 0 5px;
	overflow: hidden;
	font-size: 0.75em;
	opacity: 0.8;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.cs-routine__price {
	font-size: 0.9em;
	font-weight: 600;
}
.cs-routine__price del {
	font-weight: normal;
	opacity: 0.6;
}
.cs-routine__price ins {
	text-decoration: none;
}
.cs-routine__unit {
	font-size: 0.75em;
	opacity: 0.7;
}
.cs-routine__box {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 22px;
	height: 22px;
	border: 1.5px solid rgba(0, 0, 0, 0.45);
	border-radius: 5px;
	background: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cs-routine__card.is-selected .cs-routine__box {
	border-color: var(--cs-routine-accent);
	background: var(--cs-routine-accent);
}
.cs-routine__card.is-selected .cs-routine__box::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 7px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.cs-routine__check:focus-visible ~ .cs-routine__box {
	outline: 2px solid var(--cs-routine-accent);
	outline-offset: 2px;
}
.cs-routine__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 12px;
}
.cs-routine .cs-routine__add {
	margin: 0;
}
.cs-routine .cs-routine__add[disabled] {
	cursor: default;
	opacity: 0.5;
}
/* At least one product ticked: same turquoise as the add to cart button (Flatsome secondary colour) */
.cs-routine .cs-routine__add:not([disabled]),
.cs-routine .cs-routine__add.loading {
	border-color: var(--fs-color-secondary, #00b3cd);
	background-color: var(--fs-color-secondary, #00b3cd);
	color: #fff;
	opacity: 1;
}
.cs-routine .cs-routine__add:not([disabled]):hover {
	box-shadow: inset 0 0 0 100px rgba(0, 0, 0, 0.2);
}
.cs-routine__legal {
	margin: 0.6em 0 0;
	font-size: 0.75em;
	text-align: right;
	opacity: 0.75;
}
.cs-routine__msg:not(:empty) {
	margin-top: 0.6em;
	font-size: 0.85em;
}
.cs-routine__msg a {
	text-decoration: underline;
}
.cs-routine__msg .is-error,
.cs-routine__msg.is-error {
	color: #b20000;
}
@media (max-width: 549px) {
	.cs-routine .cs-routine__add {
		width: 100%;
	}
	.cs-routine__legal {
		text-align: left;
	}
}

/* Desktop: full width below the product, before the tabs. Flatsome puts gallery and summary
   side by side from 850px, below that the box stays in the summary column. */
.cs-routine--wide {
	display: none;
}
@media (min-width: 850px) {
	.cs-routine--summary {
		display: none;
	}
	.cs-routine--wide {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 20px;
		align-items: center;
		margin: 0 0 2em;
	}
	.cs-routine--wide .cs-routine__title,
	.cs-routine--wide .cs-routine__list,
	.cs-routine--wide .cs-routine__msg {
		grid-column: 1 / -1;
	}
	.cs-routine--wide .cs-routine__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	/* Legal note left, button right in one row */
	.cs-routine--wide .cs-routine__legal {
		grid-column: 1;
		grid-row: 3;
		margin-top: 12px;
		text-align: left;
	}
	.cs-routine--wide .cs-routine__footer {
		grid-column: 2;
		grid-row: 3;
	}
	.cs-routine--wide .cs-routine__msg {
		text-align: right;
	}
}
@media (min-width: 1200px) {
	.cs-routine--wide .cs-routine__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}
