/* WordPress buttons set display, which would otherwise override the hidden attribute. */
.captionwright [hidden],
.captionwright-dialog [hidden] {
	display: none !important;
}
.captionwright-intro {
	max-width: 760px;
	font-size: 14px;
}
.captionwright-settings {
	margin: 1em 0 1.5em;
	background: #fff;
	border: 1px solid #c3c4c7;
	padding: 0 16px;
}
.captionwright-settings > summary {
	cursor: pointer;
	padding: 12px 0;
	font-weight: 600;
}
.captionwright-settings .form-table {
	margin-top: 0;
}
.captionwright-table .dashicons {
	color: #787c82;
	margin-right: 4px;
}
.captionwright-mime {
	display: block;
	color: #787c82;
	font-size: 12px;
	margin-left: 28px;
}
.captionwright-actions {
	width: 120px;
	text-align: right;
}
.captionwright-none {
	color: #787c82;
}
.captionwright-badge {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	margin: 0 8px 4px 0;
	padding: 2px 8px;
	border-radius: 12px;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
}
.captionwright-badge > span {
	font-weight: 600;
}

/* Dialog */
.captionwright-dialog {
	width: min(980px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	padding: 0;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.captionwright-dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
}
.captionwright-dialog__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	border-bottom: 1px solid #dcdcde;
}
.captionwright-dialog__head h2 {
	margin: 0;
	font-size: 18px;
}
.captionwright-close {
	font-size: 28px;
	line-height: 1;
	text-decoration: none;
	color: #50575e;
}
.captionwright-dialog__body {
	padding: 8px 20px 16px;
}
.captionwright-dialog progress {
	width: 100%;
	height: 12px;
}
.captionwright-partial {
	color: #50575e;
	font-style: italic;
	min-height: 3em;
}
.captionwright-editor {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}
.captionwright-player {
	width: 100%;
	background: #000;
	border-radius: 3px;
}
audio.captionwright-player {
	background: transparent;
}
.captionwright-live {
	min-height: 3em;
	padding: 8px 12px;
	background: #1d2327;
	color: #fff;
	border-radius: 3px;
	text-align: center;
	white-space: pre-line;
}
.captionwright-vtt {
	width: 100%;
	font-size: 12px;
}
.captionwright-savebar {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}
.captionwright-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
@media (max-width: 782px) {
	.captionwright-editor {
		grid-template-columns: 1fr;
	}
	.captionwright-actions {
		width: auto;
	}
}
