.esh-typography-editor {
	margin: 9px 0 3px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.esh-typography-editor__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 40px;
	padding: 7px 10px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	color: #344054;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.esh-typography-editor__toggle:hover,
.esh-typography-editor__toggle:focus {
	border-color: #98a2b3;
	background: #f9fafb;
	color: #1d2939;
}

.esh-typography-editor__toggle-icon {
	display: inline-grid;
	flex: 0 0 24px;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	background: #f2f4f7;
	color: #344054;
	font: 700 13px/1 Georgia, serif;
}

.esh-typography-editor__toggle-text {
	white-space: nowrap;
}

.esh-typography-editor__toggle-status {
	min-width: 0;
	margin-left: auto;
	overflow: hidden;
	color: #667085;
	font-size: 12px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.esh-typography-editor__chevron {
	flex: 0 0 auto;
	color: #667085;
	font-size: 22px;
	line-height: 1;
	transform: rotate(0deg);
	transition: transform .18s ease;
}

.esh-typography-editor__toggle[aria-expanded="true"] .esh-typography-editor__chevron {
	transform: rotate(90deg);
}

.esh-typography-editor.has-custom-value .esh-typography-editor__toggle {
	border-color: #84adcf;
	box-shadow: 0 0 0 1px rgba(34, 113, 177, .08);
}

.esh-typography-editor.has-custom-value .esh-typography-editor__toggle-icon {
	background: #eaf3fb;
	color: #135e96;
}

.esh-typography-editor__panel {
	margin-top: 8px;
	padding: 15px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #f9fafb;
	box-shadow: 0 4px 14px rgba(16, 24, 40, .05);
}

.esh-typography-editor__panel[hidden] {
	display: none !important;
}

.esh-typography-editor__preview {
	display: flex;
	min-height: 74px;
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px solid #eaecf0;
	border-radius: 8px;
	background: #fff;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
}

.esh-typography-editor__preview-caption {
	margin-bottom: 6px;
	color: #98a2b3;
	font: 600 10px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-transform: uppercase;
	letter-spacing: .07em;
}

.esh-typography-editor__preview-text {
	max-width: 100%;
	color: #101828;
	font-size: 22px;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.esh-typography-editor__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
	color: #344054;
	font: 600 12px/1.35 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.esh-typography-editor__field select {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 7px 36px 7px 11px;
	border: 1px solid #d0d5dd;
	border-radius: 7px;
	background-color: #fff;
	color: #101828;
	font-size: 14px;
}

.esh-typography-editor__font-picker {
	position: relative;
}

.esh-typography-editor__font-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 7px 11px;
	border: 1px solid #d0d5dd;
	border-radius: 7px;
	background: #fff;
	color: #101828;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
}

.esh-typography-editor__font-button:hover,
.esh-typography-editor__font-button:focus,
.esh-typography-editor__font-button[aria-expanded="true"] {
	border-color: #84adcf;
	background: #fff;
	color: #101828;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .1);
}

.esh-typography-editor__font-menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 5px);
	left: 0;
	right: 0;
	max-height: 230px;
	padding: 5px;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(16, 24, 40, .16);
	overflow-y: auto;
}

.esh-typography-editor__font-menu[hidden] {
	display: none !important;
}

.esh-typography-editor__font-choice {
	display: block;
	width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: #fff;
	color: #344054;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.esh-typography-editor__font-choice:hover,
.esh-typography-editor__font-choice:focus {
	background: #f2f4f7;
	color: #101828;
}

.esh-typography-editor__font-choice[aria-pressed="true"] {
	background: #eaf3fb;
	color: #135e96;
	font-weight: 600;
}

.esh-typography-editor__size-section {
	margin: 0 0 14px;
	padding: 12px;
	border: 1px solid #eaecf0;
	border-radius: 8px;
	background: #fff;
}

.esh-typography-editor__section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
	color: #344054;
	font-size: 12px;
	font-weight: 600;
}

.esh-typography-editor__device-tabs {
	display: inline-flex;
	padding: 2px;
	border-radius: 7px;
	background: #f2f4f7;
}

.esh-typography-editor__device-tab {
	min-height: 28px;
	padding: 4px 9px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: #667085;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.esh-typography-editor__device-tab[aria-selected="true"] {
	background: #fff;
	color: #135e96;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .12);
}

.esh-typography-editor__device-tab:focus {
	outline: 2px solid rgba(34, 113, 177, .28);
	outline-offset: 1px;
}

.esh-typography-editor__size-controls {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px;
	align-items: center;
	gap: 12px;
}

.esh-typography-editor__size-controls > input[type="range"] {
	width: 100%;
	margin: 0;
	accent-color: #2271b1;
}

.esh-typography-editor__size-controls > input[type="range"].is-inherited {
	opacity: .42;
}

.esh-typography-editor__size-number {
	display: flex;
	height: 38px;
	border: 1px solid #d0d5dd;
	border-radius: 7px;
	background: #fff;
	align-items: center;
	overflow: hidden;
}

.esh-typography-editor__size-number input {
	min-width: 0;
	width: 47px;
	height: 100%;
	padding: 6px 2px 6px 9px;
	border: 0 !important;
	outline: 0;
	background: transparent;
	color: #101828;
	font-size: 13px;
}

.esh-typography-editor__size-number span {
	color: #98a2b3;
	font-size: 11px;
}

.esh-typography-editor__size-hint {
	display: block;
	margin-top: 7px;
	color: #667085;
	font-size: 11px;
}

.esh-typography-editor__apply-all {
	margin: 8px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #135e96;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.esh-typography-editor__apply-all:hover,
.esh-typography-editor__apply-all:focus {
	background: transparent;
	color: #0a4b78;
}

.esh-typography-editor__segments {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.esh-typography-editor__segment {
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid #d0d5dd;
	border-radius: 7px;
	background: #fff;
	color: #475467;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.esh-typography-editor__segment[aria-pressed="true"] {
	border-color: #2271b1;
	background: #eaf3fb;
	color: #135e96;
}

.esh-typography-editor__segment:hover,
.esh-typography-editor__segment:focus {
	border-color: #84adcf;
	background: #f4f8fb;
	color: #135e96;
}

.esh-typography-editor__segment[aria-pressed="true"]:hover,
.esh-typography-editor__segment[aria-pressed="true"]:focus {
	background: #eaf3fb;
}

.esh-typography-editor__footer {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding-top: 12px;
	border-top: 1px solid #eaecf0;
}

.esh-typography-editor__reset {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #344054;
	font-family: inherit;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.esh-typography-editor__reset:hover,
.esh-typography-editor__reset:focus {
	border-color: #84adcf;
	background: #f4f8fb;
	color: #135e96;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .08);
	outline: 0;
}

.esh-typography-editor__reset:disabled {
	border-color: #eaecf0;
	background: #f9fafb;
	color: #98a2b3;
	cursor: not-allowed;
	box-shadow: none;
}

.esh-typography-editor__reset-icon {
	display: inline-grid;
	flex: 0 0 34px;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eaf3fb;
	color: #135e96;
	font-size: 19px;
	font-weight: 700;
}

.esh-typography-editor__reset:disabled .esh-typography-editor__reset-icon {
	background: #f2f4f7;
	color: #98a2b3;
}

.esh-typography-editor__reset-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 2px;
}

.esh-typography-editor__reset-copy strong {
	font-size: 13px;
	font-weight: 700;
}

.esh-typography-editor__reset-copy small {
	color: #667085;
	font-size: 11px;
	font-weight: 400;
}

.esh-typography-editor__reset:disabled .esh-typography-editor__reset-copy small {
	color: #98a2b3;
}

.esh-typography-editor__reset-help {
	color: #667085;
	font-size: 11px;
	line-height: 1.4;
}

.esh-typography-editor__reset-help.is-success {
	color: #067647;
	font-weight: 600;
}

.elementsync-typography--family,
.elementsync-typography--family .elementor-widget-container,
.elementsync-typography--family .elementor-widget-container :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em) {
	font-family: var(--esh-font-family) !important;
}

.elementsync-typography--weight,
.elementsync-typography--weight .elementor-widget-container,
.elementsync-typography--weight .elementor-widget-container :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em) {
	font-weight: var(--esh-font-weight) !important;
}

.elementsync-typography--style,
.elementsync-typography--style .elementor-widget-container,
.elementsync-typography--style .elementor-widget-container :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em) {
	font-style: var(--esh-font-style) !important;
}

.elementsync-typography--size,
.elementsync-typography--size .elementor-widget-container,
.elementsync-typography--size .elementor-widget-container :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em) {
	font-size: var(--esh-font-size-desktop) !important;
}

@media (max-width: 1024px) {
	.elementsync-typography--size,
	.elementsync-typography--size .elementor-widget-container,
	.elementsync-typography--size .elementor-widget-container :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em) {
		font-size: var(--esh-font-size-tablet, var(--esh-font-size-desktop)) !important;
	}
}

@media (max-width: 767px) {
	.esh-typography-editor__toggle-status {
		max-width: 130px;
	}

	.esh-typography-editor__panel {
		padding: 12px;
	}

	.esh-typography-editor__section-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.esh-typography-editor__device-tabs {
		width: 100%;
	}

	.esh-typography-editor__device-tab {
		flex: 1;
	}

	.elementsync-typography--size,
	.elementsync-typography--size .elementor-widget-container,
	.elementsync-typography--size .elementor-widget-container :where(h1, h2, h3, h4, h5, h6, p, a, button, span, strong, em) {
		font-size: var(--esh-font-size-mobile, var(--esh-font-size-tablet, var(--esh-font-size-desktop))) !important;
	}
}
