/* Color customizer floating panel - AdrianToro Admin Palette */

#atac-color-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100100;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	background: #1d2327;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	display: grid;
	place-items: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#atac-color-fab:hover,
#atac-color-fab:focus {
	transform: scale(1.06);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

#atac-color-fab svg {
	width: 22px;
	height: 22px;
	display: block;
}

#atac-color-panel {
	position: fixed;
	right: 24px;
	bottom: 88px;
	z-index: 100101;
	width: min(360px, calc(100vw - 32px));
	max-height: min(72vh, 640px);
	overflow: auto;
	background: #fff;
	color: #1d2327;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#atac-color-panel[hidden],
#atac-color-fab[hidden] {
	display: none !important;
}

.atac-panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 8px;
	border-bottom: 1px solid #e2e4e7;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.atac-panel-header h2 {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 1.3;
}

.atac-panel-header p {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #646970;
}

.atac-panel-close {
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #50575e;
	padding: 0 4px;
}

.atac-panel-body {
	padding: 12px 16px 16px;
}

.atac-panel-section-title {
	margin: 8px 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #646970;
}

.atac-presets {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 14px;
}

.atac-preset {
	border: 1px solid #dcdcde;
	background: #f6f7f7;
	border-radius: 8px;
	padding: 8px;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.atac-preset:hover,
.atac-preset:focus,
.atac-preset.is-active {
	border-color: #2271b1;
	background: #f0f6fc;
}

.atac-preset-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 6px;
}

.atac-preset-swatches {
	display: flex;
	gap: 4px;
}

.atac-preset-swatches span {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.atac-fields {
	display: grid;
	gap: 10px;
	margin-bottom: 14px;
}

.atac-field {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 8px;
}

.atac-field label {
	font-size: 13px;
}

.atac-field-controls {
	display: flex;
	align-items: center;
	gap: 6px;
}

.atac-field input[type="color"] {
	width: 36px;
	height: 32px;
	padding: 0;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
}

.atac-field input[type="text"] {
	width: 88px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
}

.atac-panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.atac-panel-status {
	min-height: 18px;
	margin-top: 10px;
	font-size: 12px;
	color: #1e7e34;
}

.atac-panel-status.is-error {
	color: #b32d2e;
}

@media (max-width: 782px) {
	#atac-color-fab {
		right: 16px;
		bottom: 16px;
	}

	#atac-color-panel {
		right: 12px;
		left: 12px;
		width: auto;
		bottom: 76px;
	}
}
