/* ==========================================================================
   IGIT Related Posts – Admin Styles  (Modern Dark Theme)
   ========================================================================== */

/* ── CSS Custom Properties ───────────────────────────────────────────────── */
.igit-rpwt-settings-wrap {
	--igit-bg-page:     #12141e;
	--igit-bg-card:     #1c1f2e;
	--igit-bg-input:    #252840;
	--igit-border:      #2d3155;
	--igit-accent:      #818cf8;
	--igit-accent-2:    #06b6d4;
	--igit-accent-dark: #4f46e5;
	--igit-amber:       #f59e0b;
	--igit-text:        #e2e8f0;
	--igit-text-muted:  #8892b4;
	--igit-success:     #10b981;
	--igit-success-bg:  #0a2e22;
	--igit-gradient:    linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.45);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.55);
	--igit-radius:      12px;
	--igit-radius-sm:   8px;
}

/* ── Per-theme variable overrides (set via data-igit-theme on <body>) ──────── */
body[data-igit-theme="indigo"] .igit-rpwt-settings-wrap {
	/* default values – no override needed; listed for clarity */
}

body[data-igit-theme="violet"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #130e1f;
	--igit-bg-card:     #1b1429;
	--igit-bg-input:    #231b35;
	--igit-border:      #3b2d5a;
	--igit-accent:      #a78bfa;
	--igit-accent-2:    #ec4899;
	--igit-accent-dark: #7c3aed;
	--igit-gradient:    linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
}

body[data-igit-theme="ocean"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #0d1520;
	--igit-bg-card:     #131e2e;
	--igit-bg-input:    #1a2840;
	--igit-border:      #1e3855;
	--igit-accent:      #38bdf8;
	--igit-accent-2:    #06b6d4;
	--igit-accent-dark: #0369a1;
	--igit-gradient:    linear-gradient(135deg, #0369a1 0%, #06b6d4 100%);
}

body[data-igit-theme="emerald"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #0c1a14;
	--igit-bg-card:     #112419;
	--igit-bg-input:    #162e20;
	--igit-border:      #1e4230;
	--igit-accent:      #34d399;
	--igit-accent-2:    #84cc16;
	--igit-accent-dark: #059669;
	--igit-gradient:    linear-gradient(135deg, #059669 0%, #84cc16 100%);
}

body[data-igit-theme="sunset"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #1a100a;
	--igit-bg-card:     #231610;
	--igit-bg-input:    #2e1c12;
	--igit-border:      #4a2c1a;
	--igit-accent:      #fb923c;
	--igit-accent-2:    #f59e0b;
	--igit-accent-dark: #dc2626;
	--igit-gradient:    linear-gradient(135deg, #dc2626 0%, #f59e0b 100%);
}

body[data-igit-theme="rose"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #1a0810;
	--igit-bg-card:     #231018;
	--igit-bg-input:    #2e1522;
	--igit-border:      #5a1f35;
	--igit-accent:      #fb7185;
	--igit-accent-2:    #f472b6;
	--igit-accent-dark: #be123c;
	--igit-gradient:    linear-gradient(135deg, #be123c 0%, #f472b6 100%);
}

body[data-igit-theme="gold"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #1a1205;
	--igit-bg-card:     #231a07;
	--igit-bg-input:    #2e2208;
	--igit-border:      #4a380a;
	--igit-accent:      #fbbf24;
	--igit-accent-2:    #f59e0b;
	--igit-accent-dark: #b45309;
	--igit-gradient:    linear-gradient(135deg, #b45309 0%, #fbbf24 100%);
}

body[data-igit-theme="aurora"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #0a0e1a;
	--igit-bg-card:     #111826;
	--igit-bg-input:    #182030;
	--igit-border:      #253a55;
	--igit-accent:      #a78bfa;
	--igit-accent-2:    #2dd4bf;
	--igit-accent-dark: #7c3aed;
	--igit-gradient:    linear-gradient(135deg, #7c3aed 0%, #14b8a6 100%);
}

body[data-igit-theme="cherry"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #130508;
	--igit-bg-card:     #1d080d;
	--igit-bg-input:    #280b12;
	--igit-border:      #4e1020;
	--igit-accent:      #fb7185;
	--igit-accent-2:    #fda4af;
	--igit-accent-dark: #9f1239;
	--igit-gradient:    linear-gradient(135deg, #9f1239 0%, #f43f5e 100%);
}

body[data-igit-theme="nordic"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #1c2333;
	--igit-bg-card:     #242e42;
	--igit-bg-input:    #2c3852;
	--igit-border:      #3d5070;
	--igit-accent:      #88c0d0;
	--igit-accent-2:    #81a1c1;
	--igit-accent-dark: #4c6a8a;
	--igit-gradient:    linear-gradient(135deg, #4c6a8a 0%, #88c0d0 100%);
}

/* ─ Light themes ──────────────────────────────────────────────────────────── */
body[data-igit-theme="sky"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #f0f9ff;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #e0f2fe;
	--igit-border:      #bae6fd;
	--igit-accent:      #0284c7;
	--igit-accent-2:    #0891b2;
	--igit-accent-dark: #0369a1;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #0284c7 0%, #14b8a6 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="blossom"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #fff1f4;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #ffe4e8;
	--igit-border:      #fecdd3;
	--igit-accent:      #e11d48;
	--igit-accent-2:    #f97316;
	--igit-accent-dark: #be123c;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #e11d48 0%, #f97316 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="sage"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #f0fdf4;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #dcfce7;
	--igit-border:      #bbf7d0;
	--igit-accent:      #16a34a;
	--igit-accent-2:    #65a30d;
	--igit-accent-dark: #15803d;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #16a34a 0%, #84cc16 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="lavender"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #f5f3ff;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #ede9fe;
	--igit-border:      #ddd6fe;
	--igit-accent:      #7c3aed;
	--igit-accent-2:    #c026d3;
	--igit-accent-dark: #6d28d9;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="sand"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #fff7ed;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #ffedd5;
	--igit-border:      #fed7aa;
	--igit-accent:      #c2410c;
	--igit-accent-2:    #d97706;
	--igit-accent-dark: #9a3412;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #c2410c 0%, #f59e0b 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="mint"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #f0fdfa;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #ccfbf1;
	--igit-border:      #99f6e4;
	--igit-accent:      #0d9488;
	--igit-accent-2:    #0891b2;
	--igit-accent-dark: #0f766e;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="powder"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #eff6ff;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #dbeafe;
	--igit-border:      #bfdbfe;
	--igit-accent:      #3b82f6;
	--igit-accent-2:    #6366f1;
	--igit-accent-dark: #2563eb;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="coral"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #fff5f0;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #ffe4d6;
	--igit-border:      #ffc9b0;
	--igit-accent:      #f4511e;
	--igit-accent-2:    #f59e0b;
	--igit-accent-dark: #e8430f;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #f4511e 0%, #fbbf24 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="citrus"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #fefce8;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #fef9c3;
	--igit-border:      #fef08a;
	--igit-accent:      #ca8a04;
	--igit-accent-2:    #65a30d;
	--igit-accent-dark: #a16207;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #65a30d 0%, #ca8a04 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

body[data-igit-theme="quartz"] .igit-rpwt-settings-wrap {
	--igit-bg-page:     #fdf2f8;
	--igit-bg-card:     #ffffff;
	--igit-bg-input:    #fce7f3;
	--igit-border:      #fbcfe8;
	--igit-accent:      #db2777;
	--igit-accent-2:    #9333ea;
	--igit-accent-dark: #be185d;
	--igit-text:        #0f172a;
	--igit-text-muted:  #475569;
	--igit-gradient:    linear-gradient(135deg, #db2777 0%, #9333ea 100%);
	--igit-shadow-sm:   0 2px 10px rgba(0, 0, 0, 0.08);
	--igit-shadow-md:   0 6px 24px rgba(0, 0, 0, 0.12);
}

/* ── Page background ─────────────────────────────────────────────────────── */
body.toplevel_page_igit-rpwt #wpcontent,
body.toplevel_page_igit-rpwt #wpfooter {
	background: #12141e; /* indigo default */
}
body[data-igit-theme="violet"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="violet"].toplevel_page_igit-rpwt #wpfooter  { background: #130e1f; }
body[data-igit-theme="ocean"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="ocean"].toplevel_page_igit-rpwt #wpfooter   { background: #0d1520; }
body[data-igit-theme="emerald"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="emerald"].toplevel_page_igit-rpwt #wpfooter { background: #0c1a14; }
body[data-igit-theme="sunset"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="sunset"].toplevel_page_igit-rpwt #wpfooter  { background: #1a100a; }
body[data-igit-theme="rose"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="rose"].toplevel_page_igit-rpwt #wpfooter    { background: #1a0810; }
body[data-igit-theme="gold"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="gold"].toplevel_page_igit-rpwt #wpfooter    { background: #1a1205; }
body[data-igit-theme="aurora"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="aurora"].toplevel_page_igit-rpwt #wpfooter  { background: #0a0e1a; }
body[data-igit-theme="cherry"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="cherry"].toplevel_page_igit-rpwt #wpfooter  { background: #130508; }
body[data-igit-theme="nordic"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="nordic"].toplevel_page_igit-rpwt #wpfooter  { background: #1c2333; }
body[data-igit-theme="sky"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="sky"].toplevel_page_igit-rpwt #wpfooter      { background: #f0f9ff; }
body[data-igit-theme="blossom"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="blossom"].toplevel_page_igit-rpwt #wpfooter  { background: #fff1f4; }
body[data-igit-theme="sage"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="sage"].toplevel_page_igit-rpwt #wpfooter     { background: #f0fdf4; }
body[data-igit-theme="lavender"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="lavender"].toplevel_page_igit-rpwt #wpfooter { background: #f5f3ff; }
body[data-igit-theme="sand"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="sand"].toplevel_page_igit-rpwt #wpfooter     { background: #fff7ed; }
body[data-igit-theme="mint"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="mint"].toplevel_page_igit-rpwt #wpfooter     { background: #f0fdfa; }
body[data-igit-theme="powder"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="powder"].toplevel_page_igit-rpwt #wpfooter   { background: #eff6ff; }
body[data-igit-theme="coral"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="coral"].toplevel_page_igit-rpwt #wpfooter    { background: #fff5f0; }
body[data-igit-theme="citrus"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="citrus"].toplevel_page_igit-rpwt #wpfooter   { background: #fefce8; }
body[data-igit-theme="quartz"].toplevel_page_igit-rpwt #wpcontent,
body[data-igit-theme="quartz"].toplevel_page_igit-rpwt #wpfooter   { background: #fdf2f8; }

body.toplevel_page_igit-rpwt #wpcontent {
	padding-top: 0;
}

/* ── Wrapper reset ───────────────────────────────────────────────────────── */
.igit-rpwt-settings-wrap {
	margin: 0 !important;
	padding: 0;
}

/* ── Notices slot (between hero and panels) ─────────────────────────────── */
#igit-rpwt-notices {
	margin: 12px 0 0;
}

#igit-rpwt-notices .notice,
#igit-rpwt-notices .updated,
#igit-rpwt-notices .error {
	margin: 0 0 8px;
}

/* ── WP Save notice ──────────────────────────────────────────────────────── */
body.toplevel_page_igit-rpwt #setting-error-settings_updated,
body.toplevel_page_igit-rpwt .updated:not(.inline),
body.toplevel_page_igit-rpwt .notice-success:not(.inline) {
	background: #0a2e22;
	border-left: 4px solid #10b981;
	box-shadow: none;
	margin: 0 0 0 0;
}

body.toplevel_page_igit-rpwt #setting-error-settings_updated p,
body.toplevel_page_igit-rpwt .updated:not(.inline) p,
body.toplevel_page_igit-rpwt .notice-success:not(.inline) p {
	color: #6ee7b7;
}

/* ── Hero Header ─────────────────────────────────────────────────────────── */
.igit-rpwt-hero {
	background: var(--igit-gradient);
	padding: 28px 24px;
	position: relative;
	overflow: hidden;
}

.igit-rpwt-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 75% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 65%);
	pointer-events: none;
}

.igit-rpwt-hero-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	z-index: 1;
}

.igit-rpwt-hero-icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(6px);
}

.igit-rpwt-hero-text {
	flex: 1;
}

.igit-rpwt-hero-text h1 {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
	padding: 0;
	line-height: 1.2;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.igit-rpwt-hero-text p {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
}

.igit-rpwt-hero-badge {
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 100px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	letter-spacing: 0.05em;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.igit-rpwt-settings-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	padding: 28px 24px 48px;
}

.igit-rpwt-settings-main {
	flex: 1 1 auto;
	min-width: 0;
}

.igit-rpwt-settings-sidebar {
	flex: 0 0 288px;
	width: 288px;
}

/* ── Section Cards (main form) ───────────────────────────────────────────── */
.igit-rpwt-section-card {
	background: var(--igit-bg-card);
	border: 1px solid var(--igit-border);
	border-radius: var(--igit-radius);
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: var(--igit-shadow-sm);
	position: relative;
}

/* Gradient top accent bar */
.igit-rpwt-section-card::before {
	content: '';
	display: block;
	height: 3px;
	background: var(--igit-gradient);
}

.igit-rpwt-section-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 20px 14px;
	border-bottom: 1px solid var(--igit-border);
}

.igit-rpwt-section-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: rgba(129, 140, 248, 0.12);
	border-radius: 8px;
	color: var(--igit-accent);
	flex-shrink: 0;
}

.igit-rpwt-section-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--igit-text);
	letter-spacing: 0.01em;
}

/* ── Form Table overrides ────────────────────────────────────────────────── */
.igit-rpwt-settings-wrap .form-table {
	border-collapse: collapse;
	width: 100%;
	margin: 0;
}

.igit-rpwt-settings-wrap .form-table tbody {
	border: none;
}

.igit-rpwt-settings-wrap .form-table tr {
	border-bottom: 1px solid var(--igit-border);
	transition: background 0.15s ease;
}

.igit-rpwt-settings-wrap .form-table tr:last-child {
	border-bottom: none;
}

.igit-rpwt-settings-wrap .form-table tr:hover {
	background: rgba(129, 140, 248, 0.04);
}

.igit-rpwt-settings-wrap .form-table th {
	width: 210px;
	padding: 16px 20px;
	color: var(--igit-text-muted);
	font-weight: 500;
	font-size: 14px;
	vertical-align: top;
	background: none;
}

.igit-rpwt-settings-wrap .form-table td {
	padding: 14px 20px;
	vertical-align: top;
	background: none;
	font-size: 14px;
}

.igit-rpwt-settings-wrap .form-table th label {
	color: var(--igit-text-muted);
}

/* ── Inputs ──────────────────────────────────────────────────────────────── */
.igit-rpwt-settings-wrap input[type="text"],
.igit-rpwt-settings-wrap input[type="url"],
.igit-rpwt-settings-wrap input[type="number"] {
	background: var(--igit-bg-input) !important;
	border: 1px solid var(--igit-border) !important;
	color: var(--igit-text) !important;
	border-radius: var(--igit-radius-sm) !important;
	padding: 8px 12px !important;
	font-size: 14px !important;
	height: auto !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.igit-rpwt-settings-wrap input[type="number"] {
	padding-right: 28px !important;
	width: auto !important;
	min-width: 100px !important;
}

.igit-rpwt-settings-wrap input[type="text"]:focus,
.igit-rpwt-settings-wrap input[type="url"]:focus,
.igit-rpwt-settings-wrap input[type="number"]:focus {
	border-color: var(--igit-accent) !important;
	box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22) !important;
	outline: none !important;
}

.igit-rpwt-settings-wrap input[type="text"]::placeholder,
.igit-rpwt-settings-wrap input[type="url"]::placeholder {
	color: var(--igit-text-muted);
	opacity: 0.7;
}

/* ── Selects ─────────────────────────────────────────────────────────────── */
.igit-rpwt-settings-wrap select {
	background-color: var(--igit-bg-input) !important;
	border: 1px solid var(--igit-border) !important;
	color: var(--igit-text) !important;
	border-radius: var(--igit-radius-sm) !important;
	padding: 8px 32px 8px 12px !important;
	font-size: 14px !important;
	height: auto !important;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238892b4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-shadow: none !important;
}

.igit-rpwt-settings-wrap select:focus {
	border-color: var(--igit-accent) !important;
	box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22) !important;
	outline: none !important;
}

.igit-rpwt-settings-wrap .description {
	color: var(--igit-text-muted);
	font-size: 12px;
	margin-top: 6px;
	line-height: 1.5;
}

/* ── Toggle Switch ───────────────────────────────────────────────────────── */
.igit-rpwt-toggle {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	vertical-align: middle;
}

.igit-rpwt-toggle input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.igit-rpwt-toggle-track {
	display: inline-block;
	width: 44px;
	height: 24px;
	background: var(--igit-border);
	border-radius: 100px;
	position: relative;
	transition: background 0.25s ease;
	flex-shrink: 0;
}

.igit-rpwt-toggle input:checked ~ .igit-rpwt-toggle-track {
	background: var(--igit-accent);
}

.igit-rpwt-toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.igit-rpwt-toggle input:checked ~ .igit-rpwt-toggle-track .igit-rpwt-toggle-thumb {
	transform: translateX(20px);
}

.igit-rpwt-toggle:has(input:focus-visible) .igit-rpwt-toggle-track {
	box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.35);
}

/* ── Form Footer / Save Button ───────────────────────────────────────────── */
.igit-rpwt-form-footer {
	padding: 14px 20px 10px;
	background: var(--igit-bg-card);
	border: 1px solid var(--igit-border);
	border-top: none;
	border-radius: 0 0 var(--igit-radius) var(--igit-radius);
	margin-bottom: 20px;
}

.igit-rpwt-form-footer .submit,
.igit-rpwt-settings-wrap p.submit {
	padding: 0;
	margin: 0;
	border: none;
	background: none;
}

.igit-rpwt-settings-wrap .submit input[type="submit"],
.igit-rpwt-settings-wrap input#submit,
.igit-rpwt-settings-wrap .igit-rpwt-panel-save-btn {
	background: var(--igit-gradient) !important;
	border: none !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 8px 22px !important;
	border-radius: 100px !important;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease !important;
	height: auto !important;
	line-height: 1 !important;
	letter-spacing: 0.03em;
}

.igit-rpwt-settings-wrap .submit input[type="submit"]:hover,
.igit-rpwt-settings-wrap input#submit:hover,
.igit-rpwt-settings-wrap .igit-rpwt-panel-save-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 26px rgba(79, 70, 229, 0.58) !important;
}

.igit-rpwt-settings-wrap .submit input[type="submit"]:active,
.igit-rpwt-settings-wrap input#submit:active,
.igit-rpwt-settings-wrap .igit-rpwt-panel-save-btn:active {
	transform: translateY(0);
}

.igit-rpwt-panel-save-btn {
	margin-left: auto;
	flex-shrink: 0;
}

.igit-rpwt-panel-save-btn.is-saving,
.igit-rpwt-form-footer input[type="submit"].is-saving {
	opacity: 0.55 !important;
	cursor: wait !important;
	pointer-events: none;
}

/* Hide the bottom footer save button once JS is active (panel headers have their own). */
.igit-rpwt-js-loaded .igit-rpwt-form-footer {
	display: none;
}

/* ── AJAX Toast notification ────────────────────────────────────────── */
#igit-rpwt-toast {
	position: fixed;
	top: 48px;
	left: 50%;
	transform: translateX(-50%) translateY(-24px);
	z-index: 99999;
	/* Success: vivid green */
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	color: #fff;
	border: none;
	border-radius: 14px;
	padding: 14px 28px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	box-shadow: 0 8px 32px rgba(16, 185, 129, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
	min-width: 220px;
	max-width: 420px;
	text-align: center;
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
	pointer-events: none;
	white-space: nowrap;
}

#igit-rpwt-toast.is-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

#igit-rpwt-toast.is-hiding {
	transition: transform 0.3s ease, opacity 0.3s ease;
	transform: translateX(-50%) translateY(-20px);
	opacity: 0;
}

#igit-rpwt-toast[data-type="error"] {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	box-shadow: 0 8px 32px rgba(239, 68, 68, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35);
	color: #fff;
}

/* ── Vertical Tabs Layout ────────────────────────────────────────────────── */
.igit-rpwt-tabs {
	display: flex;
	background: var(--igit-bg-card);
	border: 1px solid var(--igit-border);
	border-radius: var(--igit-radius) var(--igit-radius) 0 0;
	box-shadow: var(--igit-shadow-sm);
	overflow: hidden;
	min-height: 440px;
}

.igit-rpwt-tab-nav {
	flex: 0 0 195px;
	width: 195px;
	background: var(--igit-bg-page);
	border-right: 1px solid var(--igit-border);
	padding: 8px 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.igit-rpwt-tab-btn {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 11px 14px;
	background: transparent;
	border: none;
	border-left: 3px solid transparent;
	color: var(--igit-text-muted);
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
	line-height: 1.3;
	box-shadow: none;
}

.igit-rpwt-tab-btn:hover {
	color: var(--igit-text);
	background: rgba(129, 140, 248, 0.07);
	border-left-color: rgba(129, 140, 248, 0.3);
}

.igit-rpwt-tab-btn.is-active {
	color: var(--igit-accent);
	background: rgba(129, 140, 248, 0.1);
	border-left-color: var(--igit-accent);
	font-weight: 600;
}

.igit-rpwt-tab-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	opacity: 0.6;
	transition: opacity 0.14s ease;
}

.igit-rpwt-tab-btn.is-active .igit-rpwt-tab-icon {
	opacity: 1;
}

.igit-rpwt-tab-label {
	flex: 1;
}

.igit-rpwt-tab-pro-tag {
	flex-shrink: 0;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #000;
	background: var(--igit-amber);
	border-radius: 3px;
	padding: 1px 5px;
	line-height: 1.5;
	vertical-align: middle;
}

.igit-rpwt-tab-btn.has-pro-tag:hover .igit-rpwt-tab-pro-tag,
.igit-rpwt-tab-btn.has-pro-tag.is-active .igit-rpwt-tab-pro-tag {
	background: #fbbf24;
}

.igit-rpwt-tab-panels {
	flex: 1;
	min-width: 0;
	overflow-y: auto;
}

.igit-rpwt-tab-panel {
	display: none;
}

.igit-rpwt-tab-panel.is-active {
	display: block !important;
}

/* Panel section header (sticky title inside each panel) */
.igit-rpwt-panel-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px 12px;
	border-bottom: 1px solid var(--igit-border);
	background: var(--igit-bg-card);
	position: sticky;
	top: 0;
	z-index: 2;
}

.igit-rpwt-panel-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: rgba(129, 140, 248, 0.12);
	border-radius: 7px;
	color: var(--igit-accent);
	flex-shrink: 0;
}

.igit-rpwt-panel-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--igit-text);
	letter-spacing: 0.01em;
}

/* ── Sidebar Cards ───────────────────────────────────────────────────────── */
.igit-rpwt-card {
	background: var(--igit-bg-card);
	border: 1px solid var(--igit-border);
	border-radius: var(--igit-radius);
	padding: 18px 18px 16px;
	margin-bottom: 16px;
	box-shadow: var(--igit-shadow-sm);
	position: relative;
	overflow: hidden;
}

/* Colored left accent per card type */
.igit-rpwt-card--placement { border-left: 3px solid var(--igit-accent); }
.igit-rpwt-card--theme     { border-left: 3px solid var(--igit-accent-2); }
.igit-rpwt-card--block     { border-left: 3px solid var(--igit-accent-2); }
.igit-rpwt-card--cache     { border-left: 3px solid var(--igit-amber); }

.igit-rpwt-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.igit-rpwt-card-header svg {
	color: var(--igit-accent);
	flex-shrink: 0;
}

.igit-rpwt-card--block .igit-rpwt-card-header svg { color: var(--igit-accent-2); }
.igit-rpwt-card--cache .igit-rpwt-card-header svg { color: var(--igit-amber); }

.igit-rpwt-card h2,
.igit-rpwt-card-header h2 {
	font-size: 13px;
	font-weight: 700;
	margin: 0;
	padding: 0;
	color: var(--igit-text);
}

.igit-rpwt-card p {
	font-size: 12px;
	color: var(--igit-text-muted);
	margin: 0 0 10px;
	line-height: 1.55;
}

.igit-rpwt-card p:last-child { margin-bottom: 0; }

/* ── Code Blocks ─────────────────────────────────────────────────────────── */
.igit-rpwt-code-block {
	display: block;
	background: #0d1117;
	border: 1px solid var(--igit-border);
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 11px;
	word-break: break-all;
	margin-bottom: 10px;
	color: #79c0ff;
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	line-height: 1.5;
}

/* ── Category List ───────────────────────────────────────────────────────── */
.igit-rpwt-cat-list {
	max-height: 180px;
	overflow-y: auto;
	border: 1px solid var(--igit-border);
	border-radius: var(--igit-radius-sm);
	padding: 8px 12px;
	background: var(--igit-bg-input);
	width: 280px;
	scrollbar-width: thin;
	scrollbar-color: var(--igit-accent) transparent;
}

.igit-rpwt-cat-list::-webkit-scrollbar        { width: 5px; }
.igit-rpwt-cat-list::-webkit-scrollbar-track  { background: transparent; }
.igit-rpwt-cat-list::-webkit-scrollbar-thumb  { background: var(--igit-accent); border-radius: 3px; }

.igit-rpwt-cat-list ul  { margin: 0; padding: 0; list-style: none; }
.igit-rpwt-cat-list .children { padding-left: 16px; }

.igit-rpwt-cat-list li  { padding: 3px 0; }

.igit-rpwt-cat-list label {
	color: var(--igit-text);
	font-size: 12px;
	cursor: pointer;
}

.igit-rpwt-cat-list input[type="checkbox"] {
	accent-color: var(--igit-accent);
	margin-right: 4px;
}

/* ── Image Picker ────────────────────────────────────────────────────────── */
.igit-rpwt-image-picker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.igit-rpwt-upload-btn,
.igit-rpwt-settings-wrap .igit-rpwt-upload-btn.button {
	background: var(--igit-bg-input) !important;
	border: 1px solid var(--igit-border) !important;
	color: var(--igit-accent) !important;
	border-radius: var(--igit-radius-sm) !important;
	font-size: 13px !important;
	padding: 7px 14px !important;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
	height: auto !important;
	box-shadow: none !important;
}

.igit-rpwt-upload-btn:hover,
.igit-rpwt-settings-wrap .igit-rpwt-upload-btn.button:hover {
	background: rgba(129, 140, 248, 0.1) !important;
	border-color: var(--igit-accent) !important;
}

/* ── Flush Cache Button ──────────────────────────────────────────────────── */
.igit-rpwt-btn-flush {
	background: transparent;
	border: 1px solid var(--igit-amber);
	color: var(--igit-amber);
	font-size: 12px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: var(--igit-radius-sm);
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	width: 100%;
	margin-top: 6px;
	letter-spacing: 0.02em;
}

.igit-rpwt-btn-flush:hover {
	background: rgba(245, 158, 11, 0.1);
	transform: translateY(-1px);
}

/* ── Notice ──────────────────────────────────────────────────────────────── */
.igit-rpwt-notice {
	display: inline-block;
	margin-top: 10px;
	padding: 6px 12px;
	border-radius: var(--igit-radius-sm);
	font-size: 12px;
}

.igit-rpwt-notice--success {
	background: var(--igit-success-bg);
	border: 1px solid var(--igit-success);
	color: #6ee7b7;
}

/* ── Sidebar Theme Swatches (circular, in sidebar card) ─────────────────── */
.igit-rpwt-theme-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.igit-rpwt-theme-group-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--igit-text-muted);
	margin-bottom: 6px;
}

.igit-rpwt-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.igit-rpwt-theme-swatch {
	position: relative;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: var(--swatch-gradient);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	overflow: hidden;
	flex-shrink: 0;
}

.igit-rpwt-theme-swatch:hover {
	transform: scale(1.18);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.igit-rpwt-theme-swatch.is-active {
	border-color: #ffffff;
	box-shadow: 0 0 0 3px var(--igit-accent), 0 2px 6px rgba(0, 0, 0, 0.35);
	transform: scale(1.1);
}

.igit-rpwt-theme-swatch.is-light-swatch.is-active {
	border-color: rgba(0, 0, 0, 0.25);
}

.igit-rpwt-swatch-tick {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.15s ease;
	background: rgba(0, 0, 0, 0.12);
}

.igit-rpwt-theme-swatch.is-active .igit-rpwt-swatch-tick {
	opacity: 1;
}

/* Legacy elements no longer rendered – keep rules to avoid layout shift if cached JS runs */
.igit-rpwt-theme-bar         { display: none; }
.igit-rpwt-swatch-preview    { display: none; }
.igit-rpwt-swatch-label      { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media screen and (max-width: 960px) {
	.igit-rpwt-settings-layout {
		flex-direction: column;
		padding: 20px 16px 32px;
	}

	.igit-rpwt-settings-sidebar {
		flex: unset;
		width: 100%;
	}

	.igit-rpwt-hero {
		padding: 22px 16px;
	}

	.igit-rpwt-hero-badge {
		display: none;
	}

	.igit-rpwt-hero-text h1 {
		font-size: 18px;
	}

	/* Tabs: switch to horizontal scrolling nav on narrow screens */
	.igit-rpwt-tabs {
		flex-direction: column;
		min-height: unset;
	}

	.igit-rpwt-tab-nav {
		flex: unset;
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
		overflow-y: hidden;
		border-right: none;
		border-bottom: 1px solid var(--igit-border);
		padding: 4px 0 0;
		scrollbar-width: none;
	}

	.igit-rpwt-tab-nav::-webkit-scrollbar {
		display: none;
	}

	.igit-rpwt-tab-btn {
		white-space: nowrap;
		border-left: none;
		border-bottom: 3px solid transparent;
		padding: 8px 14px 6px;
		flex-shrink: 0;
	}

	.igit-rpwt-tab-btn:hover {
		border-left-color: transparent;
		border-bottom-color: rgba(129, 140, 248, 0.3);
	}

	.igit-rpwt-tab-btn.is-active {
		border-left-color: transparent;
		border-bottom-color: var(--igit-accent);
	}

	.igit-rpwt-tab-icon {
		display: none;
	}
}

/* ── Textarea (Custom CSS field) ─────────────────────────────────────────── */
.igit-rpwt-settings-wrap textarea.igit-rpwt-textarea {
	background:    var(--igit-bg-input) !important;
	border:        1px solid var(--igit-border) !important;
	color:         var(--igit-text) !important;
	border-radius: var(--igit-radius-sm) !important;
	padding:       10px 12px !important;
	font-size:     12px !important;
	font-family:   ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	line-height:   1.6 !important;
	resize:        vertical;
	box-shadow:    none !important;
	transition:    border-color 0.2s, box-shadow 0.2s;
	width:         100%;
	box-sizing:    border-box;
}

.igit-rpwt-settings-wrap textarea.igit-rpwt-textarea:focus {
	border-color: var(--igit-accent) !important;
	box-shadow:   0 0 0 3px rgba(129, 140, 248, 0.22) !important;
	outline:      none !important;
}

/* ── Checkbox Grid (post_types / relate_taxonomies) ──────────────────────── */
.igit-rpwt-checkbox-grid {
	display:   flex;
	flex-wrap: wrap;
	gap:       8px 16px;
}

.igit-rpwt-checkbox-item {
	display:     inline-flex;
	align-items: center;
	gap:         7px;
	cursor:      pointer;
	font-size:   13px;
	color:       var(--igit-text);
	padding:     5px 10px;
	background:  var(--igit-bg-input);
	border:      1px solid var(--igit-border);
	border-radius: 6px;
	transition:  border-color 0.15s, background 0.15s;
	user-select: none;
}

.igit-rpwt-checkbox-item:hover {
	border-color: var(--igit-accent);
	background:   rgba(129, 140, 248, 0.06);
}

.igit-rpwt-checkbox-item input[type="checkbox"] {
	width:  14px;
	height: 14px;
	accent-color: var(--igit-accent);
	cursor: pointer;
	flex-shrink: 0;
}

.igit-rpwt-checkbox-item input[type="checkbox"]:checked + span {
	color: var(--igit-accent);
}
/* ── Import / Export card ────────────────────────────────────────────────── */
.igit-rpwt-io-label {
        font-size:   12px;
        color:       var(--igit-text-muted);
        margin:      0 0 6px;
}

.igit-rpwt-btn-io {
        display:         inline-flex;
        align-items:     center;
        gap:             6px;
        padding:         7px 14px;
        border-radius:   var(--igit-radius-sm);
        font-size:       12px;
        font-weight:     600;
        cursor:          pointer;
        border:          1px solid var(--igit-border);
        transition:      background 0.15s, border-color 0.15s, color 0.15s;
        text-decoration: none;
}

.igit-rpwt-btn-io--export {
        background: var(--igit-bg-input);
        color:      var(--igit-text);
}

.igit-rpwt-btn-io--export:hover {
        background:   rgba(129, 140, 248, 0.1);
        border-color: var(--igit-accent);
        color:        var(--igit-accent);
}

.igit-rpwt-btn-io--import {
        background: var(--igit-accent);
        color:      #fff;
        border-color: var(--igit-accent);
}

.igit-rpwt-btn-io--import:hover {
        background:   var(--igit-accent-light);
        border-color: var(--igit-accent-light);
}

.igit-rpwt-import-row {
        display:     flex;
        align-items: center;
        gap:         8px;
        flex-wrap:   wrap;
}

.igit-rpwt-file-input {
        font-size:    12px;
        color:        var(--igit-text-muted);
        max-width:    100%;
}

/* ── Notice variants ─────────────────────────────────────────────────────── */
.igit-rpwt-notice--error {
        background: rgba(239, 68, 68, 0.1);
        border:     1px solid rgba(239, 68, 68, 0.35);
        color:      #ef4444;
        padding:    8px 12px;
        border-radius: var(--igit-radius-sm);
        font-size:  12px;
        margin:     0 0 10px;
}

/* ── Shortcode Generator card ────────────────────────────────────────────── */
.igit-rpwt-scgen {
        display:        flex;
        flex-direction: column;
        gap:            10px;
}

.igit-rpwt-scgen-row {
        display:     flex;
        align-items: center;
        gap:         10px;
}

.igit-rpwt-scgen-row label {
        font-size:   12px;
        font-weight: 600;
        color:       var(--igit-text-muted);
        min-width:   50px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
}

.igit-rpwt-scgen-row input,
.igit-rpwt-scgen-row select {
        background:   var(--igit-bg-input) !important;
        border:       1px solid var(--igit-border) !important;
        color:        var(--igit-text) !important;
        border-radius: var(--igit-radius-sm) !important;
        padding:      5px 8px !important;
        font-size:    12px !important;
        box-shadow:   none !important;
}

.igit-rpwt-scgen-preview {
        background:   var(--igit-bg-input);
        border:       1px solid var(--igit-border);
        border-radius: var(--igit-radius-sm);
        padding:      8px 12px;
        font-family:  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size:    12px;
        color:        var(--igit-accent);
        word-break:   break-all;
        user-select:  text;
}

.igit-rpwt-btn-copy {
        align-self:    flex-start;
        padding:       7px 14px;
        background:    var(--igit-bg-input);
        border:        1px solid var(--igit-border);
        border-radius: var(--igit-radius-sm);
        color:         var(--igit-text);
        font-size:     12px;
        font-weight:   600;
        cursor:        pointer;
        transition:    background 0.15s, border-color 0.15s, color 0.15s;
}

.igit-rpwt-btn-copy:hover {
        background:   rgba(129, 140, 248, 0.1);
        border-color: var(--igit-accent);
        color:        var(--igit-accent);
}

.igit-rpwt-scgen-copied {
        font-size:   11px;
        font-weight: 600;
        color:       #10b981;
        margin-left: 6px;
}

/* ── Integrations tab cards ──────────────────────────────────────────────── */
.igit-rpwt-integrations-wrap {
	display:               grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap:                   20px;
	padding:               20px;
}

.igit-rpwt-integration-card {
	display:        flex;
	flex-direction: column;
	gap:            10px;
	padding:        20px;
	border-radius:  var(--igit-radius);
	border:         1px solid var(--igit-border);
	background:     var(--igit-surface);
}

.igit-rpwt-integration-card--free {
	border-color: rgba(16, 185, 129, 0.35);
	background:   rgba(16, 185, 129, 0.04);
}

.igit-rpwt-integration-card--pro-active {
	border-color: rgba(129, 140, 248, 0.4);
	background:   rgba(129, 140, 248, 0.05);
}

.igit-rpwt-integration-card--pro-locked {
	border-color: rgba(129, 140, 248, 0.25);
	background:   var(--igit-surface);
}

.igit-rpwt-integration-card__header {
	display:     flex;
	align-items: center;
	gap:         10px;
}

.igit-rpwt-integration-card__header h3 {
	margin:      0;
	font-size:   14px;
	font-weight: 600;
	color:       var(--igit-text);
}

.igit-rpwt-integration-badge {
	display:        inline-flex;
	align-items:    center;
	padding:        2px 8px;
	font-size:      10px;
	font-weight:    700;
	letter-spacing: 0.06em;
	border-radius:  4px;
	text-transform: uppercase;
	flex-shrink:    0;
	color:          #fff;
}

.igit-rpwt-integration-badge--free   { background: #10b981; }
.igit-rpwt-integration-badge--pro    { background: var(--igit-accent); }
.igit-rpwt-integration-badge--active { background: #10b981; }

.igit-rpwt-integration-card p {
	margin:      0;
	font-size:   13px;
	color:       var(--igit-text-muted);
	line-height: 1.55;
}

.igit-rpwt-integration-card__code {
	font-family:   monospace;
	font-size:     12px;
	padding:       8px 12px;
	background:    var(--igit-bg);
	border:        1px solid var(--igit-border);
	border-radius: 6px;
	color:         var(--igit-text);
	word-break:    break-all;
}

.igit-rpwt-integration-card__btn.button {
	align-self: flex-start;
	margin-top: auto;
}

/* ── Pro feature preview pane (free version teaser) ─────────────────────── */
.igit-rpwt-feature-preview {
	pointer-events: none;
	user-select:    none;
	opacity:        0.75;
	margin-top:     12px;
}

/* ── Pro notice (locked tabs/fields in free version) ────────────────────── */
.igit-rpwt-pro-notice {
        display:       flex;
        align-items:   center;
        gap:           10px;
        padding:       14px 18px;
        background:    linear-gradient(135deg, rgba(129,140,248,0.08) 0%, rgba(99,102,241,0.05) 100%);
        border:        1px solid rgba(129, 140, 248, 0.3);
        border-radius: var(--igit-radius);
        margin:        12px 20px 16px;
        flex-wrap:     wrap;
}

.igit-rpwt-pro-badge {
        display:        inline-flex;
        align-items:    center;
        padding:        2px 8px;
        background:     var(--igit-accent);
        color:          #fff;
        font-size:      10px;
        font-weight:    700;
        letter-spacing: 0.06em;
        border-radius:  4px;
        text-transform: uppercase;
        flex-shrink:    0;
}

.igit-rpwt-pro-notice strong {
        color: var(--igit-text);
}

.igit-rpwt-upgrade-link {
        color:           var(--igit-accent);
        font-weight:     600;
        text-decoration: none;
}

.igit-rpwt-upgrade-link:hover {
        text-decoration: underline;
}

.igit-rpwt-checkbox-item--locked {
        opacity: 0.6;
        cursor:  not-allowed;
}

.igit-rpwt-checkbox-item--locked input[type="checkbox"] {
	cursor: not-allowed;
}

/* ── Post Nudges admin preview ───────────────────────────────────────────── */
.igit-rpwt-nudge-preview-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 16px 20px 20px;
	pointer-events: none;
	user-select: none;
	opacity: 0.8;
}

.igit-rpwt-nudge-preview {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 420px;
}

.igit-rpwt-nudge-preview__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--igit-text-muted);
}

/* shared nudge card base */
.igit-rpwt-nudge-preview__card {
	background: var(--igit-bg-card);
	border: 1px solid var(--igit-border);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.55);
	overflow: hidden;
}

/* ── Compact ─── */
.igit-rpwt-nudge--compact.igit-rpwt-nudge-preview__card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	width: 320px;
	max-width: 100%;
}

.igit-rpwt-nudge__thumb-placeholder {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--igit-accent-dark) 0%, var(--igit-accent) 100%);
	flex-shrink: 0;
	opacity: 0.6;
}

.igit-rpwt-nudge__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.igit-rpwt-nudge__label {
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--igit-accent);
	opacity: 0.85;
}

.igit-rpwt-nudge__title {
	font-size: 12px;
	font-weight: 600;
	color: var(--igit-text);
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.igit-rpwt-nudge__meta {
	font-size: 11px;
	color: var(--igit-text-muted);
}

.igit-rpwt-nudge__actions {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-shrink: 0;
}

.igit-rpwt-nudge__skip {
	font-size: 10px;
	font-weight: 500;
	color: var(--igit-text-muted);
	background: none;
	border: 1px solid var(--igit-border);
	border-radius: 4px;
	padding: 2px 7px;
	cursor: pointer;
	line-height: 1.5;
}

.igit-rpwt-nudge__close {
	font-size: 14px;
	line-height: 1;
	color: var(--igit-text-muted);
	background: none;
	border: none;
	cursor: pointer;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	padding: 0;
	align-self: flex-end;
}

/* ── Card ─── */
.igit-rpwt-nudge--card.igit-rpwt-nudge-preview__card {
	width: 240px;
	max-width: 100%;
	position: relative;
}

.igit-rpwt-nudge__close--card {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 1;
	background: rgba(0,0,0,0.45);
	color: #fff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
}

.igit-rpwt-nudge__card-thumb {
	position: relative;
	width: 100%;
}

.igit-rpwt-nudge__thumb-placeholder--card {
	width: 100%;
	height: 120px;
	border-radius: 0;
	background: linear-gradient(135deg, var(--igit-accent-dark) 0%, var(--igit-accent-2) 100%);
	opacity: 0.5;
}

.igit-rpwt-nudge__cat-badge {
	position: absolute;
	bottom: 6px;
	left: 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--igit-accent);
	color: #fff;
	border-radius: 4px;
	padding: 2px 6px;
}

.igit-rpwt-nudge__card-body {
	padding: 10px 12px 8px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.igit-rpwt-nudge__read-btn {
	display: inline-block;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 600;
	color: var(--igit-accent);
	text-decoration: none;
}

.igit-rpwt-nudge__skip--card {
	width: 100%;
	border: none;
	border-top: 1px solid var(--igit-border);
	background: none;
	padding: 6px;
	font-size: 10px;
	color: var(--igit-text-muted);
	cursor: pointer;
	text-align: center;
}

/* ── Minimal ─── */
.igit-rpwt-nudge--minimal.igit-rpwt-nudge-preview__card {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 100px;
	width: 320px;
	max-width: 100%;
}

.igit-rpwt-nudge__minimal-icon {
	font-size: 15px;
	flex-shrink: 0;
}

.igit-rpwt-nudge__minimal-text {
	flex: 1;
	font-size: 12px;
	font-weight: 500;
	color: var(--igit-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Sticky save bar (inside .igit-rpwt-settings-main) ────────────────── */
.igit-rpwt-sticky-save-bar {
	position: sticky;
	bottom: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 12px 20px;
	background: var(--igit-bg-card);
	border-top: 1px solid var(--igit-border);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
	border-radius: 0 0 var(--igit-radius) var(--igit-radius);
}

.igit-rpwt-floating-save {
	background: var(--igit-accent);
	color: #fff;
	border: none;
	border-radius: var(--igit-radius);
	padding: 10px 24px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(99,102,241,0.35);
	transition: opacity 0.2s, transform 0.2s;
}
.igit-rpwt-floating-save:hover { opacity: 0.9; transform: translateY(-1px); }
.igit-rpwt-floating-save:active { transform: translateY(0); }
.igit-rpwt-floating-save.is-saving { opacity: 0.7; cursor: wait; }

/* ── Relate-by description hint ──────────────────────────────────────────── */
.igit-rpwt-relate-by-desc {
	margin-top: 8px;
	padding: 8px 12px;
	background: rgba(99, 102, 241, 0.06);
	border-left: 3px solid var(--igit-accent);
	border-radius: 0 4px 4px 0;
	font-size: 12px;
	line-height: 1.6;
	color: var(--igit-text-muted);
	max-width: 480px;
}
.igit-rpwt-relate-by-desc:empty { display: none; }

.igit-rpwt-cat-list li::marker {
  content: "";
}

/* ── "Show…" meta badge group — visual border grouping ───────────────────── */
/*
 * Wraps the five consecutive metadata-toggle rows (Show Title → Show Comment
 * Count) in a shared rounded border to signal they belong together.
 *
 * label_for is set to $key (e.g. "show_title"), so the rendered for=""
 * attribute is "show_title" — not "igit_rpwt_show_title".
 */

/* Remove inter-row dividers inside the group */
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_excerpt"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_date"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_reading_time"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_comment_count"]) {
	border-bottom: none;
	position: relative;
}

/* Left border on all th cells */
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]) th,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_excerpt"]) th,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_date"]) th,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_reading_time"]) th,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_comment_count"]) th {
	border-left: 2px solid rgba(129, 140, 248, 0.35);
}

/* Right border on all td cells */
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]) td,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_excerpt"]) td,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_date"]) td,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_reading_time"]) td,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_comment_count"]) td {
	border-right: 2px solid rgba(129, 140, 248, 0.35);
}

/* Subtle inner divider between rows (first 4 rows only) */
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_excerpt"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_date"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_reading_time"]) {
	border-bottom: 1px solid rgba(129, 140, 248, 0.12) !important;
}

/* Top border + rounded top corners on first row */
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]) th {
	border-top: 2px solid rgba(129, 140, 248, 0.35);
	border-top-left-radius: 8px;
}
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]) td {
	border-top: 2px solid rgba(129, 140, 248, 0.35);
	border-top-right-radius: 8px;
}

/* Bottom border + rounded bottom corners on last row */
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_comment_count"]) th {
	border-bottom: 2px solid rgba(129, 140, 248, 0.35) !important;
	border-bottom-left-radius: 8px;
}
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_comment_count"]) td {
	border-bottom: 2px solid rgba(129, 140, 248, 0.35) !important;
	border-bottom-right-radius: 8px;
}

/* Subtle tinted background for grouped rows */
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_excerpt"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_date"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_reading_time"]),
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_comment_count"]) {
	background: rgba(129, 140, 248, 0.03);
}
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_title"]):hover,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_excerpt"]):hover,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_date"]):hover,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_reading_time"]):hover,
.igit-rpwt-settings-wrap tr:has(th[scope="row"] label[for="show_comment_count"]):hover {
	background: rgba(129, 140, 248, 0.07);
}
