/* Certificate (prototype v3.2 vCertificate): the dashboard view and the public page. Buttons and title use the theme's
   dashboard classes (wds-courses-page-button, wds-courses-page-title). */
.wds-certificate-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.wds-certificate-address {
	margin: 0 0 12px;
	font-size: 13px;
	color: #4a5d64;
	overflow-wrap: anywhere;
}

.wds-certificate-address code {
	background: #eef2f2;
	border-radius: 6px;
	padding: 2px 6px;
}

.wds-certificate-image {
	display: flex;
	justify-content: center;
	padding: 10px 0 30px;
}

.wds-certificate-image img {
	max-width: 100%;
	height: auto;
	box-shadow: 0 18px 48px rgba(5, 45, 61, .18);
}

/* PDA's portrait template: 560px as in the prototype; Tutor's landscape template keeps the full width. */
.wds-certificate-image img[data-orientation="portrait"] {
	width: 560px;
}

/* While Tutor draws the certificate on its first view, the image is WordPress's 16px loading spinner (the page reloads
   once the certificate is ready): it keeps its own size, without the shadow. */
.wds-certificate-image img[data-is_generated="no"] {
	width: 32px;
	margin: 120px 0;
	box-shadow: none;
}

.wds-certificate-public {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 16px;
}

@media (max-width: 640px) {
	.wds-certificate-view .wds-courses-page-title,
	.wds-certificate-public .wds-courses-page-title {
		font-size: 22px;
	}

	.wds-certificate-actions .wds-courses-page-button {
		min-height: 44px;
	}

	.wds-certificate-image {
		padding: 0 0 16px;
	}
}
