@charset "utf-8";

:root {
	--zmsh-ink: #1d2327;
	--zmsh-muted: #50575e;
	--zmsh-border: #dcdcde;
	--zmsh-inner-border: #c7d0d9;
	--zmsh-surface: #ffffff;
	--zmsh-page: #f6f7f7;
	--zmsh-soft: #f0f6fc;
	--zmsh-accent: #2271b1;
	--zmsh-accent-strong: #135e96;
	--zmsh-accent-light: #72aee6;
	--zmsh-radius: 8px;
}

.zmsh-settings-wrap {
	width: calc(100% - 26px);
	max-width: 1440px;
	margin: 24px 24px 0 2px;
	color: var(--zmsh-ink);
	box-sizing: border-box;
}

.zm_settings_page_header {
	margin: 0 0 20px;
	padding: 22px 24px;
	background: var(--zmsh-surface);
	border: 1px solid var(--zmsh-border);
	border-left: 4px solid var(--zmsh-accent);
	border-radius: var(--zmsh-radius);
}

.zmsh-settings-wrap .zm_options_page_heading {
	margin: 0;
	color: var(--zmsh-ink);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.zm_settings_page_subtitle {
	max-width: 690px;
	margin: 7px 0 0;
	color: var(--zmsh-muted);
	font-size: 14px;
	line-height: 1.5;
}

.zm_settings_shell {
	display: grid;
	gap: 20px;
}

.zm_settings_top_grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.zm_settings_loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 220px;
	padding: 24px;
	background: var(--zmsh-surface);
	border: 1px solid var(--zmsh-border);
	border-radius: var(--zmsh-radius);
	box-sizing: border-box;
	color: var(--zmsh-muted);
	font-size: 14px;
	font-weight: 600;
}

.zm_settings_loader_spinner {
	width: 22px;
	height: 22px;
	border: 3px solid var(--zmsh-border);
	border-top-color: var(--zmsh-accent);
	border-radius: 50%;
	box-sizing: border-box;
	animation: zm-settings-spin 700ms linear infinite;
}

@keyframes zm-settings-spin {
	to {
		transform: rotate(360deg);
	}
}

.zm_settings_section {
	padding: 22px 24px 24px;
	background: var(--zmsh-surface);
	border: 1px solid var(--zmsh-border);
	border-left: 3px solid var(--zmsh-accent-light);
	border-radius: var(--zmsh-radius);
}

.zm_settings_shell.is-dirty .zm_settings_section {
	border-left-color: var(--zmsh-accent-strong);
}

.zm_section_header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 15px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--zmsh-border);
}

.zmsh-settings-wrap .zm_settings_section h2,
.zm_section_header h2 {
	margin: 0;
	padding: 0;
	color: var(--zmsh-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}

.zm_section_header p {
	max-width: 500px;
	margin: 0;
	color: var(--zmsh-muted);
	font-size: 13px;
	line-height: 1.5;
	text-align: right;
}

.zm_settings_section > .components-base-control + .components-base-control {
	margin-top: 18px;
}

.zm_exclude_control {
	margin-top: 18px;
}

.zm_exclude_control .components-form-token-field__input-container {
	min-height: 88px;
	border-color: #8c8f94;
	border-radius: 4px;
	box-shadow: none;
	box-sizing: border-box;
}

.zm_exclude_control .components-form-token-field__input-container.is-active {
	border-color: var(--zmsh-accent);
	box-shadow: 0 0 0 1px var(--zmsh-accent);
}

.zm_exclude_control .components-form-token-field__token {
	max-width: 100%;
}

.zm_exclude_control .components-base-control__help {
	margin: 7px 0 0;
	color: var(--zmsh-muted);
}

.zm_network_template_heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.zm_network_template_label {
	color: #2c3338;
	font-size: 13px;
	font-weight: 600;
}

.zm_template_prefix_row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 10px;
	align-items: baseline;
	margin: 0 0 14px;
	color: var(--zmsh-muted);
	font-size: 12px;
	line-height: 1.45;
}

.zm_template_prefix {
	display: block;
	padding: 6px 8px;
	overflow-wrap: anywhere;
	background: #f0f0f1;
	border: 0;
	border-left: 3px solid #c3c4c7;
	border-radius: 0 2px 2px 0;
	color: #50575e;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.45;
}

.zm_template_parameters {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.zm_template_parameters legend {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-bottom: 8px;
	padding: 0;
	color: var(--zmsh-muted);
	font-size: 12px;
	font-weight: 600;
}

.zm_template_parameters_hint {
	font-weight: 400;
	text-align: right;
}

.zm_template_parameter_list {
	overflow: hidden;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.zm_template_parameter_list:focus-within,
.zm_template_parameter_list.is-autocomplete-active {
	border-color: var(--zmsh-accent);
	box-shadow: 0 0 0 1px var(--zmsh-accent);
}

.zm_template_parameter_list.is-autocomplete-active {
	overflow: visible;
}

.zm_template_parameter {
	display: grid;
	grid-template-columns: minmax(86px, 0.32fr) minmax(0, 1fr);
	align-items: center;
	min-height: 38px;
}

.zm_template_parameter + .zm_template_parameter {
	border-top: 1px solid #dcdcde;
}

.zm_template_parameter_name {
	display: flex;
	align-items: center;
	align-self: stretch;
	margin: 0;
	padding: 7px 8px;
	overflow-wrap: anywhere;
	background: #f6f7f7;
	border: 0;
	border-right: 1px solid #dcdcde;
	color: #2c3338;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.35;
}

.zm_template_parameter_editor {
	box-sizing: border-box;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 6px 8px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #2c3338;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.35;
	outline: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.zm_template_placeholder {
	color: var(--zmsh-accent-strong);
	background: var(--zmsh-soft);
	border-bottom: 1px solid currentColor;
	text-decoration: none;
}

.zm_template_autocomplete {
	position: absolute;
	width: min(264px, calc(100vw - 32px));
	max-height: 154px;
	overflow-y: auto;
	padding: 4px 0;
	background: #fff;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	box-shadow: 0 8px 18px rgba(29, 35, 39, 0.22);
	z-index: 2;
}

.zm_template_autocomplete_option {
	position: relative;
	padding: 7px 84px 7px 12px;
	color: #2c3338;
	cursor: pointer;
}

.zm_template_autocomplete_option.is-selected {
	background: var(--zmsh-accent);
	color: #fff;
}

.zm_template_autocomplete_label,
.zm_template_autocomplete_description,
.zm_template_autocomplete_syntax {
	display: block;
}

.zm_template_autocomplete_label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.25;
}

.zm_template_autocomplete_description {
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.3;
}

.zm_template_autocomplete_syntax {
	position: absolute;
	top: 12px;
	right: 12px;
	color: var(--zmsh-muted);
	font-family: Consolas, Monaco, monospace;
	font-size: 11px;
}

.zm_template_autocomplete_option.is-selected .zm_template_autocomplete_syntax {
	color: #fff;
}

.zm_expandable_toggle_panel {
	min-width: 0;
}

.zm_panel_toggle {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 18px;
	align-items: center;
	min-height: 74px;
	padding: 12px 14px;
	box-sizing: border-box;
}

.zm_panel_identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.zm_panel_marker {
	display: grid;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	place-items: center;
	box-sizing: border-box;
}

.zm_panel_copy {
	min-width: 0;
}

.zm_panel_copy h3 {
	margin: 0;
	color: var(--zmsh-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.zm_panel_copy p {
	margin: 3px 0 0;
	color: var(--zmsh-muted);
	font-size: 12px;
	line-height: 1.4;
}

.zm_panel_toggle .components-toggle-control {
	align-self: center;
	margin: 0;
}

.zm_panel_toggle .components-toggle-control .components-base-control__field {
	gap: 6px;
}

.zm_panel_toggle .components-toggle-control__label {
	margin: 0;
	color: var(--zmsh-muted);
	font-size: 12px;
	font-weight: 500;
}

.zm_expandable_toggle_panel.is-enabled > .zm_native_toggle {
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.zm_expandable_toggle_panel_details {
	margin: 0;
	background: var(--zmsh-surface);
	border: 1px solid var(--zmsh-inner-border);
	border-top: 0;
	border-radius: 0 0 6px 6px;
	box-sizing: border-box;
}

.zm_network_template {
	position: relative;
	padding: 16px;
}

.zm_network_marker {
	overflow: hidden;
	background: #fff;
	border: 0;
	border-radius: 4px;
	color: var(--zmsh-muted);
	font-size: 18px;
	font-weight: 600;
}

.zm_network_marker img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zm_network_template .components-base-control__help {
	margin: 7px 0 0;
	color: var(--zmsh-muted);
	font-size: 12px;
}

@media screen and (max-width: 600px) {
	.zm_template_prefix_row,
	.zm_template_parameter {
		grid-template-columns: 1fr;
		gap: 5px;
	}

	.zm_template_parameter_name {
		border-right: 0;
		border-bottom: 1px solid #dcdcde;
	}

	.zm_template_parameters legend {
		display: block;
	}

	.zm_template_parameters_hint {
		display: block;
		margin-top: 3px;
		text-align: left;
	}
}

.zmsh-settings-wrap .components-base-control__label {
	margin-bottom: 7px;
	color: #2c3338;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.zmsh-settings-wrap .components-text-control__input,
.zmsh-settings-wrap .components-textarea-control__input,
.zmsh-settings-wrap .components-select-control__input {
	max-width: 620px;
	border-color: #b8c3cc;
	border-radius: 4px;
	box-shadow: none;
}

.zmsh-settings-wrap .components-text-control__input:focus,
.zmsh-settings-wrap .components-textarea-control__input:focus,
.zmsh-settings-wrap .components-select-control__input:focus {
	border-color: var(--zmsh-accent);
	box-shadow: 0 0 0 1px var(--zmsh-accent);
}

.zmsh-settings-wrap .components-base-control__help {
	margin-top: 7px;
	color: var(--zmsh-muted);
	font-size: 12px;
	line-height: 1.45;
}

.zm_icon_style_panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 250px;
	gap: 24px;
	align-items: start;
}

.zm_icon_style_panel .components-base-control {
	padding-top: 8px;
}

.zm_icon_style_panel .components-select-control {
	width: 100%;
	max-width: 420px;
}

.zm_settings .button-style-img {
	display: grid;
	gap: 10px;
	justify-items: start;
	padding: 14px;
	background: var(--zmsh-page);
	border: 1px solid var(--zmsh-border);
	border-radius: 6px;
}

.zm_settings .button-style-img span {
	color: var(--zmsh-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: uppercase;
}

.zm_settings .button-style-img img {
	display: block;
	max-width: 100%;
	height: auto;
}

.zm_placement_item {
	min-width: 0;
}

.zm_placement_diagram {
	position: relative;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: hidden;
}

.zm_placement_diagram_copy {
	position: absolute;
	background: repeating-linear-gradient(to bottom, #c3c4c7 0 2px, transparent 2px 5px);
	border-radius: 1px;
}

.zm_placement_diagram_buttons {
	position: absolute;
	background: var(--zmsh-accent);
	border-radius: 1px;
}

.zm_placement_diagram--show_left .zm_placement_diagram_copy,
.zm_placement_diagram--show_right .zm_placement_diagram_copy {
	top: 8px;
	bottom: 8px;
	left: 13px;
	right: 6px;
}

.zm_placement_diagram--show_left .zm_placement_diagram_buttons,
.zm_placement_diagram--show_right .zm_placement_diagram_buttons {
	top: 9px;
	bottom: 9px;
	width: 4px;
}

.zm_placement_diagram--show_left .zm_placement_diagram_buttons {
	left: 5px;
}

.zm_placement_diagram--show_right .zm_placement_diagram_copy {
	left: 6px;
	right: 13px;
}

.zm_placement_diagram--show_right .zm_placement_diagram_buttons {
	right: 5px;
}

.zm_placement_diagram--show_before_post .zm_placement_diagram_copy,
.zm_placement_diagram--show_after_post .zm_placement_diagram_copy {
	top: 13px;
	bottom: 6px;
	left: 7px;
	right: 7px;
}

.zm_placement_diagram--show_before_post .zm_placement_diagram_buttons,
.zm_placement_diagram--show_after_post .zm_placement_diagram_buttons {
	left: 7px;
	right: 7px;
	height: 4px;
}

.zm_placement_diagram--show_before_post .zm_placement_diagram_buttons {
	top: 6px;
}

.zm_placement_diagram--show_after_post .zm_placement_diagram_buttons {
	bottom: 6px;
}

.zm_placement_details {
	padding: 16px;
}

.zm_placement_details .components-select-control {
	margin: 0;
}

.zm_placement_details .components-select-control__input {
	max-width: none;
}

.zm_network_grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 14px;
}

.zm_network_columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.zm_network_column {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 14px;
}

.zm_native_toggle {
	min-width: 0;
	padding: 12px 14px;
	background: var(--zmsh-page);
	border: 1px solid var(--zmsh-inner-border);
	border-radius: 6px;
}

.zm_native_toggle.zm_panel_toggle {
	border-left: 2px solid var(--zmsh-accent-light);
}

.zm_native_toggle .components-base-control,
.zm_native_toggle .components-toggle-control {
	margin: 0;
}

.zm_native_toggle .components-toggle-control__label {
	color: #2c3338;
	font-size: 13px;
	font-weight: 600;
}

.zm_settings_generator_actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.zm_settings_toaster {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: min(360px, calc(100vw - 32px));
	z-index: 100000;
}

.zm_settings_toaster .components-snackbar {
	width: 100%;
	margin: 0;
	border-left: 4px solid var(--zmsh-accent);
	box-sizing: border-box;
}

.zm_settings_toaster.is-error .components-snackbar {
	border-left-color: #d63638;
}

.wp-core-ui .zmsh-settings-wrap .zm_settings .button,
.wp-core-ui .zmsh-settings-wrap .zm_settings .button-primary,
.wp-core-ui .zmsh-settings-wrap .zm_settings .button-secondary,
.wp-core-ui .zmsh-settings-wrap .submit .button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 14px;
	border-radius: 4px;
	box-shadow: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.wp-core-ui .zmsh-settings-wrap .submit .button-primary.is-busy {
	opacity: 0.78;
	cursor: wait;
}

.wp-core-ui .zmsh-settings-wrap .submit .button-primary {
	min-width: 126px;
	background: var(--zmsh-accent);
	border-color: var(--zmsh-accent);
}

.wp-core-ui .zmsh-settings-wrap .submit .button-primary:hover,
.wp-core-ui .zmsh-settings-wrap .submit .button-primary:focus {
	background: var(--zmsh-accent-strong);
	border-color: var(--zmsh-accent-strong);
	box-shadow: 0 0 0 1px var(--zmsh-accent-strong);
}

.wp-core-ui .zmsh-settings-wrap form.is-dirty .submit .button-primary {
	background: var(--zmsh-accent-strong);
	border-color: var(--zmsh-accent-strong);
}

.wp-core-ui .zmsh-settings-wrap .zm_settings .get_phpcode,
.wp-core-ui .zmsh-settings-wrap .zm_settings .get_shortcode {
	background: #f6f7f7;
	border-color: #c3c4c7;
	color: #2c3338;
}

.wp-core-ui .zmsh-settings-wrap .zm_settings .get_phpcode:hover,
.wp-core-ui .zmsh-settings-wrap .zm_settings .get_shortcode:hover,
.wp-core-ui .zmsh-settings-wrap .zm_settings .get_phpcode:focus,
.wp-core-ui .zmsh-settings-wrap .zm_settings .get_shortcode:focus {
	background: var(--zmsh-soft);
	border-color: var(--zmsh-accent);
	color: var(--zmsh-accent-strong);
	box-shadow: 0 0 0 1px var(--zmsh-accent);
}

.zmsh-settings-wrap .submit {
	display: flex;
	justify-content: flex-end;
	margin: 20px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--zmsh-border);
}

.zmsh-settings-wrap .desin_by {
	margin: 14px 0 0;
	color: var(--zmsh-muted);
	font-size: 12px;
}

.zmsh-settings-wrap .zm-sh-thick-box {
	display: none;
	position: fixed;
	inset: 0;
	overflow: auto;
	padding: 32px 18px;
	background: rgba(29, 35, 39, 0.58);
	z-index: 99999;
}

.zm-sh-thick-box .backdrop {
	position: fixed;
	inset: 0;
}

.zm-sh-thick-box .zm-tabs {
	position: relative;
	max-width: 560px;
	margin: 0 auto;
	padding: 22px;
	background: #fff;
	border-radius: var(--zmsh-radius);
	box-shadow: 0 20px 60px rgba(29, 35, 39, 0.28);
}

.zm-sh-thick-box .zm-tabs .title {
	margin: 0 44px 20px 0;
	color: var(--zmsh-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.zm-sh-thick-box .zm-tabs .close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--zmsh-border);
	border-radius: 4px;
	color: var(--zmsh-muted);
	cursor: pointer;
}

.zm-sh-thick-box .zm-tabs .close:hover,
.zm-sh-thick-box .zm-tabs .close:focus {
	border-color: var(--zmsh-accent);
	color: var(--zmsh-accent-strong);
	outline: none;
}

.zm-sh-thick-box .components-base-control {
	margin-bottom: 16px;
}

.zm-sh-thick-box textarea {
	width: 100%;
	min-height: 190px;
	border: 1px solid var(--zmsh-border);
	border-radius: 4px;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	line-height: 1.5;
}

@media (min-width: 1200px) {
	.zm_settings_top_grid {
		grid-template-columns: minmax(0, 3fr) minmax(380px, 2fr);
		align-items: stretch;
	}

	.zm_settings_top_grid .zm_settings_section {
		height: 100%;
		box-sizing: border-box;
	}

	.zm_settings_top_grid .zm_section_header {
		display: block;
	}

	.zm_settings_top_grid .zm_section_header p {
		margin-top: 6px;
		text-align: left;
	}

	.zm_settings_top_grid .zm_icon_style_panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.zm_settings_top_grid .button-style-img {
		max-width: 250px;
	}
}

@media (max-width: 782px) {
	.zmsh-settings-wrap {
		width: auto;
		margin-right: 12px;
	}

	.zm_settings_page_header,
	.zm_settings_section {
		padding: 18px;
	}

	.zm_section_header {
		display: block;
	}

	.zm_section_header p {
		margin-top: 6px;
		text-align: left;
	}

	.zm_icon_style_panel,
	.zm_network_grid,
	.zm_network_columns {
		grid-template-columns: 1fr;
	}

	.zm_icon_style_panel .components-base-control {
		padding-top: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zm_settings_loader_spinner {
		animation: none;
	}
}

@media (max-width: 480px) {
	.zm_panel_toggle {
		grid-template-columns: 1fr;
	}

	.zm_panel_toggle .components-toggle-control {
		margin-left: 60px;
	}
}
