.ax-admin__title { display: flex; align-items: center; gap: 10px; }
.ax-admin__logo { height: 26px; width: auto; }
.ax-admin__status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; line-height: 1.6; }
.ax-admin__status.is-live { background: #d1fadf; color: #05603a; }
.ax-admin__status.is-demo { background: #fef0c7; color: #93370d; }
.ax-admin__help { margin-inline-start: auto; font-size: 13px; font-weight: 400; }

.ax-tabs { margin-bottom: 0; }
.ax-admin__layout { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 24px; align-items: start; margin-top: 16px; }
@media (max-width: 1280px) { .ax-admin__layout { grid-template-columns: 1fr; } }
.ax-admin__preview { position: sticky; top: 46px; }

.ax-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 4px 20px 16px; margin-bottom: 16px; }
.ax-card h2 { font-size: 14px; margin: 16px 0 8px; }
.ax-panel .form-table { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; margin-top: 0; }
.ax-panel .form-table th { padding-inline-start: 20px; width: 240px; }
.ax-panel .form-table td { padding-inline-end: 20px; }
.ax-savebar { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, #f0f0f1 70%, transparent); z-index: 5; }

.ax-preview {
	position: relative; height: min(780px, calc(100vh - 240px)); min-height: 460px; overflow: hidden; border-radius: 10px; isolation: isolate;
	background: #eef0f3; border: 1px solid #dcdcde;
}
/* Mock page behind the widget: header bar, hero and content skeleton. */
.ax-preview::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		linear-gradient(#dcdcde, #dcdcde) 0 44px / 100% 1px no-repeat,
		linear-gradient(#fff, #fff) 0 0 / 100% 44px no-repeat,
		linear-gradient(#e5e7eb, #e5e7eb) 16px 16px / 64px 12px no-repeat,
		linear-gradient(#e5e7eb, #e5e7eb) calc(100% - 16px) 18px / 90px 8px no-repeat,
		linear-gradient(135deg, #e5e7eb, #eef0f3) 16px 60px / calc(100% - 32px) 120px no-repeat,
		linear-gradient(#e5e7eb, #e5e7eb) 16px 200px / 60% 12px no-repeat,
		linear-gradient(#eceef1, #eceef1) 16px 224px / calc(100% - 32px) 8px no-repeat,
		linear-gradient(#eceef1, #eceef1) 16px 240px / calc(100% - 48px) 8px no-repeat,
		linear-gradient(#eceef1, #eceef1) 16px 256px / 70% 8px no-repeat,
		linear-gradient(#fff, #fff) 16px 284px / calc(50% - 22px) 96px no-repeat,
		linear-gradient(#fff, #fff) calc(100% - 16px) 284px / calc(50% - 22px) 96px no-repeat;
}
.ax-preview > * { position: absolute; inset: 0; z-index: 1; }

.ax-switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.ax-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.ax-switch span { position: absolute; inset: 0; background: #c3c4c7; border-radius: 22px; transition: background .15s; cursor: pointer; }
.ax-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; inset-inline-start: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.ax-switch input:checked + span { background: var(--wp-admin-theme-color, #2271b1); }
.ax-switch input:checked + span::before { transform: translateX(18px); }
.ax-switch input:focus-visible + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--wp-admin-theme-color, #2271b1); }
[dir="rtl"] .ax-switch input:checked + span::before { transform: translateX(-18px); }

.ax-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 16px; }
.ax-hours td { padding: 3px 12px 3px 0; }
.ax-inline { display: inline-block; margin-top: 6px; }
.ax-media { display: flex; gap: 6px; align-items: center; }
.ax-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.ax-dl dt { font-weight: 600; }
.ax-dl dd { margin: 0; }
.ax-json { max-height: 420px; overflow: auto; background: #1d2327; color: #f0f0f1; padding: 14px; border-radius: 6px; font-size: 12px; }
.ax-embed th { width: 180px; }
.ax-embed code { white-space: nowrap; }
.ax-support { display: flex; gap: 16px; align-items: center; color: #646970; font-size: 13px; margin-top: 8px; }
.ax-admin__status.is-off { background: #fde2e1; color: #8a1f17; }
.ax-tabs .nav-tab[hidden] { display: none; }
.ax-preview__empty { margin: 16px; display: grid; place-items: center; min-height: 300px; color: #646970; text-align: center; border: 1px dashed #c3c4c7; border-radius: 8px; padding: 20px; }
