/**
 * UTM Builder front-end styles.
 * Naming follows the site convention: .cbub--block--element, each -- a hierarchy level.
 * Colors and inputs match the Consent Checker so the free tools look alike.
 */

.cbub--builder {
	margin: 2em 0;
}

.cbub--builder--grid {
	display: grid;
	gap: 1.25em;
	margin-top: 1.25em;
}

.cbub--builder--label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5em;
}

.cbub--builder--required {
	color: #c0392b;
}

.cbub--builder--input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 0.75em 1em;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 1em;
	background: #fff;
}

.cbub--builder--input:focus {
	outline: 2px solid #185a9d;
	outline-offset: 1px;
	border-color: #185a9d;
}

/* Smaller and lighter than labels and body text. #737880 still passes contrast on white. */
.cbub--builder--hint {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: #737880;
}

.cbub--builder--result {
	margin-top: 1.75em;
	padding: 1.25em;
	border: 1px solid #e2e6ea;
	border-radius: 3px;
	background: #f4f6f8;
}

.cbub--builder--row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.cbub--builder--row .cbub--builder--input {
	flex: 1 1 20em;
	width: auto;
}

.cbub--builder--output {
	text-overflow: ellipsis;
}

/* Stretches to the link box's height so the two line up. */
.cbub--builder--button {
	flex: 0 0 auto;
	align-self: stretch;
	padding: 0 24px;
	line-height: 1;
	background: #185a9d;
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
}

.cbub--builder--button:hover {
	background: #12467a;
}

.cbub--builder--button:disabled {
	opacity: 0.6;
	cursor: default;
}

.cbub--builder--note {
	margin: 0.75em 0 0;
	font-size: 0.875em;
	color: #8a5a12;
}

.cbub--builder--clear {
	margin-top: 1em;
	padding: 0;
	background: none;
	border: 0;
	color: #185a9d;
	font-size: 0.875em;
	text-decoration: underline;
	cursor: pointer;
}
