/**
 * Presentation for the on-page signable document.
 *
 * Intentionally uses neutral units and inherits the theme's font so the block
 * matches the surrounding Divi page.
 */

.ah-esign-doc {
	margin: 0 0 1.5em;
	padding: 1.5em;
	border: 1px solid #d8d8d8;
	background: #fff;
}

.ah-esign-rev {
	margin: 0 0 1em;
	font-size: 0.75em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #767676;
}

.ah-esign-title {
	margin: 0 0 0.75em;
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ah-esign-body {
	margin: 0;
	line-height: 1.7;
}

.ah-esign-body p {
	margin: 0 0 1em;
}

.ah-esign-body p:last-child {
	margin-bottom: 0;
}

.ah-esign-subhead {
	margin: 1.5em 0 0.5em;
	font-size: 1em;
	font-weight: 700;
}

.ah-esign-body ul {
	margin: 0 0 1em 1.25em;
	padding: 0;
	list-style: disc;
}

.ah-esign-body ul ul {
	margin: 0.25em 0 0.25em 1.25em;
	list-style: circle;
}

/* Numbered clauses stand apart, as on the paper. */
.ah-esign-body ol {
	margin: 0 0 1em 1.5em;
	padding: 0;
	list-style: decimal;
}

.ah-esign-body ol > li {
	margin-bottom: 0.75em;
}

/* The stylesheet's decimal numbering would otherwise override type="a". */
.ah-esign-body ol[type="a"] {
	margin: 0.5em 0 0 1.25em;
	list-style: lower-alpha;
}

.ah-esign-body ol[type="a"] > li {
	margin-bottom: 0.25em;
}

/* A section printed on a page of its own, such as an attached policy. */
.ah-esign-title--appendix {
	margin-top: 2em;
	padding-top: 1.5em;
	border-top: 1px solid #d8d8d8;
}

/* A line left empty for writing on by hand. */
.ah-esign-blank {
	display: block;
	height: 1.5em;
	border-bottom: 1px solid #767676;
}

/* Ruled lines of a paper form: label, answer, label, answer. */
.ah-esign-lines {
	margin: 0 0 1em;
}

.ah-esign-line {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em 1.25em;
	margin: 0 0 0.4em;
}

.ah-esign-line__item {
	display: flex;
	flex: 1 1 12em;
	align-items: baseline;
	gap: 0.4em;
	min-width: 0;
}

.ah-esign-line__label {
	white-space: nowrap;
}

.ah-esign-line__value {
	flex: 1;
	min-width: 4em;
	border-bottom: 1px solid #d8d8d8;
}

.ah-esign-line__value .ah-token {
	border-bottom: 0;
}

/* The line is already ruled, so an unanswered placeholder adds nothing. */
.ah-esign-line__value .ah-token:not(.ah-token--filled) {
	color: transparent;
}

/* Documents that are a list of particulars rather than prose. */
.ah-esign-rows {
	width: auto;
	margin: 0 0 1em;
	border-collapse: collapse;
}

.ah-esign-rows:last-child {
	margin-bottom: 0;
}

.ah-esign-rows td {
	padding: 0.35em 1.25em 0.35em 0;
	border: 0;
	vertical-align: top;
}

.ah-esign-rows td:first-child {
	font-weight: 600;
	white-space: nowrap;
}

/* Unfilled tokens read as a blank on a printed form; filled tokens read as text. */
.ah-token {
	padding: 0 0.25em;
	border-bottom: 1px solid #767676;
	color: #767676;
	font-style: italic;
}

.ah-token--filled {
	border-bottom-color: transparent;
	color: inherit;
	font-style: normal;
	font-weight: 600;
}

@media print {
	.ah-esign-doc {
		border: 0;
		padding: 0;
	}
}
