/**
 * Inbox preview — mirrors single post entry content width (720px column).
 */

/* Admin chrome — theme CSS is scoped to #forwp-drive-preview-body on this screen */
.forwp-drive-admin-page .forwp-drive-admin-chrome,
.forwp-drive-admin-page .forwp-drive-admin-chrome :where(p, li, strong, em, code, span, dt, dd, button, .button) {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	letter-spacing: normal;
	text-transform: none;
}

.forwp-drive-admin-page > h1.forwp-drive-admin-chrome {
	font-size: 23px;
	font-weight: 400;
	line-height: 1.3;
	margin: 0 0 8px;
}

.forwp-drive-admin-page > .description.forwp-drive-admin-chrome {
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 0;
}

.forwp-drive-admin-page .forwp-drive-empty-panel {
	font-size: 13px;
	line-height: 1.5;
	color: #1d2327;
}

.forwp-drive-admin-page .forwp-drive-empty-panel :where(p, li) {
	font-size: 13px;
	line-height: 1.5;
	margin: 0 0 8px;
	font-weight: 400;
}

.forwp-drive-admin-page .forwp-drive-empty-panel__lead {
	margin-bottom: 10px;
}

.forwp-drive-admin-page .forwp-drive-empty-panel__label {
	color: #646970;
	font-size: 11px;
	font-weight: 600;
	margin: 12px 0 6px;
	text-transform: uppercase;
}

.forwp-drive-admin-page .forwp-drive-empty-panel__list {
	margin: 0 0 0 1.25em;
	padding: 0;
}

.forwp-drive-admin-page .forwp-drive-empty-panel strong {
	font-weight: 600;
}

.forwp-drive-admin-page .forwp-drive-inbox-pane__title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.forwp-drive-admin-page .forwp-drive-card h3 {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: none;
}

.forwp-drive-admin-page .forwp-drive-card__meta {
	font-size: 13px;
}

.forwp-drive-admin-page .forwp-drive-preview > p:last-child {
	margin-top: 12px;
}

.forwp-drive-admin-page .forwp-drive-preview__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e8e8e8;
}

#forwp-drive-preview .forwp-drive-import-top {
	margin: 0 0 16px;
}

#forwp-drive-preview .forwp-drive-import-top:not(:has(#forwp-drive-import-language-wrap:not([hidden]))):not(:has(#forwp-drive-import-source-wrap:not([hidden]))):not(:has(#forwp-drive-import-featured-wrap:not([hidden]))) {
	display: none;
}

#forwp-drive-preview .forwp-drive-import-media-row:not(:has(#forwp-drive-import-language-wrap:not([hidden]))):not(:has(#forwp-drive-import-source-wrap:not([hidden]))) {
	display: none;
}

#forwp-drive-preview .forwp-drive-import-featured {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

#forwp-drive-preview .forwp-drive-import-source-file {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	text-align: left;
	text-align-last: left;
	direction: ltr;
}

#forwp-drive-preview .forwp-drive-import-media-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 14px 16px;
}

#forwp-drive-preview .forwp-drive-import-media-row:has(#forwp-drive-import-language-wrap:not([hidden])):has(#forwp-drive-import-source-wrap:not([hidden])) {
	grid-template-columns: minmax(140px, 30%) minmax(0, 1fr);
}

#forwp-drive-preview .forwp-drive-import-options {
	background: #fafafa;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	margin: 16px 0 0;
	padding: 16px 18px;
}

#forwp-drive-preview .forwp-drive-import-options__label {
	color: #646970;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

#forwp-drive-preview .forwp-drive-import-post-type-wrap {
	margin: 0 0 14px;
}

#forwp-drive-preview .forwp-drive-import-post-type-wrap__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin: 0 0 6px;
}

#forwp-drive-preview .forwp-drive-inbox-import-post-type {
	max-width: 100%;
	min-width: 220px;
	width: min(100%, 320px);
}

#forwp-drive-preview .forwp-drive-import-post-type-wrap__hint {
	margin: 6px 0 0;
}

#forwp-drive-preview .forwp-drive-import-options__choices {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#forwp-drive-preview .forwp-drive-import-options__choice {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#forwp-drive-preview .forwp-drive-import-options__choice:hover {
	border-color: #8c8f94;
}

#forwp-drive-preview .forwp-drive-import-options__choice:has(input:checked) {
	background: #f0f6fc;
	border-color: var(--wp-admin-theme-color, #2271b1);
	box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1);
}

#forwp-drive-preview .forwp-drive-import-options__choice input[type='radio'] {
	flex-shrink: 0;
	margin: 2px 0 0;
}

#forwp-drive-preview .forwp-drive-import-options__choice-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

#forwp-drive-preview .forwp-drive-import-options__choice-title {
	color: #1d2327;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

#forwp-drive-preview .forwp-drive-import-options__choice-hint {
	color: #646970;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.45;
}

#forwp-drive-preview .forwp-drive-import-language-wrap {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

#forwp-drive-preview .forwp-drive-import-language-wrap__label {
	color: #1d2327;
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 6px;
}

#forwp-drive-preview .forwp-drive-import-language-wrap select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

#forwp-drive-preview .forwp-drive-import-language-wrap__hint {
	margin: 8px 0 0;
	max-width: none;
}

#forwp-drive-preview .forwp-drive-field-required {
	color: #d63638;
	font-weight: 700;
	margin-left: 2px;
}

#forwp-drive-preview .forwp-drive-field-error {
	display: none;
	margin: 8px 0 0;
	color: #b32d2e;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

#forwp-drive-preview .is-invalid .forwp-drive-field-error {
	display: block;
}

#forwp-drive-preview .is-invalid .forwp-drive-import-language-wrap__label,
#forwp-drive-preview .is-invalid .forwp-drive-import-target-wrap__label {
	color: #b32d2e;
}

#forwp-drive-preview .is-invalid select {
	border-color: #d63638 !important;
	box-shadow: 0 0 0 1px #d63638;
	background-color: #fcf0f1;
}

#forwp-drive-preview .forwp-drive-import-language-wrap.is-invalid,
#forwp-drive-preview .forwp-drive-import-target-wrap.is-invalid {
	background: #fcf0f1;
	box-shadow: inset 3px 0 0 #d63638;
	padding: 12px 12px 12px 14px;
	margin-left: -2px;
}

#forwp-drive-preview .is-invalid.is-shake {
	animation: forwp-drive-field-shake 0.4s ease;
}

@keyframes forwp-drive-field-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	20%,
	60% {
		transform: translateX(-4px);
	}
	40%,
	80% {
		transform: translateX(4px);
	}
}

#forwp-drive-preview .forwp-drive-import-featured-wrap {
	min-width: 0;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

#forwp-drive-preview #forwp-drive-import-featured-wrap:not([hidden]) {
	margin: 0 0 14px;
}

#forwp-drive-preview .forwp-drive-import-featured-wrap__label {
	color: #1d2327;
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
}

#forwp-drive-preview .forwp-drive-import-featured-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 180px;
	overflow: auto;
}

#forwp-drive-preview .forwp-drive-import-featured__choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

#forwp-drive-preview .forwp-drive-import-featured__choice:hover {
	border-color: #8c8f94;
}

#forwp-drive-preview .forwp-drive-import-featured__choice:has(input:checked) {
	background: #f0f6fc;
	border-color: var(--wp-admin-theme-color, #2271b1);
	box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1);
}

#forwp-drive-preview .forwp-drive-import-featured__choice input[type='radio'] {
	flex-shrink: 0;
	margin: 2px 0 0;
}

#forwp-drive-preview .forwp-drive-import-featured__choice-text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	min-width: 0;
}

#forwp-drive-preview .forwp-drive-import-featured__name {
	color: #1d2327;
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	word-break: break-word;
}

#forwp-drive-preview .forwp-drive-import-featured__badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 2px;
	background: #fcf9e8;
	border: 1px solid #dba617;
	color: #614200;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

#forwp-drive-preview .forwp-drive-import-featured-wrap__hint {
	margin: 8px 0 0;
	max-width: 72ch;
}

#forwp-drive-preview .forwp-drive-import-target-wrap {
	border-top: 1px solid #e8e8e8;
	margin-top: 14px;
	padding-top: 14px;
}

#forwp-drive-preview .forwp-drive-import-target-wrap__label {
	color: #1d2327;
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 6px;
}

#forwp-drive-preview .forwp-drive-import-target-wrap select {
	max-width: 100%;
	min-width: min(100%, 420px);
}

#forwp-drive-preview .forwp-drive-import-target-wrap__hint {
	margin: 8px 0 0;
	max-width: 72ch;
}

/* Admin header — keep normal case/size; theme global styles load on this screen too */
#forwp-drive-preview .forwp-drive-preview__header {
	margin-bottom: 12px;
}

#forwp-drive-preview .forwp-drive-preview__label {
	color: #646970;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.4;
	margin: 0 0 8px;
	text-transform: none;
}

#forwp-drive-preview .forwp-drive-preview__title {
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.45;
	margin: 0 0 6px;
	text-transform: none;
}

#forwp-drive-preview .forwp-drive-preview__meta {
	color: #50575e;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.5;
	margin: 0;
	text-transform: none;
}

.forwp-drive-preview-body {
	max-height: min(70vh, 720px);
	overflow: auto;
	border-top: 1px solid #dcdcde;
	margin-top: 12px;
	padding-top: 16px;
	background: var(--wp--preset--color--base, #fff);
}

.forwp-drive-preview-single.single-post-main {
	margin: 0;
	padding: 0;
	max-width: none;
}

.forwp-drive-preview-single .single-post-entry-content {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
}

.forwp-drive-preview-single .wp-block-post-content {
	box-sizing: border-box;
}
