/* ACS Contact Form Admin Styles */

.acs-cf-admin-wrap {
	max-width: 800px;
}

.acs-cf-section {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.acs-cf-section h3 {
	margin-top: 0;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
	font-size: 16px;
}

/* Field Order */
.acs-cf-order-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.acs-cf-order-item {
	display: grid;
	grid-template-columns: 28px minmax(140px, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #f9f9f9;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	cursor: grab;
}

.acs-cf-order-item.is-dragging {
	opacity: 0.55;
	cursor: grabbing;
}

.acs-cf-order-handle {
	color: #787c82;
	font-size: 16px;
	text-align: center;
}

.acs-cf-order-label {
	font-weight: 600;
}

.acs-cf-order-type {
	background: #eef4ff;
	color: #1d4f91;
	border-radius: 999px;
	font-size: 11px;
	padding: 3px 8px;
	white-space: nowrap;
}

.acs-cf-order-controls {
	display: flex;
	gap: 4px;
}

/* Toggle Switch */
.acs-cf-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.acs-cf-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.acs-cf-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 24px;
}

.acs-cf-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked + .acs-cf-slider {
	background-color: #0071e3;
}

input:focus + .acs-cf-slider {
	box-shadow: 0 0 1px #0071e3;
}

input:checked + .acs-cf-slider:before {
	transform: translateX(20px);
}

/* Field Table */
.acs-cf-field-table {
	width: 100%;
}

.acs-cf-field-table th {
	text-align: left;
	padding: 10px 0;
}

.acs-cf-field-table td {
	padding: 8px 0;
	vertical-align: middle;
}

/* Custom Fields */
.acs-cf-custom-field-item {
	border: 1px solid #e5e5e5;
	background: #f9f9f9;
	margin-bottom: 15px;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.acs-cf-cf-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	background: #f1f1f1;
	border-bottom: 1px solid #e5e5e5;
	border-radius: 4px 4px 0 0;
}

.acs-cf-cf-title {
	font-weight: 600;
}

.acs-cf-cf-controls button {
	margin-left: 5px;
}

.acs-cf-cf-body {
	padding: 15px;
}

.acs-cf-cf-body p {
	margin: 0 0 10px 0;
}

.acs-cf-design-wrap {
	padding: 5px;
}

.acs-cf-design-wrap input[type="number"] {
	width: 60px;
}

.acs-cf-tools-box p {
	margin: 0 0 12px;
}

.acs-cf-test-result {
	min-height: 20px;
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.5;
}

.acs-cf-test-result.is-loading {
	color: #646970;
}

.acs-cf-test-result.is-success {
	color: #008a20;
}

.acs-cf-test-result.is-error {
	color: #b32d2e;
}

.acs-cf-admin-links a {
	display: inline-block;
	margin-bottom: 6px;
}

/* ---- Inbox screens (v2.0.0) ---- */
.acs-cf-filters { margin: 12px 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acs-cf-entry-table tr.acs-cf-status-new td { background: #fffdf5; }
.acs-cf-entry-table td .description { color: #646970; font-size: 12px; }
.acs-cf-detail-grid { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.acs-cf-detail-main { flex: 1 1 560px; min-width: 320px; }
.acs-cf-detail-side { flex: 0 1 300px; min-width: 260px; }
.acs-cf-detail-grid .postbox { margin-bottom: 16px; }
.acs-cf-detail-grid .postbox .hndle { padding: 8px 12px; font-size: 14px; }
.acs-cf-meta-list { margin: 0; }
.acs-cf-meta-list li { margin: 0 0 6px; word-break: break-all; }
.acs-cf-notes { margin: 0 0 16px; }
.acs-cf-notes li { border-left: 3px solid #dcdcde; padding: 4px 0 4px 10px; margin-bottom: 10px; }
.acs-cf-note-meta { color: #646970; font-size: 12px; display: block; }
.acs-cf-attachments li { margin-bottom: 4px; }
.acs-cf-settings .form-table textarea.code { font-family: Consolas, Monaco, monospace; font-size: 12px; }
.acs-cf-settings .nav-tab-wrapper { margin-bottom: 18px; }
.acs-cf-settings h2 { margin-top: 28px; }
