.cllm-terms-component {
	box-sizing: border-box;
	width: min(520px, calc(100% - 32px));
	margin: 20px auto 0;
	padding: 16px;
	border: 1px solid #b8d5de;
	border-radius: 8px;
	background: #f7fbfc;
	color: #1d2b32;
	font-size: 14px;
	line-height: 1.5;
}

.carelearning-login-wrapper .cllm-terms-component {
	width: 100%;
}

.cllm-terms-component > strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.cllm-terms-component > p {
	margin: 0 0 10px;
}

.cllm-terms-component .cllm-terms-requirement {
	color: #3b4b52;
	font-size: 13px;
}

.cllm-terms-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
}

.cllm-terms-open,
.cllm-terms-close {
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #007da3;
	border-radius: 6px;
	background: #ffffff;
	color: #006783;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.cllm-terms-open:hover,
.cllm-terms-open:focus,
.cllm-terms-close:hover,
.cllm-terms-close:focus {
	background: #eef7fa;
	color: #004e63;
}

.cllm-terms-component a {
	color: #006783;
	font-weight: 600;
}

.cllm-terms-component a:focus,
.cllm-terms-open:focus,
.cllm-terms-close:focus,
.cllm-terms-close-icon:focus,
.cllm-terms-acceptance-form a:focus,
.cllm-terms-acceptance-form input:focus {
	outline: 3px solid #e21270;
	outline-offset: 2px;
}

.cllm-terms-dialog {
	box-sizing: border-box;
	width: min(760px, calc(100vw - 32px));
	max-width: 760px;
	max-height: min(86vh, 820px);
	padding: 0;
	border: 1px solid #b8d5de;
	border-radius: 8px;
	background: #ffffff;
	color: #1d2b32;
	box-shadow: 0 18px 60px rgba(15, 40, 50, 0.25);
}

.cllm-terms-dialog::backdrop {
	background: rgba(18, 36, 43, 0.66);
}

.cllm-terms-dialog-inner {
	display: flex;
	max-height: min(86vh, 820px);
	flex-direction: column;
}

.cllm-terms-dialog header,
.cllm-terms-dialog footer {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	border-bottom: 1px solid #d9e2e6;
}

.cllm-terms-dialog footer {
	border-top: 1px solid #d9e2e6;
	border-bottom: 0;
}

.cllm-terms-dialog h2,
.cllm-terms-acceptance-form h2 {
	margin: 0;
	color: #172b36;
	font-size: 22px;
	line-height: 1.25;
}

.cllm-terms-dialog header p {
	margin: 4px 0 0;
	color: #53656d;
	font-size: 13px;
}

.cllm-terms-close-icon {
	display: inline-flex;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #36515d;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.cllm-terms-close-icon:hover {
	background: #eef4f6;
	color: #172b36;
}

.cllm-terms-summary {
	overflow: auto;
	padding: 20px 24px;
	line-height: 1.55;
}

.cllm-terms-summary p:first-child {
	margin-top: 0;
}

.cllm-terms-summary ul {
	margin: 0;
	padding-left: 24px;
}

.cllm-terms-summary li {
	margin-bottom: 12px;
}

.cllm-terms-acceptance-form .cllm-terms-version {
	margin: 4px 0 14px;
	color: #53656d;
	font-size: 13px;
}

.cllm-terms-acceptance-form .cllm-terms-summary-challenge {
	max-height: 44vh;
	margin: 0 0 14px;
	padding: 16px;
	border: 1px solid #d9e2e6;
	border-radius: 6px;
	background: #f8fafb;
}

.cllm-terms-acceptance-form .cllm-terms-accept-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0;
	font-weight: 600;
	line-height: 1.45;
}

.cllm-terms-acceptance-form .cllm-terms-accept-label input {
	flex: 0 0 auto;
	margin-top: 3px;
}

@media (max-width: 480px) {
	.cllm-terms-component {
		width: calc(100% - 24px);
		padding: 14px;
	}

	.carelearning-login-wrapper .cllm-terms-component {
		width: 100%;
	}

	.cllm-terms-dialog {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
	}

	.cllm-terms-dialog-inner {
		max-height: calc(100vh - 20px);
	}

	.cllm-terms-dialog header,
	.cllm-terms-dialog footer {
		align-items: flex-start;
		padding: 14px 16px;
	}

	.cllm-terms-dialog footer {
		flex-direction: column;
	}

	.cllm-terms-summary {
		padding: 16px;
	}

	.cllm-terms-dialog h2,
	.cllm-terms-acceptance-form h2 {
		font-size: 20px;
	}
}
