/* Styles extracted from Amazon Sync Settings inline CSS */
.momcs-sync-settings-container {
	margin: 20px 0;
	padding: 0 20px;
}

.momcs-sync-settings-description {
	margin-bottom: 30px;
}

.momcs-sync-settings-data {
	border: none;
	border-radius: 0;
}

/* ============================================
   Sync Settings: Sidebar + Content Layout
   ============================================ */

/* Flex container: sidebar left, content right */
.momcs-sync-layout {
	display: flex;
	gap: 24px;
	min-height: 500px;
	align-items: flex-start;
}

/* Sidebar */
.momcs-sync-sidebar {
	width: 220px;
	min-width: 220px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 0;
	flex-shrink: 0;
	position: sticky;
	top: 32px;
	align-self: flex-start;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.momcs-sync-sidebar-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}

.momcs-sync-sidebar-item {
	margin: 0;
	padding: 0;
}

.momcs-sync-sidebar-link {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	text-decoration: none;
	color: #6b7280;
	font-size: 13px;
	font-weight: 400;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	border-right: 3px solid transparent;
	border-left: none;
	cursor: pointer;
	font-family: inherit;
	line-height: 1.4;
}

.momcs-sync-sidebar-link:hover {
	background: #f8f9fa;
	color: #1f2937;
	text-decoration: none;
}

.momcs-sync-sidebar-link:focus {
	text-decoration: none;
}

.momcs-sync-sidebar-item--active > .momcs-sync-sidebar-link {
	background: #fff7ed;
	color: #ea580c;
	border-right-color: #f97316;
	font-weight: 600;
}

.momcs-sync-sidebar-icon {
	display: inline-flex;
	align-items: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.momcs-sync-sidebar-icon svg {
	width: 16px;
	height: 16px;
}

/* Sub-navigation (indented children under Product Sync) */
.momcs-sync-sidebar-subnav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
}

.momcs-sync-sidebar-item--active .momcs-sync-sidebar-subnav {
	display: block;
}

.momcs-sync-sidebar-sublink {
	display: block;
	padding: 8px 20px 8px 52px;
	color: #64748b;
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.momcs-sync-sidebar-sublink:hover {
	color: #ea580c;
	background: #fff7ed;
	text-decoration: none;
}

.momcs-sync-sidebar-sublink:focus {
	text-decoration: none;
}

.momcs-sync-sidebar-sublink--active {
	color: #ea580c;
	font-weight: 600;
}

/* Content area – scoped to sync-settings layout so shared class isn't affected elsewhere */
.momcs-sync-layout > .momcs-sync-content {
	flex: 1;
	min-width: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.momcs-sync-content-panel {
	display: none;
}

.momcs-sync-content-panel--active {
	display: block;
}

/* Disabled sidebar item */
.momcs-sync-sidebar-link.momcs-disabled-link {
	color: #94a3b8;
	cursor: not-allowed;
	opacity: 0.7;
	pointer-events: none;
}

.momcs-sync-sidebar-link.momcs-disabled-link:hover {
	background: transparent;
	color: #94a3b8;
}

/* Premium badge in sidebar */
.momcs-sync-sidebar-link .momcs-premium-badge {
	margin-left: auto;
	font-size: 9px;
}

/* ── Responsive: sidebar collapses to horizontal strip ── */
@media (max-width: 782px) {
	.momcs-sync-layout {
		flex-direction: column;
		gap: 16px;
	}

	.momcs-sync-sidebar {
		width: 100%;
		min-width: 100%;
		padding: 8px;
		position: static;
		max-height: none;
		display: flex;
		flex-wrap: wrap;
	}

	.momcs-sync-sidebar-nav {
		display: flex;
		overflow-x: auto;
		white-space: nowrap;
		width: 100%;
	}

	.momcs-sync-sidebar-item {
		flex-shrink: 0;
	}

	.momcs-sync-sidebar-link {
		border-right: none;
		border-bottom: 2px solid transparent;
		border-radius: 6px;
		padding: 6px 12px;
		width: auto;
		font-size: 12px;
	}

	.momcs-sync-sidebar-item--active > .momcs-sync-sidebar-link {
		border-right-color: transparent;
		border-bottom-color: #f97316;
	}

	.momcs-sync-sidebar-subnav {
		display: none !important;
	}
}

/* ── Sidebar Save Button ──────────────────────────────────────── */
.momcs-sidebar-save-bar {
	padding: 20px 20px 8px;
}

.momcs-sidebar-save-bar .button-primary {
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
	border-color: #ea580c !important;
	color: #fff !important;
	padding: 8px 24px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	cursor: pointer;
	width: 100%;
	text-align: center;
	transition: all 0.2s ease;
}

.momcs-sidebar-save-bar .button-primary:hover {
	background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
	border-color: #c2410c !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.momcs-sidebar-save-bar .button-primary:disabled {
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
	border-color: #ea580c !important;
	color: #fff !important;
	opacity: 0.9;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* ============================================
   Content Sections (used inside sidebar panels)
   ============================================ */

.momcs-sync-settings-section {
	margin-bottom: 30px;
}

.momcs-sync-settings-section h3 {
	margin-top: 0;
}

/* ============================================
   Shared Section Header – Icon Badge Style
   ============================================ */

.momcs-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.momcs-section-header h3 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
}

.momcs-section-header h3 .momcs-premium-badge {
	margin-left: 0;
}

.momcs-section-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
	color: #ea580c;
	flex-shrink: 0;
}

/* ============================================
   Price Markup – Modern Card Layout
   ============================================ */

.momcs-price-markup-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.momcs-price-markup-header h3 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
}

.momcs-price-markup-header h3 .momcs-premium-badge {
	margin-left: 0;
}

.momcs-price-markup-header-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
	color: #ea580c;
	flex-shrink: 0;
}

.momcs-price-markup-fields {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.momcs-price-markup-field {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.momcs-price-markup-label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
}

.momcs-price-markup-select,
.momcs-price-markup-input {
	width: 100% !important;
	max-width: 100% !important;
	padding: 10px 14px !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 10px !important;
	font-size: 14px !important;
	color: #1e293b !important;
	background-color: #fff !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	-webkit-appearance: none;
	appearance: none;
	height: auto !important;
	line-height: 1.5 !important;
}

.momcs-price-markup-select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2.22 4.47a.75.75 0 0 1 1.06 0L6 7.19l2.72-2.72a.75.75 0 1 1 1.06 1.06L6.53 8.78a.75.75 0 0 1-1.06 0L2.22 5.53a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px !important;
	padding-right: 36px !important;
}

.momcs-price-markup-select:focus,
.momcs-price-markup-input:focus {
	border-color: #f97316 !important;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12) !important;
	outline: none !important;
}

.momcs-price-markup-select:hover,
.momcs-price-markup-input:hover {
	border-color: #cbd5e1 !important;
}

/* Shimmer overrides inside price markup fields */
.momcs-price-markup-field .momcs-field-shimmer.shimmer-select,
.momcs-price-markup-field .momcs-field-shimmer.shimmer-input {
	width: 100%;
	max-width: 100%;
	height: 42px;
	border-radius: 10px;
}

@media (max-width: 600px) {
	.momcs-price-markup-fields {
		flex-direction: column;
	}
}

.momcs-validation-errors {
	margin-top: 20px;
}

/* Shimmer loading effect for input fields */
.momcs-field-shimmer {
	position: relative;
	overflow: hidden;
	background: #f6f7f8;
	border-radius: 4px;
}

.momcs-field-shimmer::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0,
		rgba(255, 255, 255, 0.2) 20%,
		rgba(255, 255, 255, 0.5) 60%,
		rgba(255, 255, 255, 0)
	);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	100% {
		transform: translateX(100%);
	}
}

/* Shimmer placeholder for select and input */
.momcs-field-shimmer.shimmer-select {
	height: 28px;
	width: 100%;
	max-width: 25em;
	display: inline-block;
}

.momcs-field-shimmer.shimmer-input {
	height: 28px;
	width: 100%;
	max-width: 25em;
	display: inline-block;
}

/* Hide actual fields while loading */
.momcs-field-loading .form-field-input {
	display: none;
}

.momcs-field-loading .momcs-field-shimmer {
	display: inline-block;
}

/* Hide shimmers when not loading */
.momcs-field-loading:not(.momcs-field-loading) .momcs-field-shimmer,
td:not(.momcs-field-loading) .momcs-field-shimmer {
	display: none !important;
}

/* ============================================
   Premium/Disabled Tab and Panel Styles
   ============================================ */

/* Disabled tab styling */
.momcs-sync-settings-tabs li.momcs-tab-disabled {
	position: relative;
}

.momcs-sync-settings-tabs li.momcs-tab-disabled a {
	color: #999;
	cursor: not-allowed;
	opacity: 0.7;
}

.momcs-sync-settings-tabs li.momcs-tab-disabled a:hover {
	color: #999;
	background: transparent;
	border-bottom-color: transparent;
}

/* Disabled link - prevent click */
.momcs-disabled-link {
	pointer-events: none;
}

/* Premium badge */
.momcs-premium-badge {
	display: inline-block;
	background: linear-gradient(135deg, #f9a825 0%, #ff6f00 100%);
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 8px;
	text-transform: uppercase;
	vertical-align: middle;
	line-height: 1.4;
}

/* Disabled panel styling */
.momcs-sync-settings-panel.momcs-panel-disabled {
	position: relative;
}

/* Disabled section with overlay */
.momcs-disabled-section {
	position: relative;
	min-height: 200px;
}

/* Premium overlay */
.momcs-premium-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.92);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
}

.momcs-premium-overlay-content {
	text-align: center;
	padding: 30px;
	max-width: 400px;
}

.momcs-premium-overlay-content .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #ff6f00;
	margin-bottom: 15px;
}

.momcs-premium-overlay-content h4 {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #23282d;
}

.momcs-premium-overlay-content p {
	margin: 0 0 20px 0;
	color: #666;
	font-size: 14px;
}

.momcs-premium-overlay-content .button-primary {
	background: linear-gradient(135deg, #f9a825 0%, #ff6f00 100%);
	border-color: #ff6f00;
	text-shadow: none;
	box-shadow: 0 2px 8px rgba(255, 111, 0, 0.3);
	padding: 8px 24px;
	font-size: 14px;
	transition: all 0.2s ease;
}

.momcs-premium-overlay-content .button-primary:hover {
	background: linear-gradient(135deg, #ff6f00 0%, #f57c00 100%);
	border-color: #f57c00;
	box-shadow: 0 4px 12px rgba(255, 111, 0, 0.4);
	transform: translateY(-1px);
}

/* Disabled content behind overlay */
.momcs-disabled-content {
	opacity: 0.5;
	pointer-events: none;
	filter: grayscale(30%);
}

.momcs-disabled-content input,
.momcs-disabled-content select,
.momcs-disabled-content textarea,
.momcs-disabled-content button {
	background-color: #f5f5f5 !important;
	cursor: not-allowed !important;
}

/* ============================================
   Custom Radio Buttons for Account Type (card layout)
   ============================================ */

.momcs-account-type-fieldset {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 15px;
}

.momcs-account-type-option {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	flex: 1;
	min-width: 200px;
	max-width: 320px;
}

.momcs-account-type-option .momcs-radio-label.momcs-account-type-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 16px 18px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	background: #fff;
	position: relative;
}

.momcs-account-type-option .momcs-radio-label.momcs-account-type-card:hover {
	border-color: #ff6f00;
	background: #fff8f0;
}

.momcs-account-type-fieldset input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.momcs-account-type-option .momcs-radio-label.momcs-account-type-card:has(input[type="radio"]:checked) {
	border-color: #ff6f00;
	background: #fff8f0;
	box-shadow: 0 0 0 1px #ff6f00;
}

.momcs-account-type-card-header {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.momcs-account-type-fieldset .momcs-radio-text {
	font-size: 15px;
	font-weight: 600;
	color: #475569;
	transition: color 0.2s ease;
	line-height: 1.3;
}

.momcs-account-type-option .momcs-radio-label:has(input[type="radio"]:checked) .momcs-radio-text {
	color: #1e293b;
}

.momcs-account-type-fieldset .momcs-radio-indicator {
	display: inline-flex;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.momcs-account-type-option .momcs-radio-label:has(input[type="radio"]:checked) .momcs-radio-indicator {
	border-color: #ff6f00;
	background: #ff6f00;
	box-shadow: inset 0 0 0 3px #fff;
}

.momcs-account-type-fieldset .momcs-account-type-desc {
	display: block;
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.momcs-account-type-option .momcs-radio-label:has(input[type="radio"]:checked) .momcs-account-type-desc {
	color: #475569;
}

.momcs-account-type-option .momcs-field-tooltip-wrapper.momcs-account-type-tooltip {
	align-self: flex-start;
}

/* Shimmer for FBA/FBM account type radio buttons (horizontal card layout) */
.momcs-account-type-shimmer {
	display: flex;
	flex-direction: row;
	gap: 15px;
}

.momcs-account-type-shimmer-bar {
	position: relative;
	overflow: hidden;
	height: 72px;
	flex: 1;
	min-width: 200px;
	max-width: 320px;
	border-radius: 8px;
	background: #f0f0f0;
	border: 2px solid #e2e8f0;
}

.momcs-account-type-shimmer-bar::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0,
		rgba(255, 255, 255, 0.4) 40%,
		rgba(255, 255, 255, 0.6) 60%,
		rgba(255, 255, 255, 0)
	);
	animation: momcs-account-type-shimmer 1.5s infinite;
}

@keyframes momcs-account-type-shimmer {
	100% {
		transform: translateX(100%);
	}
}
