/* Embedded previews */

.wpds-preview {
	margin: 1.5em 0;
	border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 8px;
	overflow: hidden;
}

.wpds-preview__frame iframe {
	display: block;
	width: 100%;
	height: 260px;
	border: 0;
	background: transparent;
}

.wpds-preview > .wp-block-code {
	margin: 0;
	border: 0;
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
	border-radius: 0;
	padding: 0.75em 1em;
	font-size: 0.875em;
	background: color-mix(in srgb, currentColor 5%, transparent);
}

.wpds-preview > .wp-block-code code {
	background: transparent;
	padding: 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Props table */

.wpds-props-table th,
.wpds-props-table td {
	vertical-align: top;
}

.wpds-props-table th:first-child,
.wpds-props-table td:first-child,
.wpds-props-table th:nth-child(2),
.wpds-props-table td:nth-child(2) {
	width: 1%;
	white-space: nowrap;
}

.wpds-props-table td:last-child > :first-child {
	margin-top: 0;
}

.wpds-props-table td:last-child > :last-child {
	margin-bottom: 0;
}

.wpds-prop-required {
	display: inline-block;
	margin-left: 0.375em;
	padding: 0 0.5em;
	border-radius: 999px;
	font-size: 0.7em;
	font-weight: 600;
	line-height: 1.6;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: color-mix(in srgb, currentColor 10%, transparent);
	color: color-mix(in srgb, currentColor 75%, transparent);
}

.wpds-prop-type {
	margin: 0 0 0.5em !important;
}

.wpds-prop-type code {
	white-space: normal;
	word-break: break-word;
}
