/**
 * Stoffencalculator — styling in de huisstijl van Borduurzaakje.
 * Alles is gescoped onder .bzsc / .bzsc-hint zodat er niets kan lekken.
 */

.bzsc {
	--bzsc-paars: #72618a;
	--bzsc-accent: #9983b1;
	--bzsc-zacht: #efdfe1;
	--bzsc-lijn: #e3dade;
	background: #fff;
	border: 1px solid var(--bzsc-lijn);
	box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, .10);
	padding: 28px;
	margin: 32px 0;
	font-family: var(--f-body, inherit);
	font-size: 16px;
	line-height: 26px;
	color: #0b0b0b;
}

@media (max-width: 600px) {
	.bzsc {
		padding: 20px 16px;
	}
}

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

.bzsc__intro {
	margin: 0 0 20px;
	max-width: 62ch;
}

.bzsc__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 600px) {
	.bzsc__grid {
		grid-template-columns: 1fr;
	}
}

.bzsc__field {
	display: block;
	margin: 0;
}

.bzsc__field[hidden] {
	display: none;
}

.bzsc__label {
	display: block;
	font-family: var(--f-ui, inherit);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--bzsc-paars);
	margin-bottom: 6px;
}

.bzsc__input {
	width: 100%;
	height: 48px;
	padding: 0 12px;
	border: 1px solid var(--bzsc-lijn);
	border-radius: 0;
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	color: inherit;
	appearance: none;
	-webkit-appearance: none;
}

select.bzsc__input {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2372618a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
}

.bzsc__input:focus {
	outline: 2px solid var(--bzsc-accent);
	outline-offset: 1px;
}

.bzsc__hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 20px;
	color: #6b6b6b;
}

.bzsc__acties {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.bzsc__btn {
	display: inline-block;
	background: var(--bzsc-accent);
	color: #fff;
	font-family: var(--f-ui, inherit);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 1px;
	padding: 14px 26px 12px;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: opacity .18s ease;
}

.bzsc__btn:hover {
	opacity: .88;
	color: #fff;
}

.bzsc__reset {
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	color: #6b6b6b;
	text-decoration: underline;
	cursor: pointer;
}

/* ---- uitkomst ---- */

.bzsc__uit {
	margin-top: 24px;
	padding: 22px;
	background: var(--bzsc-zacht);
	border: 1px solid #e6d3d6;
}

.bzsc__uit[hidden] {
	display: none;
}

.bzsc__uitlabel {
	display: block;
	font-family: var(--f-ui, inherit);
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--bzsc-paars);
	margin-bottom: 4px;
}

.bzsc__maat {
	display: block;
	font-family: var(--f-head, inherit);
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #0b0b0b;
	margin: 0 0 10px;
}

@media (max-width: 600px) {
	.bzsc__maat {
		font-size: 26px;
	}
}

.bzsc__detail {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: #33323a;
}

.bzsc__detail + .bzsc__detail {
	margin-top: 4px;
}

.bzsc__advies {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(114, 97, 138, .25);
	font-size: 15px;
	line-height: 24px;
}

.bzsc__advies strong {
	font-weight: 600;
}

.bzsc__uitknop {
	margin-top: 16px;
}

.bzsc__fout {
	margin-top: 18px;
	font-size: 15px;
	color: #a4343a;
}

.bzsc__fout[hidden] {
	display: none;
}

/* ---- tip-kaart op de zoekresultatenpagina ---- */

.bzsc-hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: #efdfe1;
	border: 1px solid #e6d3d6;
	padding: 18px 22px;
	margin: 0 0 22px;
}

.bzsc-hint__tekst {
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	max-width: 70ch;
}

.bzsc-hint__tekst strong {
	font-weight: 600;
}

.bzsc-hint__btn {
	display: inline-block;
	background: #9983b1;
	color: #fff;
	font-size: 14px;
	letter-spacing: 1px;
	padding: 12px 22px 10px;
	white-space: nowrap;
}

.bzsc-hint__btn:hover {
	opacity: .88;
	color: #fff;
}
