/**
 * Export Channels - WooCommerce Account Page
 * Uses WordPress theme.json color presets for perfect theme integration
 */

.wdevs-customer-order-export .export-channel {
	margin-bottom: 1.25rem;
}

.wdevs-customer-order-export details {
	background: var(--wp--preset--color--background, #fff);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--foreground, #000) 15%, transparent);
	border-radius: 4px;
	overflow: hidden;
	transition: all 0.15s ease;
}

.wdevs-customer-order-export details:hover {
	border-color: color-mix(in srgb, var(--wp--preset--color--foreground, #000) 25%, transparent);
}

.wdevs-customer-order-export details[open] {
	border-color: var(--wp--preset--color--primary, #1e85be);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--primary, #1e85be) 10%, transparent);
}

.wdevs-customer-order-export summary {
	padding: 1rem 1.25rem;
	background: color-mix(in srgb, var(--wp--preset--color--foreground, #000) 3%, var(--wp--preset--color--background, #fff));
	color: var(--wp--preset--color--foreground, #000);
	cursor: pointer;
	font-weight: bold;
	border-bottom: 1px solid transparent;
	transition: background-color 0.15s ease;
	user-select: none;
}

.wdevs-customer-order-export summary:hover {
	background: color-mix(in srgb, var(--wp--preset--color--foreground, #000) 6%, var(--wp--preset--color--background, #fff));
}

.wdevs-customer-order-export details[open] summary {
	background: var(--wp--preset--color--background, #fff);
	border-bottom-color: color-mix(in srgb, var(--wp--preset--color--foreground, #000) 15%, transparent);
}

.wdevs-customer-order-export .channel-content {
	padding: 1.5rem 1.25rem;
}

.wdevs-customer-order-export .channel-description {
	margin-bottom: 1.25rem;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #000) 70%, transparent);
}

.wdevs-customer-order-export .channel-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.wdevs-customer-order-export .channel-actions p {
	margin: 0;
	color: color-mix(in srgb, var(--wp--preset--color--foreground, #000) 70%, transparent);
}

.wdevs-customer-order-export .button.disabled {
	cursor: default;
	pointer-events: none;
	opacity: 0.6;
}


/* Channel input with button layout */
.wdevs-coe-input-button-group {
	display: flex;
	gap: 0.5rem;
	align-items: stretch;
}

.wdevs-coe-input-button-group input {
	flex: 1;
	margin: 0;
}

/* Channel setup instructions styling */
.wdevs-coe-channel-instructions > ol {
	counter-reset: step-counter;
}

.wdevs-coe-channel-instructions > ol > li {
	margin-bottom: 1rem;
	padding-left: 0.5rem;
}

.wdevs-coe-channel-instructions > ol > li strong {
	color: var(--wp--preset--color--primary, #1e85be);
}

.wdevs-coe-channel-instructions ol ol {
	margin: 0.5rem 0;
	padding-left: 1.5rem;
}

.wdevs-coe-channel-instructions ol ol li {
	margin-bottom: 0.25rem;
}

.wdevs-coe-channel-instructions .form-row {
	margin: 0.5rem 0;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 0.75rem;
}

/* Channel status badges */
.wdevs-customer-order-export .channel-status-badge {
	display: inline-block;
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 12px;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	margin-left: 0.5rem;
}

.wdevs-customer-order-export .channel-status-badge.connected {
	background: color-mix(in srgb, var(--wc-green, #7ad03a) 15%, transparent);
	color: var(--wc-green, #7ad03a);
	border: 1px solid color-mix(in srgb, var(--wc-green, #7ad03a) 30%, transparent);
}

.wdevs-customer-order-export .channel-status-badge.disconnected {
	background: color-mix(in srgb, var(--wc-red, #a00) 15%, transparent);
	color: var(--wc-red, #a00);
	border: 1px solid color-mix(in srgb, var(--wc-red, #a00) 30%, transparent);
}

.wdevs-coe-selected-folder {
    background: var(--wp--preset--color--primary, #1e85be) !important;
    color: white !important;
    border-radius: 3px !important;
    font-weight: 500 !important;
}
.wdevs-coe-selected-folder:hover {
    background: var(--wp--preset--color--primary, #1e85be) !important;
    color: white !important;
}