/**
 * My Account → Licences.
 *
 * @package TechnicalSpeaks\Licensing
 */

.tslic-license {
	margin: 0 0 2em;
	padding: 1.25em 1.5em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
}

.tslic-license__header {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: center;
	justify-content: space-between;
}

.tslic-license__header h3 {
	margin: 0;
}

.tslic-badge {
	display: inline-block;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	font-size: 0.85em;
	font-weight: 600;
	background: #e7f5ec;
	color: #116a35;
}

.tslic-badge--expired {
	background: #fff4e0;
	color: #8a4b00;
}

.tslic-badge--revoked {
	background: #fde8e8;
	color: #a11b1b;
}

.tslic-license__meta {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4em 1.5em;
	margin: 1em 0;
}

.tslic-license__meta dt {
	font-weight: 600;
}

.tslic-license__meta dd {
	margin: 0;
	word-break: break-all;
}

.tslic-license__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 1em 0 0;
}

.tslic-deactivate-form {
	margin: 0;
}

@media (max-width: 600px) {

	.tslic-license__meta {
		grid-template-columns: 1fr;
	}
}

.tslic-license .tslic-button-link {
	padding: 0.35em 0.9em;
	border: 1px solid currentcolor;
	background: transparent;
	color: inherit;
	font-size: 0.875em;
}

.tslic-license .tslic-button-secondary {
	border: 1px solid currentcolor;
	background: transparent;
	color: inherit;
}
