/* Read Axolotl Notification Groups Manager — admin page styles. */

.aamo-ng-style-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	padding: 14px 0;
	cursor: pointer;
}

.aamo-ng-style-option input[type="radio"] {
	margin-top: 4px;
	flex-shrink: 0;
}

.aamo-ng-style-option__content {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.aamo-ng-style-option__label {
	display: block;
}

.aamo-ng-style-option__description {
	display: block;
	max-width: 55%;
	line-height: 1.4;
}

/**
 * Slim static preview mockups shown above each style's label/description —
 * decorative only (aria-hidden), just enough bars/dots to show the shape
 * of each layout at a glance. Sized to 55% of the page so the three
 * options' layouts are actually distinguishable at a glance, not squeezed
 * into a narrow column.
 */

.aamo-ng-style-preview {
	display: block;
	width: 55%;
	min-height: 54px;
	padding: 6px;
	border: 1px solid #dcdcde;
	border-radius: 2px;
	background: #f6f7f7;
}

.aamo-ng-style-preview__notice {
	display: block;
	height: 10px;
	margin-bottom: 4px;
	border-radius: 2px;
	background: #fff;
	border-left: 3px solid #646970;
}

.aamo-ng-style-preview__notice:last-child {
	margin-bottom: 0;
}

.aamo-ng-style-preview__notice--error { border-left-color: #d63638; background: #fcf0f1; }
.aamo-ng-style-preview__notice--warning { border-left-color: #dba617; background: #fcf9e8; }
.aamo-ng-style-preview__notice--success { border-left-color: #00a32a; background: #edfaef; }

/* Tabs preview */

.aamo-ng-style-preview--tabs .aamo-ng-style-preview__tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 6px;
}

.aamo-ng-style-preview__tab {
	width: 26px;
	height: 6px;
	border-radius: 2px;
	background: #dcdcde;
}

.aamo-ng-style-preview__tab.is-active {
	background: #2271b1;
}

/* Stacked Sections preview */

.aamo-ng-style-preview--accordion .aamo-ng-style-preview__row {
	display: flex;
	align-items: center;
	gap: 5px;
	height: 10px;
	margin-bottom: 4px;
}

.aamo-ng-style-preview__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.aamo-ng-style-preview__dot--error { background: #d63638; }
.aamo-ng-style-preview__dot--warning { background: #dba617; }
.aamo-ng-style-preview__dot--success { background: #00a32a; }

.aamo-ng-style-preview__bar {
	flex: 1;
	height: 5px;
	border-radius: 2px;
	background: #dcdcde;
}

/* Grid of Cards preview */

.aamo-ng-style-preview--grid {
	display: flex;
	gap: 4px;
}

.aamo-ng-style-preview__card {
	flex: 1;
	min-width: 0;
	padding: 4px;
	border-top: 3px solid #646970;
	background: #fff;
}

.aamo-ng-style-preview__card--error { border-top-color: #d63638; }
.aamo-ng-style-preview__card--warning { border-top-color: #dba617; }
.aamo-ng-style-preview__card--success { border-top-color: #00a32a; }

.aamo-ng-style-preview--grid .aamo-ng-style-preview__notice {
	margin-bottom: 0;
}

/**
 * Minimum-notices-to-group picker — a small segmented button group. The
 * radio input itself is visually hidden (not display:none, so it stays
 * keyboard/screen-reader accessible); the sibling <span> is styled as the
 * visible button and highlighted when its input is checked.
 */

.aamo-ng-count-picker {
	display: flex;
	gap: 6px;
}

.aamo-ng-count-option {
	position: relative;
	display: inline-flex;
	cursor: pointer;
}

.aamo-ng-count-option input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
}

.aamo-ng-count-option span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #dcdcde;
	border-radius: 2px;
	background: #fff;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
}

.aamo-ng-count-option input[type="radio"]:checked + span {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.aamo-ng-count-option input[type="radio"]:focus-visible + span {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
