/*
 * Laskutustiedot (patterns/laskutustiedot.php): dark section, intro left,
 * key-value table and the outlined PDF button right.
 */

.kt-laskutustiedot .kt-laskutustiedot__columns {
	margin-block: 0;
}

.kt-laskutustiedot__intro > * {
	margin-block: 0;
}

.kt-laskutustiedot .kt-laskutustiedot__heading {
	margin-block-start: var(--wp--preset--spacing--30);
}

.kt-laskutustiedot .kt-laskutustiedot__lead {
	max-width: 32rem;
	margin-block-start: var(--wp--preset--spacing--60);
	line-height: 1.45;
}

.kt-laskutustiedot .kt-laskutustiedot__table {
	margin: 0;
	overflow-x: auto;
}

.kt-laskutustiedot__table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--md);
	font-weight: 600;
	line-height: 1.3;
}

.kt-laskutustiedot__table th,
.kt-laskutustiedot__table td {
	padding: 10px var(--wp--preset--spacing--10);
	border: 0;
	border-block-end: 1px solid var(--wp--preset--color--grey);
	font-weight: inherit;
	text-align: start;
	vertical-align: top;
}

.kt-laskutustiedot__table th {
	width: 50%;
}

.kt-laskutustiedot__table tr:last-child > * {
	border-block-end: 0;
}

.kt-laskutustiedot .kt-laskutustiedot__actions {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Outlined button on dark: transparent fill, 1px white border. */
.kt-laskutustiedot .is-style-outline > .wp-block-button__link {
	padding: 12px var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--white);
	background-color: transparent;
	color: var(--wp--preset--color--white);
}

.kt-laskutustiedot .is-style-outline > .wp-block-button__link:hover,
.kt-laskutustiedot .is-style-outline > .wp-block-button__link:focus-visible {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--near-black);
}

@media (max-width: 599px) {

	.kt-laskutustiedot__table th,
	.kt-laskutustiedot__table td {
		display: block;
		width: auto;
		padding-inline: 0;
	}

	.kt-laskutustiedot__table th {
		padding-block-end: 0;
		border-block-end: 0;
		font-weight: 400;
	}

	.kt-laskutustiedot__table tr:last-child > th {
		border-block-end: 0;
	}

	.kt-laskutustiedot .kt-laskutustiedot__actions {
		justify-content: flex-start;
	}
}
