.agreement {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: left;
	/* font-family: 'Proxima Nova Regular'; */
    font-family: 'Roboto';
    margin: 10px 0;
    max-width: 532px;
    width: 100%;
}

.agreement__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	cursor: pointer;
}

.agreement input[type='checkbox'] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	flex-shrink: 0;
}

.agreement input[type='checkbox'] + span {
	flex-shrink: 0;
	display: block;
	position: relative;
	/* width: 24px;
	height: 24px;
	min-width: 24px; */
	width: 18px;
	height: 18px;
	min-width: 18px;
	border-radius: 2px;
	background-color: #e8e8e8;
	border: none;
}

.agreement input[type='checkbox'] + span::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 12px;
	height: 12px;
	/* background-image: url(../../img/icons/checkbox_checked.svg); */
    background-image: url(../../img/icons/checkbox-black.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0;
	transition:
		opacity 0.3s ease,
		transform 0.3s ease;
}

.agreement.agreement--credit input[type='checkbox'] + span::before {
    background-image: url(../../img/icons/checkbox-white.svg);
}

.agreement.agreement--footer input[type='checkbox'] + span::before {
    background-image: url(../../img/icons/checkbox-white.svg);
}

.agreement input[type='checkbox']:checked + span::before {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.agreement__text,
.agreement p {
	margin: 0;
	font-size: 12px;
	line-height: 1.2;
	color: #8E8E8E;
	font-weight: 400;
	letter-spacing: 0%;
}

.agreement a {
	color: inherit;
	text-decoration: underline;
}

.agreement--dark .agreement__text,
.agreement--dark .agreement p {
	color: #b3b3b3;
}

.agreement--dark input[type='checkbox'] + span {
	background-color: #dcdee0;
}

@media screen and (max-width: 1200px) {
	.agreement__text,
	.agreement p {
		font-size: 12px;
	}
}

@media screen and (max-width: 768px) {
	.agreement p br {
		display: none;
	}
}
