/* Toggle Admin Notices — Admin Styles */

/* -----------------------------------------------------------------------
   Wrapper (invisible, used as a JS hook)
----------------------------------------------------------------------- */
.toggadno-wrapper {
	display: none; /* hidden until JS re-renders notices into groups */
}

/* -----------------------------------------------------------------------
   Notices container
----------------------------------------------------------------------- */
#toggadno-notices-container {
	margin: 10px 0 20px;
}

/* -----------------------------------------------------------------------
   Grouped notice panel
----------------------------------------------------------------------- */
.toggadno-group {
	margin: 0 0 12px;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.toggadno-group-header {
	padding: 10px 14px;
	background: #f6f7f7;
	border-bottom: 1px solid #c3c4c7;
	border-radius: 3px 3px 0 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.toggadno-group-header:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: -2px;
}

.toggadno-group-header.is-open {
	border-radius: 3px 3px 0 0;
}

.toggadno-group-title {
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
	flex: 1;
}

.toggadno-group-meta {
	font-size: 12px;
	color: #646970;
	margin-left: 8px;
	white-space: nowrap;
}

.toggadno-group-toggle-icon {
	margin-left: 10px;
	font-size: 16px;
	line-height: 1;
	color: #646970;
	transition: transform 0.15s ease;
	display: inline-flex;
	align-items: center;
}

.toggadno-group-header.is-open .toggadno-group-toggle-icon {
	transform: rotate(180deg);
}

/* -----------------------------------------------------------------------
   Group content (collapsed by default)
----------------------------------------------------------------------- */
.toggadno-group-content {
	display: none;
}

.toggadno-group-content.is-open {
	display: block;
}

/* -----------------------------------------------------------------------
   Individual notice items
----------------------------------------------------------------------- */
.toggadno-notice-item {
	padding: 2px 14px 8px;
	border-bottom: 1px solid #f0f0f1;
}

.toggadno-notice-item:last-child {
	border-bottom: none;
}

/* Reset WordPress default notice margins inside our wrapper */
.toggadno-notice-item .notice,
.toggadno-notice-item .updated,
.toggadno-notice-item .error,
.toggadno-notice-item .update-nag {
	margin: 8px 0 !important;
	box-shadow: none !important;
}

/* -----------------------------------------------------------------------
   Per-notice action buttons
----------------------------------------------------------------------- */
.toggadno-actions {
	margin: 4px 0 2px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 0;
}

.toggadno-btn-snooze,
.toggadno-btn-dismiss {
	appearance: none;
	background: none;
	border: none;
	padding: 0 8px 0 0;
	cursor: pointer;
	font-size: 12px;
	color: #2271b1;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.toggadno-btn-snooze:hover,
.toggadno-btn-dismiss:hover {
	color: #135e96;
}

.toggadno-btn-snooze:focus-visible,
.toggadno-btn-dismiss:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 2px;
}

.toggadno-btn-snooze:disabled,
.toggadno-btn-dismiss:disabled {
	opacity: 0.5;
	cursor: default;
}

/* Snooze dropdown */
.toggadno-snooze-select {
	font-size: 12px;
	height: 24px;
	padding: 0 4px;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	color: #2271b1;
	background: #fff;
	cursor: pointer;
	margin-right: 4px;
}

.toggadno-snooze-select:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
}

/* -----------------------------------------------------------------------
   Settings page
----------------------------------------------------------------------- */
#toggadno-settings-page .form-table th {
	width: 220px;
}
