/**
 * Admin CSS for Custom Animated Preloader
 * Matches the SmartWait Animated Preloader reference design.
 */

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
	--swap-primary: #5170ff;
	--swap-primary-hover: #3d5ce6;
	--swap-gradient: linear-gradient(135deg, #330066, #5170ff);
	--swap-gradient-hover: linear-gradient(135deg, #220044, #3d5ce6);
	--swap-bg: #f5f7f8;
	--swap-text: #0f172a;
	--swap-text-secondary: #64748b;
	--swap-border: #e2e8f0;
	--swap-white: #ffffff;
	--swap-radius: 12px;
	--swap-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ============================================================
   Global Wrapper / Reset
   ============================================================ */
.swap-dashboard-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
	color: var(--swap-text);
	background: var(--swap-bg);
	margin: 20px 20px 0 0;
	min-height: calc(100vh - 100px);
	-webkit-font-smoothing: antialiased;
}

.swap-dashboard-wrap *,
.swap-dashboard-wrap *::before,
.swap-dashboard-wrap *::after {
	box-sizing: border-box;
}

.swap-layout-container {
	max-width: 1200px;
	margin: 0 auto;
}

/* ============================================================
   Header
   ============================================================ */
.swap-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--swap-white);
	padding: 12px 24px;
	border-bottom: 1px solid var(--swap-border);
}

.swap-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--swap-primary);
}

.swap-logo-icon {
	width: 32px;
	height: 32px;
	background: rgba(11, 149, 218, 0.1);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swap-logo-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: var(--swap-primary);
}

.swap-header h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: var(--swap-text);
	letter-spacing: -0.02em;
}

.swap-header-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.swap-btn-primary-header {
	background: var(--swap-gradient);
	color: white;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s;
	display: inline-flex;
	align-items: center;
}

.swap-btn-primary-header:hover {
	background: var(--swap-gradient-hover);
	color: white;
}

.swap-user-avatar {
	width: 40px;
	height: 40px;
	background: #e5e7eb;
	border-radius: 50%;
	border: 1px solid var(--swap-border);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}

/* ============================================================
   Navigation Bar
   ============================================================ */
.swap-nav-bar {
	background: var(--swap-white);
	border-bottom: 1px solid var(--swap-border);
	padding: 0 24px;
}

.swap-nav-scroll {
	display: flex;
	overflow-x: auto;
	gap: 32px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.swap-nav-scroll::-webkit-scrollbar {
	display: none;
}

.swap-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-bottom: 3px solid transparent;
	color: var(--swap-text-secondary);
	padding: 16px 0 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s, border-color 0.2s;
	flex-shrink: 0;
	outline: none;
	background: none;
	border-top: none;
	border-left: none;
	border-right: none;
	cursor: pointer;
}

.swap-nav-item:hover,
.swap-nav-item:focus {
	color: var(--swap-primary);
	outline: none;
	box-shadow: none;
}

.swap-nav-item.active {
	border-bottom-color: var(--swap-primary);
	color: var(--swap-primary);
}

.swap-nav-item.active p {
	font-weight: 700;
}

.swap-nav-item p {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
}

/* ============================================================
   Tab Content
   ============================================================ */
.swap-tab-content {
	display: none;
	animation: swap-fade-in 0.25s ease;
}

.swap-tab-content.active {
	display: block;
}

@keyframes swap-fade-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================================
   Main Content Area – hidden form wrapper
   ============================================================ */
.swap-main {
	padding: 32px 24px;
}

/* ============================================================
   Grid Layout (Dashboard Overview)
   ============================================================ */
.swap-grid-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
}

.swap-col-main {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

/* ============================================================
   Welcome Card (White, clean – NOT purple gradient)
   ============================================================ */
.swap-welcome-card {
	background: var(--swap-white);
	border-radius: var(--swap-radius);
	border: 1px solid var(--swap-border);
	padding: 32px;
	position: relative;
	overflow: hidden;
}

.swap-welcome-inner {
	display: flex;
	gap: 32px;
	align-items: center;
}

.swap-welcome-text {
	flex: 1;
}

.swap-welcome-text h1 {
	font-size: 28px;
	font-weight: 900;
	line-height: 1.2;
	margin: 0 0 16px 0;
	color: var(--swap-text);
	letter-spacing: -0.02em;
}

/* ============================================================
   Toggle Switch (iOS Style)
   ============================================================ */
.swap-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.swap-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.swap-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e1;
	transition: .4s;
	border-radius: 24px;
}

.swap-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked+.swap-slider {
	background: var(--swap-gradient);
}

input:focus+.swap-slider {
	box-shadow: 0 0 1px var(--swap-primary);
}

input:checked+.swap-slider:before {
	transform: translateX(20px);
}

.swap-welcome-text p {
	font-size: 16px;
	color: var(--swap-text-secondary);
	margin: 0 0 24px 0;
	line-height: 1.6;
}

.swap-btn-primary {
	background: var(--swap-gradient);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s, transform 0.15s;
}

.swap-btn-primary:hover {
	background: var(--swap-gradient-hover);
	transform: translateY(-1px);
}

.swap-btn-primary .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.swap-welcome-illustration {
	width: 200px;
	flex-shrink: 0;
}

.swap-illustration-box {
	width: 100%;
	aspect-ratio: 1;
	background: linear-gradient(135deg, rgba(11, 149, 218, 0.06) 0%, rgba(11, 149, 218, 0.12) 100%);
	border-radius: 16px;
	border: 1px solid var(--swap-border);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.swap-illustration-box .dashicons {
	font-size: 60px;
	width: 60px;
	height: 60px;
	color: rgba(11, 149, 218, 0.35);
}

/* ============================================================
   Guide Card (How to Start) – Vertical stepper
   ============================================================ */
.swap-guide-card {
	background: var(--swap-white);
	border-radius: var(--swap-radius);
	border: 1px solid var(--swap-border);
	padding: 32px;
}

.swap-guide-card h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 24px 0;
	color: var(--swap-text);
}

.swap-steps {
	display: flex;
	flex-direction: column;
}

.swap-step-item {
	display: flex;
	gap: 16px;
}

.swap-step-track {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.swap-step-num {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	z-index: 1;
	flex-shrink: 0;
}

.swap-step-num.filled {
	background: var(--swap-gradient);
	color: white;
	box-shadow: 0 0 0 4px rgba(11, 149, 218, 0.1);
}

.swap-step-num.outlined {
	background: var(--swap-white);
	color: var(--swap-primary);
	border: 2px solid var(--swap-primary);
}

.swap-step-line {
	width: 2px;
	flex: 1;
	background: var(--swap-border);
	margin-top: 8px;
	margin-bottom: -24px;
	min-height: 20px;
}

.swap-step-last .swap-step-line {
	display: none;
}

.swap-step-body {
	flex: 1;
	padding-bottom: 32px;
}

.swap-step-last .swap-step-body {
	padding-bottom: 0;
}

.swap-step-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.swap-step-header h3 {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: var(--swap-text);
}

.swap-step-icon {
	color: var(--swap-primary);
	font-size: 20px !important;
	width: 20px !important;
	height: 20px !important;
	opacity: 0.6;
	transition: opacity 0.2s, transform 0.2s;
}

.swap-step-item:hover .swap-step-icon {
	opacity: 1;
	transform: scale(1.1);
}

.swap-step-body p {
	margin: 6px 0 0;
	color: var(--swap-text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

/* ============================================================
   Sidebar
   ============================================================ */
.swap-col-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* More Plugins Card */
.swap-more-apps-card {
	background: var(--swap-white);
	border-radius: var(--swap-radius);
	border: 1px solid var(--swap-border);
	padding: 24px;
}

.swap-more-apps-card h2 {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 20px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--swap-text);
}

.swap-apps-icon {
	color: var(--swap-primary);
	font-size: 20px !important;
	width: 20px !important;
	height: 20px !important;
}

.swap-more-apps-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.swap-app-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid #f1f5f9;
	transition: background 0.2s;
}

.swap-app-item:hover {
	background: #f8fafc;
}

.swap-app-icon {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.swap-app-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.swap-app-icon.green {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
}

.swap-app-icon.green .dashicons {
	color: #10b981;
}

.swap-app-icon.amber {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
}

.swap-app-icon.amber .dashicons {
	color: #f59e0b;
}

.swap-app-icon.blue {
	background: rgba(11, 149, 218, 0.1);
	color: var(--swap-primary);
}

.swap-app-icon.blue .dashicons {
	color: var(--swap-primary);
}

.swap-app-details {
	flex: 1;
	min-width: 0;
}

.swap-app-name {
	margin: 0 0 4px 0;
	font-weight: 700;
	font-size: 14px;
	color: var(--swap-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.swap-app-link {
	font-size: 12px;
	color: var(--swap-primary);
	text-decoration: none;
	font-weight: 700;
}

.swap-app-link:hover {
	text-decoration: underline;
}

/* Status-specific link colors */
.swap-app-link.active {
	color: #10b981;
	pointer-events: none;
	cursor: default;
}

.swap-app-link.activate {
	color: #f59e0b;
}

.swap-more-apps-footer {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--swap-border);
	text-align: center;
}

.swap-view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--swap-primary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
}

.swap-view-all-link:hover {
	gap: 10px;
	color: var(--swap-gradient-hover);
}

.swap-view-all-link .dashicons {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
}


/* Upgrade to Pro Card – Blue gradient */
.swap-upgrade-card {
	background: var(--swap-gradient);
	color: white;
	border-radius: var(--swap-radius);
	padding: 24px;
}

.swap-upgrade-card h3 {
	color: white;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px 0;
}

.swap-upgrade-card>p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	margin: 0 0 16px 0;
}

.swap-upgrade-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 24px 0;
}

.swap-upgrade-card li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 8px;
}

.swap-upgrade-card li .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: white;
}

.swap-btn-upgrade {
	width: 100%;
	background: white;
	color: var(--swap-primary);
	font-weight: 700;
	font-size: 14px;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.swap-btn-upgrade:hover {
	background: #f1f5f9;
}

/* ============================================================
   Resources Grid (Support & Resources Footer)
   ============================================================ */
.swap-resources-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 40px;
}

.swap-resource-card {
	background: var(--swap-white);
	border: 1px solid var(--swap-border);
	border-radius: var(--swap-radius);
	padding: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.swap-resource-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
	border-color: rgba(11, 149, 218, 0.4);
}

.swap-resource-icon {
	width: 48px;
	height: 48px;
	background: #f1f5f9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: var(--swap-text-secondary);
	transition: background 0.2s, color 0.2s;
}

.swap-resource-card:hover .swap-resource-icon {
	background: rgba(11, 149, 218, 0.1);
	color: var(--swap-primary);
}

.swap-resource-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.swap-resource-card h4 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--swap-text);
}

.swap-resource-card p {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--swap-text-secondary);
}

/* ============================================================
   Copyright Footer
   ============================================================ */
.swap-copyright-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
	padding: 24px 0;
	border-top: 1px solid var(--swap-border);
	font-size: 14px;
	color: var(--swap-text-secondary);
}

.swap-copyright-footer p {
	margin: 0;
}

.swap-footer-links {
	display: flex;
	gap: 24px;
}

.swap-footer-links a {
	color: var(--swap-text-secondary);
	text-decoration: none;
	transition: color 0.2s;
}

.swap-footer-links a:hover {
	color: var(--swap-primary);
}

/* ============================================================
   Settings Forms (Other Tabs)
   ============================================================ */
.swap-settings-card {
	background: var(--swap-white);
	border-radius: var(--swap-radius);
	border: 1px solid var(--swap-border);
	padding: 24px;
	margin-bottom: 24px;
}

.swap-settings-card h3 {
	margin-top: 0;
	border-bottom: 1px solid var(--swap-border);
	padding-bottom: 16px;
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 700;
}

/* ============================================================
   Spinner Grid & Cards (Style Tab)
   ============================================================ */
.swap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.swap-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	display: block;
	position: relative;
}

.swap-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.swap-card.selected {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 1px var(--swap-primary);
}

.swap-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	z-index: -1;
}

.swap-card-preview {
	height: 120px;
	background: #f6f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swap-card-footer {
	padding: 10px;
	font-size: 13px;
	text-align: center;
	border-top: 1px solid #eee;
	color: #555;
}

/* ============================================================
   Spinners in Admin Preview
   ============================================================ */
.swap-spinner {
	margin: 0;
	display: inline-block;
	position: relative;
	border-top-color: #333;
	background-color: #333;
}

.swap-spinner.circle {
	width: 50px;
	height: 50px;
	border: 3px solid #ddd;
	border-radius: 50%;
	border-top-color: #333;
	background-color: transparent;
	animation: swap-spin 1s ease-in-out infinite;
}

.swap-spinner.square {
	width: 40px;
	height: 40px;
	background-color: #333;
	animation: swap-rotate-plane 1.2s infinite ease-in-out;
}

.swap-spinner.pulse {
	width: 50px;
	height: 50px;
	background-color: #333;
	border-radius: 50%;
	animation: swap-pulse 1.2s infinite ease-in-out;
}

.swap-spinner.dots {
	width: 70px;
	height: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
}

.swap-spinner.dots div {
	width: 15px;
	height: 15px;
	background-color: #333;
	border-radius: 100%;
	display: inline-block;
	animation: swap-bouncedelay 1.4s infinite ease-in-out both;
}

.swap-spinner.dots div:nth-child(1) {
	animation-delay: -0.32s;
}

.swap-spinner.dots div:nth-child(2) {
	animation-delay: -0.16s;
}

.swap-spinner.bar {
	width: 50px;
	height: 35px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
}

.swap-spinner.bar div {
	background-color: #333;
	height: 100%;
	width: 5px;
	animation: swap-stretchdelay 1.2s infinite ease-in-out;
}

.swap-spinner.bar div:nth-child(2) {
	animation-delay: -1.1s;
}

.swap-spinner.bar div:nth-child(3) {
	animation-delay: -1.0s;
}

.swap-spinner.bar div:nth-child(4) {
	animation-delay: -0.9s;
}

.swap-spinner.bar div:nth-child(5) {
	animation-delay: -0.8s;
}

.swap-spinner.wave {
	width: 50px;
	height: 35px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
}

.swap-spinner.wave div {
	background-color: #333;
	height: 100%;
	width: 5px;
	border-radius: 3px;
	animation: swap-wave 1s infinite ease-in-out;
}

.swap-spinner.wave div:nth-child(1) {
	animation-delay: -0.4s;
}

.swap-spinner.wave div:nth-child(2) {
	animation-delay: -0.3s;
}

.swap-spinner.wave div:nth-child(3) {
	animation-delay: -0.2s;
}

.swap-spinner.wave div:nth-child(4) {
	animation-delay: -0.1s;
}

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes swap-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes swap-rotate-plane {
	0% {
		transform: perspective(120px) rotateX(0deg) rotateY(0deg);
	}

	50% {
		transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
	}

	100% {
		transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
	}
}

@keyframes swap-pulse {
	0% {
		transform: scale(0);
	}

	100% {
		transform: scale(1.0);
		opacity: 0;
	}
}

@keyframes swap-bouncedelay {

	0%,
	80%,
	100% {
		transform: scale(0);
	}

	40% {
		transform: scale(1.0);
	}
}

@keyframes swap-stretchdelay {

	0%,
	40%,
	100% {
		transform: scaleY(0.4);
	}

	20% {
		transform: scaleY(1.0);
	}
}

@keyframes swap-wave {

	0%,
	100% {
		transform: scaleY(0.4);
	}

	50% {
		transform: scaleY(1.0);
	}
}

/* ============================================================
   Toggle Switch
   ============================================================ */
.switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 24px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
}

.slider::before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .4s;
}

input:checked+.slider {
	background: var(--swap-gradient);
}

input:focus+.slider {
	box-shadow: 0 0 1px var(--swap-primary);
}

input:checked+.slider::before {
	transform: translateX(24px);
}

.slider.round {
	border-radius: 24px;
}

.slider.round::before {
	border-radius: 50%;
}

/* ============================================================
   Range Slider
   ============================================================ */
.swap-range-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
}

.swap-range-value {
	font-weight: 600;
	min-width: 40px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.swap-grid-layout {
		grid-template-columns: 1fr;
	}

	.swap-resources-grid {
		grid-template-columns: 1fr;
	}

	.swap-welcome-inner {
		flex-direction: column;
	}

	.swap-welcome-illustration {
		width: 100%;
		max-width: 200px;
	}

	.swap-copyright-footer {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}
}

/* ============================================================
   General Tab – Section Header
   ============================================================ */
.swap-section-header {
	margin-bottom: 24px;
}

.swap-section-header h2 {
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 4px 0;
	color: var(--swap-text);
	letter-spacing: -0.02em;
}

.swap-section-desc {
	font-size: 14px;
	color: var(--swap-text-secondary);
	margin: 0;
}

.swap-section-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
}

/* ============================================================
   Modern Card Container
   ============================================================ */
.swap-modern-card {
	background: var(--swap-white);
	border-radius: var(--swap-radius);
	border: 1px solid var(--swap-border);
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ============================================================
   Setting Row (Two-column: label | field)
   ============================================================ */
.swap-setting-row {
	display: flex;
	gap: 32px;
	padding: 32px;
}

.swap-setting-row-border {
	border-bottom: 1px solid #f1f5f9;
}

.swap-setting-label-col {
	flex: 0 0 33.33%;
	max-width: 33.33%;
}

.swap-setting-label-col h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px 0;
	color: var(--swap-text);
}

.swap-setting-label-col p {
	font-size: 13px;
	color: var(--swap-text-secondary);
	margin: 0;
	line-height: 1.5;
}

.swap-setting-field-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ============================================================
   Toggle Card (e.g. Enable Preloader, Logged-in Users)
   ============================================================ */
.swap-toggle-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	padding: 20px;
	border-radius: 12px;
	border: 1px solid var(--swap-border);
}

.swap-toggle-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.swap-toggle-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--swap-text);
}

.swap-toggle-hint {
	font-size: 12px;
	color: var(--swap-text-secondary);
}

/* ============================================================
   Select / Inputs
   ============================================================ */
.swap-select {
	width: 100%;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--swap-text);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
}

.swap-select:focus {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 3px rgba(11, 149, 218, 0.12);
}

.swap-input {
	width: 100%;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--swap-text);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.swap-input:focus {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 3px rgba(11, 149, 218, 0.12);
}

.swap-textarea {
	width: 100%;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--swap-text);
	outline: none;
	resize: vertical;
	line-height: 1.5;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.swap-textarea:focus {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 3px rgba(11, 149, 218, 0.12);
}

/* Search Input with Icon */
.swap-search-input-wrap {
	position: relative;
}

.swap-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 18px !important;
	width: 18px !important;
	height: 18px !important;
	transition: color 0.2s;
}

.swap-search-input-wrap:focus-within .swap-search-icon {
	color: var(--swap-primary);
}

.swap-input-search {
	padding-left: 44px;
}

/* Number Input with Unit */
.swap-number-input-wrap {
	display: inline-flex;
	align-items: center;
	background: #f8fafc;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	overflow: hidden;
	width: fit-content;
}

.swap-input-number {
	width: 100px;
	background: transparent;
	border: none;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 16px;
}

.swap-input-number:focus {
	box-shadow: none;
}

.swap-number-unit {
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--swap-text-secondary);
	border-left: 1px solid var(--swap-border);
	background: #f1f5f9;
}

/* ============================================================
   Device Visibility Cards
   ============================================================ */
.swap-device-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.swap-device-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 12px;
	border-radius: 12px;
	border: 2px solid var(--swap-border);
	background: transparent;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
}

.swap-device-card:hover {
	border-color: rgba(11, 149, 218, 0.5);
}

.swap-device-card.active {
	border-color: var(--swap-primary);
	background: rgba(11, 149, 218, 0.04);
}

.swap-device-input {
	display: none;
}

.swap-device-icon {
	font-size: 28px !important;
	width: 28px !important;
	height: 28px !important;
	color: var(--swap-text-secondary);
	transition: color 0.2s;
}

.swap-device-card.active .swap-device-icon {
	color: var(--swap-primary);
}

.swap-device-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--swap-text);
}

.swap-device-status {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #94a3b8;
}

.swap-device-card.active .swap-device-status {
	color: var(--swap-primary);
}

/* ============================================================
   Card Footer Bar (Save / Info)
   ============================================================ */
.swap-card-footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 32px;
	background: #f8fafc;
	border-top: 1px solid var(--swap-border);
}

.swap-card-footer-info {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--swap-text-secondary);
	font-style: italic;
}

.swap-card-footer-info .dashicons {
	font-size: 16px !important;
	width: 16px !important;
	height: 16px !important;
}

.swap-save-btn.button-primary {
	background: var(--swap-gradient) !important;
	border-color: var(--swap-primary) !important;
	border-radius: 8px !important;
	padding: 8px 32px !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	height: auto !important;
	line-height: 1.5 !important;
	box-shadow: 0 2px 8px rgba(11, 149, 218, 0.2) !important;
	transition: background 0.2s, box-shadow 0.2s !important;
}

.swap-save-btn.button-primary:hover {
	background: var(--swap-gradient-hover) !important;
}

/* ============================================================
   PRO Badge
   ============================================================ */
/* ============================================================
   PRO Badge (Unified Styling)
   ============================================================ */
.swap-badge-pro,
.swap-pro-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--swap-gradient) !important;
	color: white !important;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 2px 8px;
	border-radius: 4px;
	margin-left: 6px;
	vertical-align: middle;
}

/* ============================================================
   Code Editor (Custom CSS)
   ============================================================ */
.swap-code-editor-wrap {
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #334155;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.swap-code-editor-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1e293b;
	padding: 10px 16px;
}

.swap-code-dots {
	display: flex;
	gap: 6px;
}

.swap-code-dots .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.swap-code-dots .dot.red {
	background: #ef4444;
}

.swap-code-dots .dot.yellow {
	background: #eab308;
}

.swap-code-dots .dot.green {
	background: #22c55e;
}

.swap-code-filename {
	font-size: 12px;
	color: #94a3b8;
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.swap-code-textarea {
	width: 100%;
	background: #0f172a;
	color: #e2e8f0;
	border: none;
	padding: 16px 20px;
	font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
	font-size: 13px;
	line-height: 1.7;
	resize: vertical;
	outline: none;
	min-height: 160px;
	tab-size: 4;
}

.swap-code-textarea::placeholder {
	color: #475569;
}

.swap-code-textarea:focus {
	outline: none;
	box-shadow: none;
}

/* ============================================================
   Pro Upsell CTA Banner
   ============================================================ */
.swap-pro-cta-wrap {
	margin-top: 32px;
	background: linear-gradient(135deg, var(--swap-primary), #087bb5);
	padding: 3px;
	border-radius: var(--swap-radius);
	box-shadow: 0 4px 16px rgba(11, 149, 218, 0.15);
}

.swap-pro-cta-inner {
	background: var(--swap-white);
	border-radius: 10px;
	padding: 24px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.swap-pro-cta-content {
	display: flex;
	align-items: center;
	gap: 20px;
}

.swap-pro-cta-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(11, 149, 218, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.swap-pro-cta-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: var(--swap-primary);
}

.swap-pro-cta-content h4 {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 4px 0;
	color: var(--swap-text);
}

.swap-pro-cta-content p {
	font-size: 14px;
	color: var(--swap-text-secondary);
	margin: 0;
}

.swap-pro-cta-btn {
	display: inline-flex;
	align-items: center;
	background: var(--swap-gradient);
	color: white;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
}

.swap-pro-cta-btn:hover {
	background: var(--swap-gradient-hover);
	transform: scale(1.02);
	color: white;
}

/* ============================================================
   General Tab Responsive
   ============================================================ */
@media (max-width: 768px) {
	.swap-setting-row {
		flex-direction: column;
		gap: 16px;
	}

	.swap-setting-label-col {
		flex: 1;
		max-width: 100%;
	}

	.swap-device-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.swap-pro-cta-inner {
		flex-direction: column;
		text-align: center;
	}

	.swap-pro-cta-content {
		flex-direction: column;
	}
}

/* ============================================================
   Exclude Pages Redesign (Screenshot Match)
   ============================================================ */

.swap-exclude-section {
	padding: 32px;
	border-bottom: 1px solid #f1f5f9;
}

.swap-exclude-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 8px;
}

.swap-exclude-header h3 {
	margin: 0;
	font-size: 16px;
	color: #0f172a;
	font-weight: 600;
}

.swap-exclude-desc {
	font-size: 13px;
	color: #64748b;
}

/* Search Input Override */
.swap-exclude-search-wrap {
	position: relative;
	margin-bottom: 12px;
}

.swap-exclude-search-wrap .dashicons {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 18px;
	pointer-events: none;
	z-index: 2;
}

.swap-exclude-search-input {
	padding-left: 42px !important;
	/* Space for icon */
}

/* Tags */
.swap-tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	min-height: 32px;
	/* Prevent collapse if empty */
}

.swap-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: #f1f5f9;
	color: #334155;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid #e2e8f0;
}

.swap-pill .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	margin-left: 6px;
	color: #94a3b8;
	cursor: pointer;
}

.swap-pill .dashicons:hover {
	color: #ef4444;
}

/* Exclude By ID Override */
.swap-exclude-id-section {
	margin-top: 16px;
}

.swap-exclude-subtitle {
	font-size: 11px;
	text-transform: uppercase;
	color: #94a3b8;
	font-weight: 700;
	margin: 0 0 8px 0;
	letter-spacing: 0.5px;
}

.swap-exclude-id-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.swap-id-hash {
	position: absolute;
	left: 14px;
	font-size: 16px;
	color: #94a3b8;
	font-weight: 600;
	pointer-events: none;
	z-index: 2;
}

.swap-exclude-id-input {
	padding-left: 36px !important;
	/* Space for hash */
}

.swap-exclude-hint {
	font-size: 12px;
	color: #94a3b8;
	font-style: italic;
	margin-top: 6px;
}

/* ============================================================
   AJAX Search Results
   ============================================================ */
.swap-search-results {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: #fff;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 100;
	margin: 4px 0 0 0;
	padding: 0;
	list-style: none;
	max-height: 200px;
	overflow-y: auto;
}

.swap-search-result-item {
	padding: 10px 16px;
	font-size: 13px;
	color: #334155;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	transition: background 0.1s;
}

.swap-search-result-item:last-child {
	border-bottom: none;
}

.swap-search-result-item:hover {
	background: #f8fafc;
	color: var(--swap-primary);
}

.swap-no-results {
	padding: 10px 16px;
	font-size: 13px;
	color: #94a3b8;
	font-style: italic;
}

/* Ensure Search Input Matches Design */
.swap-input {
	width: 100%;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--swap-text);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.swap-input:focus {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 1px var(--swap-primary);
}

/* ============================================================
   Custom Script Loading Dropdown (Stylish)
   ============================================================ */
.swap-custom-dropdown {
	position: relative;
	width: 100%;
}

.swap-dropdown-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: #f8fafc;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	color: #0f172a;
	font-size: 14px;
	font-weight: 500;
}

.swap-dropdown-trigger:hover,
.swap-custom-dropdown.active .swap-dropdown-trigger {
	background: #fff;
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 1px var(--swap-primary);
}

.swap-dropdown-trigger .dashicons {
	font-size: 18px;
	color: #94a3b8;
	transition: transform 0.2s;
}

.swap-custom-dropdown.active .swap-dropdown-trigger .dashicons {
	transform: rotate(180deg);
}

.swap-dropdown-options {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 8px;
	background: #fff;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	/* Stronger shadow per screenshot */
	z-index: 50;
	list-style: none;
	padding: 6px;
}

.swap-custom-dropdown.active .swap-dropdown-options {
	display: block;
	animation: swap-fade-in 0.15s ease-out;
}

.swap-dropdown-options li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	margin-bottom: 2px;
	cursor: pointer;
	border-radius: 6px;
	font-size: 14px;
	color: #475569;
	transition: all 0.1s;
}

.swap-dropdown-options li:hover {
	background: #f1f5f9;
}

.swap-dropdown-options li.selected {
	background: #eff6ff;
	/* Light blue bg */
	color: var(--swap-primary);
	font-weight: 600;
}

/* Vertical blue bar on left for selected item (Screenshot hint) */
.swap-dropdown-options li.selected {
	position: relative;
	padding-left: 16px;
}

.swap-dropdown-options li.selected::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	background: var(--swap-gradient);
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
}

.swap-dropdown-options li .dashicons-yes {
	color: var(--swap-primary);
	font-size: 16px;
}

/* ============================================================
   Background Tab Styling
   ============================================================ */
.swap-bg-opacity-card {
	padding: 24px;
	margin-bottom: 24px;
}

.swap-card-header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.swap-card-header-row h3 {
	margin: 0 0 4px 0;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.swap-card-header-row p {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

.swap-badge-free {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 10px;
	letter-spacing: 0.5px;
}

.swap-badge-free {
	background: #f1f5f9;
	color: #64748b;
}

/* Handled by unified PRO badge styling */

.swap-opacity-control-wrap {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-bottom: 8px;
}

.swap-range-wrap {
	flex: 1;
}

.swap-range-slider {
	width: 100%;
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.swap-range-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	background: var(--swap-gradient);
	border-radius: 50%;
	cursor: pointer;
	border: 2px solid white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.swap-number-box input {
	width: 60px;
	text-align: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 6px;
	font-weight: 600;
	color: #334155;
}

.swap-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Background Styling Card */
.swap-bg-styling-card {
	position: relative;
	overflow: hidden;
	padding: 24px;
}

.swap-pro-gradient-border {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--swap-primary) 0%, #38bdf8 100%);
}

/* Mode Toggles */
.swap-styling-mode-wrap {
	margin-bottom: 24px;
}

.swap-mode-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
	color: #0f172a;
}

.swap-mode-toggles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 8px;
}

.swap-mode-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s;
}

.swap-mode-btn:hover {
	color: #334155;
	background: rgba(255, 255, 255, 0.5);
}

.swap-mode-btn.active {
	background: white;
	color: var(--swap-primary);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	font-weight: 600;
}

.swap-mode-btn input {
	display: none;
}

.swap-mode-btn .dashicons {
	font-size: 18px;
}

/* Color Picker & Inputs */
.swap-bg-mode-content {
	margin-bottom: 24px;
}

.swap-setting-row-compact label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
}

.swap-color-picker-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.swap-color-input {
	width: 40px;
	height: 40px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 2px;
	background: white;
	cursor: pointer;
}

.swap-hex-input {
	width: 120px;
	font-family: monospace;
}

/* Gradient Builder */
.swap-gradient-builder {
	display: flex;
	align-items: center;
	gap: 16px;
}

.swap-gradient-colors {
	display: flex;
	gap: -8px;
}

.swap-gradient-colors input[type="color"] {
	width: 40px;
	height: 40px;
	border: 2px solid white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	padding: 0;
	cursor: pointer;
	position: relative;
}

.swap-gradient-colors input[type="color"]:first-child {
	z-index: 2;
}

.swap-gradient-colors input[type="color"]:last-child {
	margin-left: -12px;
	z-index: 1;
}

.swap-gradient-angle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 6px 12px;
	border-radius: 8px;
}

.swap-input-tiny {
	width: 40px;
	background: transparent;
	border: none;
	text-align: center;
	font-weight: 600;
	outline: none;
}

/* Image Upload */
.swap-image-upload-area {
	border: 2px dashed #e2e8f0;
	border-radius: 12px;
	padding: 32px;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	position: relative;
	transition: all 0.2s;
}

.swap-image-upload-area:hover {
	border-color: var(--swap-primary);
	background: rgba(11, 149, 218, 0.05);
}

.swap-upload-icon {
	width: 48px;
	height: 48px;
	background: rgba(11, 149, 218, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
	color: var(--swap-primary);
}

.swap-upload-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.swap-link {
	color: var(--swap-primary);
	text-decoration: underline;
}

.swap-upload-hint {
	display: block;
	font-size: 12px;
	color: #94a3b8;
	margin-top: 4px;
}

.swap-image-preview {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swap-remove-image {
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swap-remove-image:hover {
	background: #ef4444;
}

.swap-flex-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.swap-value-display {
	font-size: 12px;
	font-family: monospace;
	color: var(--swap-primary);
}

/* Pro Upsell Box */
.swap-pro-upsell-box {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: rgba(11, 149, 218, 0.05);
	border: 1px solid rgba(11, 149, 218, 0.1);
	border-radius: 8px;
	margin-top: 24px;
}

.swap-upsell-icon {
	width: 32px;
	height: 32px;
	background: var(--swap-gradient);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.swap-upsell-text h4 {
	margin: 0 0 2px 0;
	font-size: 14px;
	font-weight: 700;
}

.swap-upsell-text p {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

.swap-upsell-link {
	white-space: nowrap;
	font-size: 12px;
	font-weight: 700;
	color: var(--swap-primary);
	text-decoration: none;
	margin-left: auto;
}

.swap-upsell-link:hover {
	text-decoration: underline;
}

/* ============================================================
   Base Card (reusable across tabs)
   ============================================================ */
.swap-modern-card {
	background: var(--swap-white);
	border: 1px solid var(--swap-border);
	border-radius: var(--swap-radius);
	padding: 24px;
	margin-bottom: 24px;
	position: relative;
	overflow: visible;
}

.swap-settings-card {
	background: var(--swap-white);
	border: 1px solid var(--swap-border);
	border-radius: var(--swap-radius);
	padding: 24px;
	margin-bottom: 24px;
}

/* Setting Rows */
.swap-setting-row {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	padding: 20px 0;
}

.swap-setting-row-border {
	border-bottom: 1px solid var(--swap-border);
}

.swap-setting-label-col {
	flex: 1;
}

.swap-setting-label-col h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
}

.swap-setting-label-col p {
	margin: 0;
	font-size: 13px;
	color: var(--swap-text-secondary);
}

.swap-setting-field-col {
	flex-shrink: 0;
}

/* Toggle Card */
.swap-toggle-card {
	display: flex;
	align-items: center;
	gap: 16px;
}

.swap-toggle-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.swap-toggle-label {
	font-size: 14px;
	font-weight: 600;
}

.swap-toggle-hint {
	font-size: 12px;
	color: var(--swap-text-secondary);
}

/* ============================================================
   Background Tab: 2-Column Grid Layout
   ============================================================ */
.swap-grid-2-col {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 32px;
	align-items: start;
}

.swap-grid-main {
	min-width: 0;
}

.swap-grid-sidebar {
	position: sticky;
	top: 32px;
}

@media (max-width: 1100px) {
	.swap-grid-2-col {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Live Preview Card
   ============================================================ */
.swap-live-preview-card {
	padding: 16px !important;
}

.swap-preview-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.swap-preview-header h3 {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #94a3b8;
}

.swap-preview-header .dashicons {
	color: #cbd5e1;
	font-size: 16px;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.swap-preview-frame {
	position: relative;
	width: 100%;
	padding-top: 75%;
	background: #0f172a;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.swap-preview-bg-layer {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #0074ad 0%, #7dd3fc 100%);
	opacity: 0.85;
	transition: all 0.3s ease;
}

.swap-preview-content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.swap-preview-loader-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	z-index: 20;
	position: relative;
}

.swap-mock-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: white;
	border-radius: 50%;
	animation: swap-spin 1s linear infinite;
}

@keyframes swap-spin {
	to {
		transform: rotate(360deg);
	}
}

.swap-mock-bar {
	width: 100px;
	height: 6px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 3px;
	overflow: hidden;
}

.swap-mock-progress {
	width: 66%;
	height: 100%;
	background: white;
	border-radius: 3px;
	box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.swap-mock-text {
	color: white;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0.7;
}

/* Preview Info Section */
.swap-preview-info {
	margin-top: 16px;
}

.swap-info-row {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	padding: 0 4px;
}

.swap-info-row .dashicons {
	color: var(--swap-primary);
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}

.swap-info-row p {
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
	color: var(--swap-text-secondary);
}

/* Quick Settings */
.swap-quick-settings {
	border-top: 1px solid var(--swap-border);
	padding-top: 12px;
	margin-top: 4px;
}

.swap-quick-settings h4 {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #334155;
}

.swap-qs-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 12px;
	color: #475569;
}

.swap-mini-toggle {
	width: 32px;
	height: 16px;
	background: #e2e8f0;
	border-radius: 8px;
	position: relative;
	cursor: pointer;
	flex-shrink: 0;
}

.swap-mini-toggle.active {
	background: var(--swap-gradient);
}

.swap-mini-toggle::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 12px;
	height: 12px;
	background: white;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s;
}

.swap-mini-toggle.active::after {
	transform: translateX(16px);
}

/* Margin-top utility */
.mt-4 {
	margin-top: 16px;
}

/* ============================================================
   Text & Logo Tab – Shared Components
   ============================================================ */

/* Section Block (vertical spacing between fields) */
.swap-section-block {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.swap-section-block:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* Field Labels */
.swap-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--swap-text);
	margin-bottom: 10px;
}

/* Flex between (label + value) */
.swap-flex-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.swap-value-display {
	font-size: 13px;
	font-weight: 600;
	color: var(--swap-primary);
	background: rgba(11, 149, 218, 0.08);
	padding: 4px 12px;
	border-radius: 6px;
}

/* Logo Upload Row */
.swap-logo-upload-row {
	display: flex;
	gap: 16px;
	align-items: center;
}

.swap-logo-thumb {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	background: #f1f5f9;
	border: 1px solid var(--swap-border);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.swap-logo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.swap-logo-thumb .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #94a3b8;
}

.swap-logo-upload-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.swap-logo-upload-info strong {
	font-size: 14px;
	color: var(--swap-text);
}

.swap-upload-hint {
	font-size: 12px;
	color: var(--swap-text-secondary);
}

/* Upload Button */
.swap-btn-upload {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--swap-gradient);
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	margin-top: 4px;
}

.swap-btn-upload:hover {
	background: var(--swap-gradient-hover);
	transform: translateY(-1px);
}

.swap-btn-upload .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Styled Select (matches screenshot dropdown) */
.swap-select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--swap-text);
	background: var(--swap-white);
	outline: none;
	transition: border-color 0.2s;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.swap-select:focus {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 3px rgba(11, 149, 218, 0.1);
}

/* Two Column Fields (side by side dropdowns) */
.swap-two-col-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.swap-two-col-fields .swap-section-block {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* Card Header Toggle (Text Settings header) */
.swap-header-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
}

.swap-toggle-label-sm {
	font-size: 13px;
	font-weight: 500;
	color: var(--swap-text-secondary);
}

/* Color Picker Wrap */
.swap-color-picker-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.swap-color-input {
	width: 40px;
	height: 40px;
	border: 2px solid var(--swap-border);
	border-radius: 8px;
	padding: 2px;
	cursor: pointer;
	background: none;
}

.swap-hex-input {
	width: 120px !important;
	text-transform: uppercase;
	font-family: monospace;
}

/* Full Width Input */
.swap-input-full {
	width: 100% !important;
}

/* Input Tiny (angle input etc.) */
.swap-input-tiny {
	width: 60px !important;
	text-align: center;
}

/* ============================================================
   Custom Dropdown (Reusable)
   ============================================================ */
.swap-custom-dropdown {
	position: relative;
}

.swap-custom-dropdown.active {
	z-index: 9999;
}

.swap-dd-trigger {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	border: 1px solid var(--swap-border);
	border-radius: 8px;
	background: var(--swap-white);
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.swap-dd-trigger:hover {
	border-color: #cbd5e1;
}

.swap-custom-dropdown.active .swap-dd-trigger {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 3px rgba(11, 149, 218, 0.1);
}

.swap-dd-text {
	font-size: 14px;
	color: var(--swap-text);
	font-weight: 500;
}

.swap-dd-trigger .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #94a3b8;
	transition: transform 0.25s ease;
}

.swap-custom-dropdown.active .swap-dd-trigger .dashicons {
	transform: rotate(180deg);
	color: var(--swap-primary);
}

/* Options List */
.swap-dd-options {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: var(--swap-white);
	border: 1px solid var(--swap-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	z-index: 9999;
	list-style: none;
	margin: 0;
	padding: 6px;
	max-height: 280px;
	overflow-y: auto;
	animation: swap-dd-slide 0.2s ease;
}

.swap-custom-dropdown.active .swap-dd-options {
	display: block;
}

@keyframes swap-dd-slide {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.swap-dd-options li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--swap-text);
	border-radius: 6px;
	cursor: pointer;
	position: relative;
	transition: background 0.15s;
}

.swap-dd-options li:hover {
	background: #f1f5f9;
}

.swap-dd-options li.selected {
	background: rgba(11, 149, 218, 0.06);
	color: var(--swap-primary);
	font-weight: 600;
}

.swap-dd-options li.selected::before {
	content: "";
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 3px;
	background: var(--swap-gradient);
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
}

.swap-dd-options li .dashicons-yes {
	color: var(--swap-primary);
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Divider */
.swap-dd-divider {
	height: 0;
	border-top: 1px solid var(--swap-border);
	margin: 4px 8px;
	padding: 0 !important;
	pointer-events: none;
}

/* Upload Font Option */
.swap-dd-upload-font {
	color: var(--swap-primary) !important;
	font-weight: 600;
	gap: 8px;
}

.swap-dd-upload-font .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* ============================================================
   Custom Font Upload Area
   ============================================================ */
.swap-custom-font-upload {
	margin-top: 12px;
	padding: 12px;
	background: #f8fafc;
	border: 1px dashed var(--swap-border);
	border-radius: 8px;
}

.swap-custom-font-file {
	display: flex;
	align-items: center;
	gap: 10px;
}

.swap-custom-font-file>.dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: var(--swap-primary);
	flex-shrink: 0;
}

.swap-font-filename {
	font-size: 13px;
	color: var(--swap-text);
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.swap-btn-upload-sm {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--swap-gradient);
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s;
}

.swap-btn-upload-sm:hover {
	background: var(--swap-gradient-hover);
}

.swap-btn-upload-sm .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

.swap-custom-font-upload .swap-upload-hint {
	display: block;
	margin-top: 6px;
}

/* ============================================================
   Tab Header
   ============================================================ */
.swap-tab-header {
	margin-bottom: 24px;
}

.swap-tab-header h2 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: var(--swap-text);
}

.swap-tab-subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--swap-text-secondary);
}

/* ============================================================
   Input with Suffix (e.g. "ms")
   ============================================================ */
.swap-input-with-suffix {
	display: flex;
	align-items: center;
	position: relative;
}

.swap-input-with-suffix .swap-input {
	padding-right: 40px;
}

.swap-input-suffix {
	position: absolute;
	right: 14px;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	pointer-events: none;
}

/* ============================================================
   Toggle Card Inline (label + description + toggle)
   ============================================================ */
.swap-toggle-card-inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.swap-toggle-card-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.swap-toggle-card-info strong {
	font-size: 14px;
	color: var(--swap-text);
}

.swap-toggle-card-info span {
	font-size: 12px;
	color: var(--swap-text-secondary);
}

/* ============================================================
   PRO Badge & Fields
   ============================================================ */
.swap-pro-badge {
	display: inline-block;
	background: #1a1a2e;
	color: #fbbf24;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 6px;
	vertical-align: middle;
}

.swap-pro-fields {
	position: relative;
}

.swap-pro-input {
	opacity: 0.5;
	pointer-events: none;
}

/* ============================================================
   PRO Upgrade Banner
   ============================================================ */
.swap-pro-banner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 14px 20px;
	margin-top: 4px;
}

.swap-pro-banner-left {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 500;
	color: #92400e;
}

.swap-pro-banner-left .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #d97706;
}

.swap-pro-upgrade-link {
	font-size: 13px;
	font-weight: 700;
	color: #dc2626;
	text-decoration: none;
	white-space: nowrap;
}

.swap-pro-upgrade-link:hover {
	color: #b91c1c;
	text-decoration: underline;
}

/* ============================================================
   Preview – Percentage & Progress Bar
   ============================================================ */
.swap-pt-preview-percentage {
	font-size: 18px;
	font-weight: 700;
	margin-top: 8px;
	text-align: center;
}

.swap-pt-preview-bar {
	width: 80%;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	margin-top: 10px;
	overflow: hidden;
}

.swap-pt-bar-fill {
	height: 100%;
	border-radius: 4px;
	transition: width 0.5s ease, background 0.3s;
}

/* ============================================================
   Template Card Grid (Style Tab)
   ============================================================ */
.swap-template-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* Individual Card */
.swap-tmpl-card {
	background: var(--swap-white);
	border: 2px solid var(--swap-border);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.swap-tmpl-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

.swap-tmpl-card input[type="radio"] {
	display: none;
}

/* Selected State */
.swap-tmpl-selected {
	border-color: var(--swap-primary);
	box-shadow: 0 0 0 3px rgba(11, 149, 218, 0.15);
}

.swap-tmpl-selected:hover {
	border-color: var(--swap-primary);
}

/* Preview Area */
.swap-tmpl-preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	background: #000000;
	padding: 20px;
	overflow: hidden;
}

/* Selected Checkmark Badge */
.swap-tmpl-check {
	position: absolute;
	top: 10px;
	left: 10px;
	display: flex;
	align-items: center;
	gap: 4px;
	background: var(--swap-white);
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: var(--swap-primary);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.swap-tmpl-check .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--swap-primary);
}

/* Footer */
.swap-tmpl-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-top: 1px solid #f1f5f9;
}

.swap-tmpl-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--swap-text);
}

/* Locked / PRO Overlay */
.swap-tmpl-locked {
	cursor: default;
	opacity: 0.85;
}

.swap-tmpl-locked:hover {
	transform: none;
	box-shadow: none;
}

.swap-tmpl-lock-overlay {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(203, 213, 225, 0.4);
	border-radius: 12px;
}

.swap-tmpl-lock-overlay .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	color: #64748b;
}

/* FREE badge inside template cards */
.swap-tmpl-footer .swap-badge-free {
	font-size: 10px;
	font-weight: 700;
	color: var(--swap-primary);
	background: rgba(11, 149, 218, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Responsive: 3 columns on tablets, 2 on small */
@media (max-width: 1100px) {
	.swap-template-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.swap-template-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* =========================================================
   Style Tab – Right Sidebar (Overview Style)
   ========================================================= */

.swap-style-sidebar-card {
	position: sticky;
	top: 50px;
	padding: 24px;
}

/* --- Branding Row --- */
.swap-style-sidebar-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.swap-brand-info {
	display: flex;
	align-items: center;
	gap: 10px;
}

.swap-brand-icon {
	width: 40px;
	height: 40px;
	background: var(--swap-gradient);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.swap-brand-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.swap-brand-info h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--swap-text);
}

.swap-version {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
}

.swap-sidebar-save-btn {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	gap: 8px;
	background: var(--swap-gradient);
	color: #fff;
	border: none;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.swap-sidebar-save-btn:hover {
	background: var(--swap-gradient-hover);
	transform: translateY(-1px);
}

.swap-sidebar-save-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* --- Enable Toggle --- */
.swap-style-sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 20px;
}

.swap-style-sidebar-toggle strong {
	font-size: 14px;
	color: var(--swap-text);
	display: block;
}

.swap-style-sidebar-toggle p {
	margin: 2px 0 0;
	font-size: 12px;
	color: #94a3b8;
}

/* --- Settings Overview --- */
.swap-style-sidebar-overview {
	margin-bottom: 16px;
}

.swap-sidebar-section-label {
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: block;
	margin-bottom: 12px;
}

.swap-overview-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
	cursor: pointer;
	transition: background 0.15s;
}

.swap-overview-item:last-child {
	border-bottom: none;
}

.swap-overview-item:hover {
	background: #f8fafc;
	border-radius: 8px;
	padding-left: 8px;
	padding-right: 8px;
}

.swap-overview-icon {
	width: 36px;
	height: 36px;
	background: #f1f5f9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.swap-overview-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #64748b;
}

.swap-overview-text {
	flex: 1;
}

.swap-overview-text strong {
	font-size: 13px;
	color: var(--swap-text);
	display: block;
}

.swap-overview-text span {
	font-size: 12px;
	color: #94a3b8;
}

.swap-overview-item>.dashicons-arrow-right-alt2 {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #cbd5e1;
}

/* --- Status Badge --- */
.swap-style-sidebar-status {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
}

.swap-style-sidebar-status .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #22c55e;
}

.swap-style-sidebar-status span:last-child {
	font-size: 13px;
	color: #166534;
	font-weight: 500;
}

/* --- Type Switch Info Box --- */

/* --- Sidebar Sections --- */
.swap-sidebar-section {
	border-top: 1px solid #e2e8f0;
	padding-top: 16px;
	margin-top: 16px;
}

.swap-sidebar-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.swap-sidebar-section-header strong {
	font-size: 13px;
	color: var(--swap-text);
}

.swap-mode-toggles-compact {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.swap-mode-toggles-compact .swap-mode-btn {
	flex: 1;
	padding: 6px 8px;
	font-size: 11px;
	min-width: 0;
}

.swap-mode-toggles-compact .swap-mode-btn .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Sidebar color picker compact */
.swap-sidebar-section .swap-color-picker-wrap {
	margin-top: 8px;
}

.swap-sidebar-section .swap-range-slider {
	width: 100%;
}

.swap-sidebar-section .swap-opacity-control-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.swap-sidebar-section .swap-range-wrap {
	flex: 1;
}

.swap-sidebar-section .swap-number-box input {
	width: 50px;
	text-align: center;
	font-size: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 4px;
	background: #f8fafc;
}

.swap-sidebar-section .swap-range-labels {
	display: flex;
	justify-content: space-between;
	margin-top: 4px;
}

.swap-sidebar-section .swap-range-labels span {
	font-size: 10px;
	color: #94a3b8;
	text-transform: uppercase;
}

/* Sidebar image upload compact */
.swap-sidebar-section .swap-upload-placeholder {
	padding: 16px;
	text-align: center;
}

.swap-sidebar-section .swap-upload-placeholder p {
	font-size: 12px;
	margin: 6px 0 0;
}


.swap-type-info-box {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
}

.swap-type-info-box .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #3b82f6;
	flex-shrink: 0;
	margin-top: 1px;
}

.swap-type-info-text {
	font-size: 12px;
	color: #1e40af;
	font-weight: 500;
	line-height: 1.4;
}

/* --- Live Preview Link --- */
.swap-style-sidebar-preview {
	border-top: 1px solid #e2e8f0;
	padding-top: 16px;
	text-align: center;
}

.swap-preview-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--swap-text);
	text-decoration: none;
	padding: 10px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: all 0.2s;
}

.swap-preview-link:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: var(--swap-primary);
}

.swap-preview-link .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.swap-preview-hint {
	font-size: 11px;
	color: #94a3b8;
	margin: 8px 0 0;
}

.swap-lc-popover {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: #1e293b;
	z-index: 10;
	padding: 4px;
	/* Extreme tight */
	/* Ultra tight */
	box-sizing: border-box;
	border-radius: inherit;
}

.swap-cp-wrapper {
	display: flex;
	flex-direction: column;
	height: auto;
	min-height: 100%;
	width: 100%;
	position: relative;
	overflow: visible;
}

/* --- View 1: Presets --- */
.swap-lc-view-presets {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 4px;
	/* Reduced gap */
}

.swap-lc-popover-header {
	font-size: 10px;
	font-weight: 700;
	color: #94a3b8;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 2px;
}

.swap-lc-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	/* Extreme tight gap */
	/* Reduced gap */
	justify-content: center;
	align-content: flex-start;
	/* Pull to top */
	flex: 0;
	/* Don't expand */
}

.swap-lc-preset {
	width: 20px;
	/* Reduced size */
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	padding: 0;
	transition: transform 0.1s;
	flex-shrink: 0;
}

.swap-lc-preset:hover {
	transform: scale(1.1);
	border-color: rgba(255, 255, 255, 0.5);
}

.swap-lc-preset.swap-lc-active {
	border-color: #fff;
	transform: scale(1.1);
}

/* Custom Trigger Icon Button */
.swap-lc-custom-trigger {
	width: 20px;
	/* Reduced size */
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.1);
	color: #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s;
	flex-shrink: 0;
}

.swap-lc-custom-trigger:hover {
	transform: scale(1.1);
	background: var(--swap-gradient);
	border-color: var(--swap-primary);
	color: #fff;
}

.swap-lc-custom-trigger .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
	line-height: 14px;
}

.swap-cp-actions {
	margin-top: 4px;
	/* Small gap instead of auto-push */
}

.swap-lc-done {
	width: 100%;
	background: var(--swap-gradient);
	color: #fff;
	border: none;
	padding: 2px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 10px;
	/* Reduced font */
	cursor: pointer;
	text-transform: uppercase;
}

.swap-lc-done:hover {
	background: var(--swap-gradient-hover);
}

/* --- View 2: Custom Picker --- */
.swap-lc-view-custom {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 4px;
	/* Reduced gap */
	width: 100%;
}

/* Custom Header with Back Button */
.swap-gm-header {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 2px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 0px;
}

.swap-gm-header h3 {
	margin: 0;
	font-size: 10px;
	color: #fff;
	font-weight: 600;
	flex: 1;
	text-align: left;
}

.swap-lc-back {
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 2px;
	display: flex;
	align-items: center;
}

.swap-lc-back:hover {
	color: #fff;
}

.swap-lc-back .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Compact Picker Components */
.swap-cp-saturation {
	position: relative;
	width: 100%;
	height: 25px;
	/* Extreme small height */
	/* Ultra compact */
	min-height: 25px;
	/* Ensure at least some height */
	background: red;
	border-radius: 4px;
	overflow: hidden;
	cursor: crosshair;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.swap-cp-white {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.swap-cp-black {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
}

.swap-cp-cursor {
	position: absolute;
	width: 10px;
	height: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.swap-cp-controls {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.swap-cp-sliders {
	padding: 0 2px;
}

.swap-cp-hue {
	position: relative;
	width: 100%;
	height: 6px;
	border-radius: 3px;
	background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
	cursor: pointer;
}

.swap-cp-hue-cursor {
	position: absolute;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
	transform: translate(-50%, 0);
	border: 2px solid #fff;
	pointer-events: none;
	box-sizing: border-box;
	top: -1px;
	/* Center partially */
}

.swap-cp-bottom-row {
	display: flex;
	align-items: center;
	gap: 2px;
}

.swap-cp-tool-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #94a3b8;
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	flex-shrink: 0;
}

.swap-cp-tool-icon:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.swap-cp-preview {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.2);
	background: #fff;
	flex-shrink: 0;
}

.swap-cp-inputs {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

.swap-cp-hex {
	width: 100%;
	height: 15px;
	border-radius: 2px !important;
	border: 1px solid #334155 !important;
	background: #fff !important;
	color: #333 !important;
	padding: 0 20px 0 2px;
	font-family: monospace;
	font-size: 11px;
	text-align: center;
}

.swap-cp-hex:focus {
	border-color: var(--swap-primary) !important;
}

.swap-cp-label {
	position: absolute;
	right: 6px;
	font-size: 9px;
	color: #94a3b8;
	font-weight: 600;
	pointer-events: none;
}

.swap-gm-actions {
	margin-top: 4px;
	/* Small gap instead of auto-push */
}

.swap-lc-select-custom {
	width: 100%;
	background: var(--swap-gradient);
	color: #fff;
	border: none;
	padding: 2px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 10px;
	cursor: pointer;
}

.swap-lc-select-custom:hover {
	background: var(--swap-gradient-hover);
}

/* Edit Icon */
.swap-tmpl-edit-icon {
	margin-left: 6px;
	cursor: pointer;
	color: var(--swap-primary);
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	padding: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
}

.swap-tmpl-edit-icon:hover {
	color: var(--swap-primary);
	transform: scale(1.1);
}

/* Ensure preview container handles absolute popover - Back to hidden for contained look */
.swap-tmpl-preview {
	position: relative;
	overflow: hidden;
	z-index: 5;
}

.swap-lc-popover {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	box-shadow: none;
}

/* Fix stacking context: Selected card above siblings so popover isn't covered by next row */
.swap-tmpl-card {
	position: relative;
}

.swap-tmpl-card.swap-tmpl-selected {
	z-index: 10;
}

/* --- Readymade Text Styles Grid --- */
.swap-readymade-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.swap-readymade-item {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.swap-readymade-item:hover {
	border-color: var(--swap-primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.swap-readymade-item.active {
	border-color: var(--swap-primary);
	background: #f0f9ff;
	box-shadow: 0 0 1px 1px var(--swap-primary);
}

.swap-readymade-preview {
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: #f8fafc;
	border-radius: 8px;
	overflow: hidden;
}

.swap-readymade-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--swap-text);
}

.swap-section-header-flex {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* PRO Badge */
/* Handled by unified PRO badge styling */

/* ============================================================
   Freemium Locks
   ============================================================ */
.swap-pro-locked {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
	position: relative;
}
.swap-pro-locked input,
.swap-pro-locked select,
.swap-pro-locked .swap-custom-dropdown,
.swap-pro-locked .switch,
.swap-pro-locked label {
	pointer-events: none;
}

/* ============================================================
   Hide Standard WP Admin Notices on SmartWait Page
   ============================================================ */
.update-nag,
.updated,
.error,
.notice,
#setting-error-tgmpa {
    display: none !important;
}