/* ===================================================================
   INNER TAB NAV
   Uses the main .smt-tabs / .smt-tab classes from admin.css.
   .smt-ac-nav wrapper prevents any selector collision.
=================================================================== */

.smt-ac-nav {
	margin-bottom: 24px;
}

.smt-ac-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #5e5df0;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	padding: 0 5px;
	margin-left: 4px;
}

.smt-tab.active .smt-ac-tab-count {
	background: rgba(255,255,255,.35);
}

/* ===================================================================
   PANELS
=================================================================== */

.smt-ac-panel {
	/* Panels are shown/hidden by JS */
}

/* ===================================================================
   FORM FIELDS  - match newsletter style
=================================================================== */

.smt-ac-field {
	margin-bottom: 20px;
}

.smt-ac-field > label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 6px;
	color: #23282d;
}

.smt-ac-field input.regular-text,
.smt-ac-field input[type="url"],
.smt-ac-field input[type="email"],
.smt-ac-field input[type="text"],
.smt-ac-field textarea {
	width: 100%;
	max-width: 500px;
}

.smt-ac-field textarea {
	resize: vertical;
	max-width: 500px;
}

.smt-ac-field .description {
	margin-top: 5px;
	font-size: 12px;
	color: #777;
}

/* Inline group: number input + select (for "after X hours") */
.smt-ac-inline-group {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.smt-ac-inline-group .description {
	font-size: 12px;
	color: #777;
	margin: 0;
}

/* ===================================================================
   ROLES GRID  - reuse newsletter pattern
=================================================================== */

.smt-nl-roles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 8px;
	margin-bottom: 6px;
}

/* ===================================================================
   PLACEHOLDER TOOLBAR
=================================================================== */

.smt-ac-ph-toolbar {
	margin-bottom: 18px;
}

.smt-ac-ph-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	margin-bottom: 7px;
}

.smt-ac-ph-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

/* ===================================================================
   REMINDER BLOCKS
=================================================================== */

#smt-ac-reminders {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 20px;
}

.smt-ac-reminder {
	border: 1px solid #e2e2ea;
	border-radius: 12px;
	background: #fafafa;
	overflow: hidden;
}

.smt-ac-reminder-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 20px;
	background: #f2f2f9;
	border-bottom: 1px solid #e2e2ea;
	flex-wrap: wrap;
}

.smt-ac-reminder-num {
	font-weight: 700;
	font-size: 14px;
	color: #5e5df0;
	min-width: 100px;
	flex-shrink: 0;
}

.smt-ac-delay-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	flex: 1;
	flex-wrap: wrap;
}

.smt-ac-delay-wrap input.small-text {
	width: 72px;
}

.smt-ac-remove-reminder {
	margin-left: auto;
	font-size: 12px;
	flex-shrink: 0;
}

.smt-ac-reminder-body {
	padding: 20px 22px;
}

.smt-ac-reminder-body .smt-ac-field {
	margin-bottom: 14px;
}

.smt-ac-editor-wrap {
	margin-top: 4px;
}

/* ===================================================================
   ADD REMINDER
=================================================================== */

.smt-ac-add-row {
	padding: 6px 0 0;
}

/* ===================================================================
   CARTS TAB - filter bar + table
=================================================================== */

.smt-ac-filter-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	font-size: 13px;
}

.smt-ac-loading {
	text-align: center;
	padding: 24px !important;
	color: #888;
}

.smt-ac-status-badge {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
}

.smt-ac-status-active    { background: #fff3cd; color: #856404; }
.smt-ac-status-recovered { background: #d4edda; color: #155724; }
.smt-ac-status-cancelled { background: #f0f0f0; color: #555; }
.smt-ac-status-expired   { background: #f8d7da; color: #721c24; }

.smt-ac-pagination {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	font-size: 13px;
}
