.colorit-loyalty {
	--loyalty-green: #075f0a;
	--loyalty-line: #dfe8dd;
	--loyalty-muted: #667263;
}

.colorit-loyalty__heading {
	margin-bottom: 18px;
}

.colorit-loyalty__heading h2,
.colorit-loyalty__form h3,
.colorit-loyalty__history h3 {
	margin: 0;
	color: #044d02;
	font: 700 16px/1.3 Roboto, Arial, sans-serif;
}

.colorit-loyalty__heading p,
.colorit-loyalty__form > p,
.colorit-loyalty__history > p {
	margin: 6px 0 0;
	color: var(--loyalty-muted);
	font: 400 14px/1.5 Roboto, Arial, sans-serif;
}

.colorit-loyalty__grid {
	display: grid;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.colorit-loyalty__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 190px;
	padding: 22px;
	border-radius: 6px;
	background: #4a90d9;
	color: #fff;
	box-sizing: border-box;
}

.colorit-loyalty__card.is-empty {
	background: #eef3ed;
	color: #044d02;
}

.colorit-loyalty__card > span {
	font: 700 12px/1.2 Roboto, Arial, sans-serif;
	letter-spacing: .06em;
	text-transform: uppercase;
	opacity: .9;
}

.colorit-loyalty__card > strong {
	color: inherit;
	font: 700 30px/1.15 Roboto, Arial, sans-serif;
}

.colorit-loyalty__card > p {
	margin: 0;
	color: inherit;
	font: 400 13px/1.5 Roboto, Arial, sans-serif;
	opacity: .9;
}

.colorit-loyalty__card-meta {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid rgba(255,255,255,.35);
	font: 400 13px/1.55 Roboto, Arial, sans-serif;
}

.colorit-loyalty__history {
	min-height: 190px;
	padding: 16px;
	border: 1px solid var(--loyalty-line);
	border-radius: 5px;
	box-sizing: border-box;
}

.colorit-loyalty__history ul {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.colorit-loyalty__history li {
	display: grid;
	grid-template-columns: minmax(115px, auto) minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--loyalty-line);
	color: var(--loyalty-muted);
	font: 400 13px/1.4 Roboto, Arial, sans-serif;
}

.colorit-loyalty__history li:last-child {
	border-bottom: 0;
}

.colorit-loyalty__history strong {
	color: var(--loyalty-green);
	white-space: nowrap;
}

.colorit-loyalty__history strong.is-debit {
	color: #d92d20;
}

.colorit-loyalty__history time {
	color: #8b9589;
	font-size: 12px;
	white-space: nowrap;
}

.colorit-loyalty__form {
	display: grid;
	gap: 14px;
}

.colorit-loyalty__form label {
	display: grid;
	gap: 6px;
	color: var(--loyalty-muted);
	font: 400 13px/1.35 Roboto, Arial, sans-serif;
}

.colorit-loyalty__form input {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #cad7c8;
	border-radius: 4px;
	background: #fff;
	color: #172217;
	font: 400 16px/1.3 Roboto, Arial, sans-serif;
	box-sizing: border-box;
}

.colorit-loyalty__form input:focus-visible {
	outline: 2px solid #48a148;
	outline-offset: 2px;
	border-color: #48a148;
}

.colorit-loyalty__form button {
	justify-self: start;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: 4px;
	background: var(--loyalty-green);
	color: #fff;
	font: 700 14px/1.2 Roboto, Arial, sans-serif;
	cursor: pointer;
}

.colorit-loyalty__form button:hover {
	background: #044d02;
}

.colorit-loyalty__form button:focus-visible,
.colorit-loyalty__unlink button:focus-visible {
	outline: 2px solid #48a148;
	outline-offset: 3px;
}

.colorit-loyalty__message {
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 4px;
	background: #f3f6f2;
	color: #465144;
	font: 400 14px/1.45 Roboto, Arial, sans-serif;
}

.colorit-loyalty__message.is-error {
	background: #fdecea;
	color: #9f1d1d;
}

.colorit-loyalty__message.is-success {
	background: #e8f6ec;
	color: #1f6b32;
}

.colorit-loyalty__unlink {
	margin: 14px 0 0;
	text-align: right;
}

.colorit-loyalty__unlink button {
	min-height: 44px;
	padding: 8px;
	border: 0;
	background: transparent;
	color: var(--loyalty-muted);
	font: 400 13px/1.3 Roboto, Arial, sans-serif;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 720px) {
	.colorit-loyalty__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.colorit-loyalty__card {
		min-height: 0;
	}

	.colorit-loyalty__history li {
		grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
	}

	.colorit-loyalty__history time {
		grid-column: 2;
	}

	.colorit-loyalty__form button {
		width: 100%;
	}
}
