/**
 * ACF Field Copy/Paste Admin Styles
 * Uses centralized design variables from variables.css
 */

/* Copy/Paste Button Styles */
.acf-copy-field-btn,
.acf-copy-paste-field-btn {
	display: inline-block;
	margin-left: 5px;
	opacity: 0.7;
	transition: opacity var(--cnc-acf-transition-normal);
	cursor: pointer;
}

.acf-copy-field-btn:hover,
.acf-copy-paste-field-btn:hover {
	opacity: 1;
}

.acf-copy-field-btn i,
.acf-copy-paste-field-btn i {
	font-size: var(--cnc-acf-font-size-md);
}

/* Field actions area - ensure buttons are visible */
.acf-field-object .handle .acf-field-object-actions {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Notice styles */
.acf-notice {
	margin: 10px 0;
	padding: var(--cnc-acf-spacing-sm);
	border-left: 4px solid;
	background: var(--cnc-acf-white);
	box-shadow: var(--cnc-acf-shadow-xs);
}

.acf-notice.-success {
	border-left-color: var(--cnc-acf-success-color);
}

.acf-notice.-success p {
	color: var(--cnc-acf-success-color);
}

.acf-notice.-error {
	border-left-color: var(--cnc-acf-danger-color);
}

.acf-notice.-error p {
	color: var(--cnc-acf-danger-color);
}

.acf-notice p {
	margin: 0;
	font-weight: var(--cnc-acf-font-weight-semibold);
}

/* Tooltip styles */
.acf-copy-field-btn[title]:hover::after,
.acf-copy-paste-field-btn[title]:hover::after {
	content: attr(title);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding: 5px 10px;
	background: var(--cnc-acf-dark-text);
	color: var(--cnc-acf-white);
	font-size: var(--cnc-acf-font-size-xs);
	white-space: nowrap;
	border-radius: var(--cnc-acf-radius-sm);
	margin-bottom: 5px;
	z-index: var(--cnc-acf-z-tooltip);
}

/* Icon color adjustments */
.acf-copy-field-btn i {
	color: var(--cnc-acf-info-color);
}

.acf-copy-paste-field-btn i {
	color: var(--cnc-acf-success-color);
}

/* Global Paste Button Styles */
.acf-global-paste-btn,
.acf-empty-paste-btn,
.acf-layout-paste-btn {
	background: linear-gradient(135deg, #6167F8 0%, #9966FF 100%) !important;
	border: none !important;
	color: white !important;
	margin-left: 8px;
	transition: all 0.25s ease !important;
	box-shadow: 0 4px 12px rgba(97, 103, 248, 0.3);
}

.acf-global-paste-btn:hover,
.acf-empty-paste-btn:hover,
.acf-layout-paste-btn:hover {
	background: linear-gradient(135deg, #5058E0 0%, #8855EE 100%) !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(97, 103, 248, 0.45);
	color: white !important;
}

.acf-global-paste-btn:active,
.acf-empty-paste-btn:active,
.acf-layout-paste-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(97, 103, 248, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {

	.acf-copy-field-btn,
	.acf-copy-paste-field-btn {
		margin-left: 3px;
	}

	.acf-field-object .handle .acf-field-object-actions {
		gap: 3px;
	}
}