/* Salesteer FIR Coupon — frontend */

.sffc-widget {
	max-width: 26rem;
	padding: 1rem 0;
}

.sffc-widget__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.sffc-widget__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.65rem;
	margin-bottom: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}

.sffc-widget__submit {
	padding: 0.55rem 1rem;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 4px;
	border: none;
	background: #2271b1;
	color: #fff;
}

.sffc-widget__submit:hover:not(:disabled) {
	background: #135e96;
}

.sffc-widget__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.sffc-widget__status {
	margin-top: 0.75rem;
	min-height: 1.25rem;
}

.sffc-widget__status[data-sffc-level="error"] {
	color: #b32d2e;
}

.sffc-widget__debug {
	display: block;
	margin-top: 0.75rem;
	padding: 0.65rem 0.75rem;
	max-height: min(42vh, 24rem);
	overflow: auto;
	background: #1d2327;
	color: #ececec;
	border-radius: 4px;
	font-size: 0.75rem;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
}

.sffc-widget__debug[hidden] {
	display: none;
}

.sffc-widget__usage {
	margin-top: 0.75rem;
	padding: 0.65rem 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #1d2327;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.sffc-widget__usage[hidden] {
	display: none;
}

.sffc-widget__usage .sffc-widget__usage-link {
	font-weight: 600;
	word-break: break-all;
}

.sffc-widget__coupon {
	margin-top: 0.75rem;
	padding: 0.75rem;
	background: #f0f6fc;
	border: 1px solid #c3d9ed;
	border-radius: 4px;
	font-family: ui-monospace, monospace;
	font-size: 1rem;
	word-break: break-all;
}
