.oste-email-style-main {
	--oste-editor-border: #dcdcde;
	--oste-editor-muted: #646970;
	--oste-editor-accent: #f4b400;
	--oste-editor-accent-soft: #fff8df;
}

.oste-style-editor-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #f6f7f7;
	border: 1px solid var(--oste-editor-border);
	border-radius: 8px;
}

.oste-style-editor-toolbar p {
	margin: 0;
	color: var(--oste-editor-muted);
}

.oste-style-editor-toolbar__actions {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.oste-email-style-main .oste-style-settings-table {
	width: 100%;
	max-width: none !important;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.oste-email-style-main .oste-style-settings-table > tbody > tr > th,
.oste-email-style-main .oste-style-settings-table > tbody > tr > td {
	padding: 14px 18px;
	background: #fff;
	border-bottom: 1px solid #edf0f2;
	font-size: 13px;
	vertical-align: middle;
}

.oste-email-style-main .oste-style-settings-table > tbody > tr > th {
	width: 230px;
	font-weight: 600;
	color: #1d2327;
}

.oste-email-style-main .oste-style-master-row > th,
.oste-email-style-main .oste-style-master-row > td {
	background: #fffdf5 !important;
	border-top: 1px solid #ead9a1;
	border-bottom: 1px solid #ead9a1 !important;
}

.oste-email-style-main .oste-style-master-row > th {
	border-left: 1px solid #ead9a1;
	border-radius: 8px 0 0 8px;
}

.oste-email-style-main .oste-style-master-row > td {
	border-right: 1px solid #ead9a1;
	border-radius: 0 8px 8px 0;
}

.oste-email-style-main .oste-style-section-heading > th {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
}

.oste-style-section-heading {
	display: table-row;
}

.oste-style-section-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 12px 0 0;
	padding: 14px 16px;
	border: 1px solid #e4c45e;
	border-radius: 8px;
	background: var(--oste-editor-accent-soft);
	color: #1d2327;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(29, 35, 39, 0.04);
}

.oste-style-section-toggle:hover,
.oste-style-section-toggle:focus-visible {
	background: #fff2c2;
	border-color: #d5a900;
	color: #111;
}

.oste-style-section-toggle[aria-expanded="true"] {
	background: #f7c948;
	border-color: #d7a800;
	border-radius: 8px 8px 0 0;
}

.oste-style-section-toggle__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 12px;
	border-radius: 50%;
	background: #fff;
	color: #6b5200;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.oste-style-section-row > th:first-child {
	border-left: 1px solid var(--oste-editor-border);
}

.oste-style-section-row > td[colspan="2"] {
	border-left: 1px solid var(--oste-editor-border);
}

.oste-style-section-row > td:last-child {
	border-right: 1px solid var(--oste-editor-border);
}

.oste-style-section-row.is-section-last > th,
.oste-style-section-row.is-section-last > td {
	border-bottom: 1px solid var(--oste-editor-border) !important;
}

.oste-style-section-row.is-section-last > th:first-child {
	border-radius: 0 0 0 8px;
}

.oste-style-section-row.is-section-last > td:last-child {
	border-radius: 0 0 8px 0;
}

.oste-email-style-main .oste-style-settings-table input[type="text"],
.oste-email-style-main .oste-style-settings-table input[type="number"],
.oste-email-style-main .oste-style-settings-table select,
.oste-email-style-main .oste-style-settings-table textarea {
	min-height: 34px;
	border-color: #b9bec4;
	border-radius: 4px;
}

.oste-email-style-main .oste-style-settings-table select {
	min-width: 170px;
}

.oste-email-style-main .oste-style-settings-table textarea {
	width: 100%;
	min-height: 140px;
}

.oste-email-style-main .wp-picker-container .wp-color-result.button {
	min-height: 32px;
	margin: 0 6px 0 0;
	border-radius: 4px;
}

.oste-email-style-main .submit {
	position: sticky;
	bottom: 0;
	z-index: 5;
	margin: 16px 0 0;
	padding: 12px 14px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--oste-editor-border);
	border-radius: 8px;
	box-shadow: 0 -4px 16px rgba(29, 35, 39, 0.08);
}

@media (max-width: 782px) {
	.oste-style-editor-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.oste-email-style-main .oste-style-settings-table > tbody > tr > th,
	.oste-email-style-main .oste-style-settings-table > tbody > tr > td {
		display: block;
		width: auto;
		border-left: 1px solid var(--oste-editor-border);
		border-right: 1px solid var(--oste-editor-border);
	}

	.oste-email-style-main .oste-style-settings-table > tbody > tr > th {
		padding-bottom: 6px;
		border-bottom: 0;
	}

	.oste-email-style-main .oste-style-settings-table > tbody > tr > td {
		padding-top: 6px;
	}
}

.oste-email-style-layout {
	display: grid;
	grid-template-columns: minmax(680px, 1fr) minmax(680px, 46vw);
	gap: 20px;
	align-items: start;
}
.oste-email-style-main {
	min-width: 0;
}
.oste-email-style-preview {
	position: sticky;
	top: 32px;
}
.oste-email-preview-panel {
	margin: 0;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.oste-email-preview-panel h2 {
	margin-top: 0;
}
.oste-email-preview-panel__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}
.oste-email-preview-panel__controls select {
	min-width: 220px;
}
.oste-email-preview-panel__subject {
	margin-bottom: 14px;
	font-size: 14px;
	color: #3c434a;
}
.oste-email-preview-panel__subject strong {
	margin-right: 6px;
}
.oste-email-preview-panel__frame {
	position: relative;
}
.oste-email-preview-panel__iframe {
	width: 100%;
	min-height: 620px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	background: #f6f7f7;
}
.oste-email-style-main .form-table {
	margin-left: 0;
	border-collapse: separate;
}
.oste-email-style-main .form-table th,
.oste-email-style-main .form-table td {
	padding-left: 14px;
}
.oste-email-style-main .form-table th {
	padding-right: 16px;
}
.oste-email-preview-panel__note {
	margin-top: 14px;
}
.oste-email-preview-send-test {
	margin-top: 10px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: center;
}
.oste-email-preview-send-test__message {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 12px;
}
.oste-email-preview-panel--empty {
	margin: 24px 0 36px;
	padding: 24px;
	background: #fffdf5;
	border: 1px solid #f0d8a8;
	border-radius: 4px;
}
.oste-email-preview-panel--empty h2 {
	margin-top: 0;
}
.oste-email-preview-panel--empty .description {
	margin: 0;
}
#oste-email-preview-spinner {
	margin-left: auto;
}
@media (max-width: 1400px) {
	.oste-email-style-layout {
		grid-template-columns: 1fr;
	}
	.oste-email-style-preview {
		position: static;
	}
	.oste-email-preview-panel,
	.oste-email-preview-panel--empty {
		margin-bottom: 20px;
	}
}
