/* Twist Subscribe & Save (0.1.0): Buy once / Subscribe & save, the frequency and the copy on the blend page.
   Square corners everywhere (Twist rule). Colours from Twist Gifting's blend page (--twb-*), with fallbacks. */

.twss-mode {
	display: grid;
	grid-template-columns: 1fr 1fr;
	margin: 18px 0 4px;
	border: 1px solid var(--twb-ink, #111610);
}

.twss-mode__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 54px;
	padding: 8px 12px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--twb-ink, #111610);
	font: inherit;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
}

.twss-mode__btn + .twss-mode__btn {
	border-left: 1px solid var(--twb-ink, #111610);
}

.twss-mode__btn:hover,
.twss-mode__btn:focus-visible {
	background: var(--twb-blue, #e3f1fb);
}

.twss-mode__btn.is-active {
	background: var(--twb-ink, #111610);
	color: #fff;
}

.twss-mode__title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.twss-mode__sub {
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}

.twss-mode__sub:empty {
	display: none;
}

/* Subscribe & save: the sample sizes go. The caddy question stays (0.1.1, Claire: a caddy only if they ask for one;
   it comes free with the first delivery and the subscription itself is the refill). */
.twss-is-sub [data-twb-value="n_3ntb"],
.twss-is-sub [data-twb-value="n_12ll"] {
	display: none !important;
}

.twss-need .twb-opt__label,
.twss-need [data-twb-caddy-note] {
	color: #b00020;
}

.twss-freq[hidden] {
	display: none;
}

.twb-price del {
	color: var(--twb-muted, #535d60);
	font-size: 0.8em;
	margin-right: 6px;
}

.twb-price ins {
	text-decoration: none;
}

/* The copy on the left, under the ingredients. */
.twss-copy {
	margin-top: 22px;
}

.twss-perks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--twb-ink, #111610);
}

.twss-dot {
	width: 5px;
	height: 5px;
	background: var(--twb-blue-label, #4dbbe6); /* square, as everything else (Twist rule: no rounded corners) */
}

@media (max-width: 650px) {
	.twss-mode__title {
		font-size: 14px;
	}
	.twss-mode__sub {
		font-size: 11px;
	}
}
