/* COMPANY LICENSE OVERLAY */

.cl-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 4vw;
	background-color: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.cl-overlay.open {
	display: flex;
}

.cl-panel {
	background-color: #fff;
	color: #000;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 2rem 2rem 2.5rem;
	font: 11pt/16pt strokeWeight;
	font-variation-settings: "wght" 100, "slnt" 0;
}

@media (prefers-color-scheme: dark) {
	.cl-panel {
		background-color: #111;
		color: #fff;
	}
}

.cl-close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: none;
	border: none;
	cursor: pointer;
	font: inherit;
	font-size: 1.4rem;
	line-height: 1;
	color: inherit;
	padding: 0;
}

.cl-close:hover {
	color: #FA7A7B;
}

.cl-title {
	font-size: 1.6rem;
	line-height: 1.2;
	margin: 0 0 0.5rem;
	font-variation-settings: "wght" 200, "slnt" 0;
}

.cl-subtitle {
	margin: 0 0 1.75rem;
	opacity: 0.7;
}

.cl-section-label {
	font-variation-settings: "wght" 200, "slnt" 0;
	margin: 1.5rem 0 0.6rem;
}

.cl-section-label:first-of-type {
	margin-top: 0;
}

.cl-fonts {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	max-height: 11rem;
	overflow-y: auto;
	border: 1px solid rgba(0, 0, 0, 0.15);
	padding: 0.6rem 0.8rem;
}

@media (prefers-color-scheme: dark) {
	.cl-fonts {
		border-color: rgba(255, 255, 255, 0.2);
	}
}

.cl-font-row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	cursor: pointer;
}

.cl-font-row input {
	margin: 0;
	accent-color: #FA7A7B;
}

.cl-font-row .cl-font-price {
	margin-left: auto;
	opacity: 0.6;
}

.cl-tiers {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.cl-tier-row {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	cursor: pointer;
}

.cl-tier-row input {
	margin: 0;
	accent-color: #FA7A7B;
}

.cl-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.8rem;
}

.cl-fields .cl-field-full {
	grid-column: 1 / -1;
}

@media (max-width: 520px) {
	.cl-fields {
		grid-template-columns: 1fr;
	}
}

.cl-field label {
	display: block;
	font-size: 0.85em;
	opacity: 0.7;
	margin-bottom: 0.2rem;
}

.cl-field input,
.cl-field textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: inherit;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.25);
	padding: 0.5rem 0.6rem;
}

@media (prefers-color-scheme: dark) {
	.cl-field input,
	.cl-field textarea {
		border-color: rgba(255, 255, 255, 0.3);
	}
}

.cl-field input:focus,
.cl-field textarea:focus {
	outline: none;
	border-color: #FA7A7B;
}

.cl-summary {
	margin: 1.5rem 0;
	padding: 0.8rem 1rem;
	background-color: rgba(250, 122, 123, 0.1);
}

.cl-summary-total {
	display: flex;
	justify-content: space-between;
	font-variation-settings: "wght" 200, "slnt" 0;
	font-size: 1.1em;
}

.cl-summary-line {
	display: flex;
	justify-content: space-between;
	opacity: 0.75;
	font-size: 0.9em;
}

.cl-submit {
	display: block;
	width: 100%;
	margin-top: 1.5rem;
	padding: 0.8rem;
	background-color: #FA7A7B;
	color: #000;
	border: none;
	cursor: pointer;
	font: inherit;
	font-variation-settings: "wght" 200, "slnt" 0;
	text-align: center;
}

.cl-submit:hover {
	filter: brightness(1.05);
}

.cl-note {
	margin: 0.6rem 0 0;
	font-size: 0.8em;
	opacity: 0.6;
}

/* Trigger button, sits next to the buy links */

a.cl-trigger {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
}

a.cl-trigger:hover {
	color: #FA7A7B;
}
