/* Portal Front-End Customizer & Studio - v1.7.4 */
html:root, :root, body {
	--pfc-primary: #1d4ed8;
	--pfc-secondary: #0f172a;
	--pfc-accent: #24b4f4;
	--pfc-card-bg: #ffffff;
	--pfc-bg-color: #f8fafc;
	--pfc-text-color: #0f172a;
	--pfc-btn-start: #091b42;
	--pfc-btn-end: #24b4f4;
	--pfc-hero-title: #ffffff;
	--pfc-hero-subtitle: #e2e8f0;
	--pfc-hero-stats: #ffffff;
	--pfc-filter-bg: #ffffff;
	--pfc-filter-text: #0f172a;
	--pfc-filter-label: #475569;
	--pfc-filter-border: #cbd5e1;
	--pfc-filter-tab-bg: #1e293b;
	--pfc-filter-tab-text: #ffffff;
	--pfc-filter-btn-bg: #1d4ed8;
	--pfc-filter-btn-text: #ffffff;
	--pfc-font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--pfc-bg-darken: 35%;
	--pfc-overlay-alpha: 0.35;
	--pfc-bg-image: none;
	--pfc-hero-darken: 45%;
	--pfc-hero-overlay-alpha: 0.45;
	--pfc-hero-image: none;
}

.pfc-hidden {
	display: none !important;
}

.pfc-muted {
	color: #64748b;
	font-size: 13px;
	margin: 0;
}

.pfc-icon-xs {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
	opacity: 0.78;
}

.pfc-chevron {
	width: 11px;
	height: 11px;
	transition: transform 0.18s ease;
}

.pfc-restricted-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.pfc-restricted-trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 13px;
	border-radius: 9px;
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #1e293b;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	font-family: var(--pfc-font-family);
	transition: background 0.15s, border-color 0.15s;
}

.pfc-restricted-trigger:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

.pfc-restricted-trigger[aria-expanded="true"] .pfc-chevron {
	transform: rotate(180deg);
}

.pfc-restricted-trigger-dark {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.22);
	color: #f8fafc;
}

.pfc-restricted-trigger-dark:hover {
	background: rgba(255, 255, 255, 0.14);
}

.pfc-restricted-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 168px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.18);
	padding: 6px;
	display: none;
	flex-direction: column;
	gap: 2px;
	z-index: 1200;
}

.pfc-restricted-menu.is-open {
	display: flex;
}

.pfc-restricted-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 500;
	color: #1e293b;
	text-decoration: none;
	transition: background 0.15s;
}

.pfc-restricted-item:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.pfc-restricted-logout {
	color: #b91c1c;
	border-top: 1px solid #f1f5f9;
	margin-top: 2px;
	padding-top: 9px;
}

.pfc-restricted-logout:hover {
	background: #fef2f2;
	color: #991b1b;
}

.pfc-header {
	width: 100%;
	background: var(--pfc-card-bg);
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	top: 0;
	z-index: 990;
	font-family: var(--pfc-font-family);
}

.pfc-header-wrap {
	max-width: 1400px;
	margin: 0 auto;
	padding: 12px clamp(16px, 4vw, 40px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.pfc-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--pfc-text-color);
}

.pfc-header-logo {
	max-height: 42px;
	width: auto;
	object-fit: contain;
}

.pfc-brand-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.pfc-brand-meta strong {
	font-size: 16px;
	font-weight: 800;
	color: var(--pfc-secondary);
}

.pfc-brand-meta small {
	font-size: 12px;
	color: #64748b;
}

.pfc-nav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.pfc-nav a {
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--pfc-text-color);
	padding: 7px 12px;
	border-radius: 8px;
}

.pfc-nav a:hover {
	background: rgba(15, 23, 42, 0.06);
	color: var(--pfc-primary);
}

.pfc-header-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.pfc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 700;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--pfc-font-family);
	transition: opacity 0.18s;
}

.pfc-btn-sm {
	height: 34px;
	padding: 0 12px;
	font-size: 12.5px;
}

.pfc-btn-xs {
	height: 28px;
	padding: 0 9px;
	font-size: 11.5px;
	border-radius: 6px;
}

.pfc-btn-primary {
	background: linear-gradient(90deg, var(--pfc-btn-start), var(--pfc-btn-end));
	color: #ffffff !important;
}

.pfc-btn-secondary {
	background: var(--pfc-primary);
	color: #ffffff !important;
}

.pfc-btn-wa {
	background: #16a34a;
	color: #ffffff !important;
}

.pfc-btn-outline {
	background: transparent;
	border: 1px solid #cbd5e1;
	color: inherit;
}

.pfc-btn-danger {
	background: #dc2626;
	color: #ffffff !important;
}

.pfc-btn:hover {
	opacity: 0.92;
}

.pfc-login-stage {
	position: relative;
	min-height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background-color: var(--pfc-secondary);
	font-family: var(--pfc-font-family);
	box-sizing: border-box;
}

.pfc-login-card {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 420px;
	background: var(--pfc-card-bg);
	color: #0f172a; /* painel: cor fixa, independente da "Cor do texto" do site */
	border: 1px solid #e2e8f0;
	border-radius: 18px;
	padding: 34px 30px;
	box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;
}

.pfc-login-head {
	text-align: center;
	margin-bottom: 22px;
}

.pfc-login-logo {
	max-height: 52px;
	width: auto;
	margin: 0 auto 10px;
	display: block;
}

.pfc-login-head h1 {
	margin: 0 0 4px;
	font-size: 21px;
	font-weight: 800;
	color: var(--pfc-secondary);
}

.pfc-login-head p {
	margin: 0;
	font-size: 13.5px;
	color: #64748b;
}

.pfc-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pfc-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pfc-field-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.pfc-field label {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a; /* painel: cor fixa, independente da "Cor do texto" do site */
}

.pfc-field input[type="text"],
.pfc-field input[type="password"],
.pfc-field input[type="url"] {
	height: 42px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	background: #ffffff;
	color: #0f172a;
	font-family: var(--pfc-font-family);
}

.pfc-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
}

.pfc-login-foot {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
	text-align: center;
}

.pfc-login-foot a {
	font-size: 13px;
	color: #64748b;
	text-decoration: none;
}

.pfc-studio {
	max-width: 1380px;
	margin: 24px auto 64px;
	padding: 0 20px;
	font-family: var(--pfc-font-family);
	color: #0f172a; /* painel: cor fixa, independente da "Cor do texto" do site */
	box-sizing: border-box;
}

.pfc-studio *, .pfc-studio *::before, .pfc-studio *::after {
	box-sizing: border-box;
}

.pfc-studio-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	background: var(--pfc-secondary);
	color: #ffffff;
	padding: 16px 24px;
	border-radius: 14px;
	margin-bottom: 20px;
}

.pfc-studio-title {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pfc-pill {
	background: var(--pfc-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 6px;
}

.pfc-studio-title h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

.pfc-studio-user {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 13px;
}

.pfc-studio-layout {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 24px;
	align-items: start;
}

.pfc-studio-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.pfc-section-card {
	background: var(--pfc-card-bg);
	color: #0f172a; /* painel: cor fixa, independente da "Cor do texto" do site */
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.05);
}

.pfc-section-head {
	margin-bottom: 18px;
}

.pfc-section-head h3 {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 800;
	color: var(--pfc-secondary);
}

.pfc-section-head p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.pfc-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pfc-upload-box {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px;
	background: #f8fafc;
}

.pfc-box-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #0f172a;
}

.pfc-thumb-frame {
	height: 92px;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	padding: 8px;
	font-size: 12.5px;
	color: #64748b;
}

.pfc-thumb-frame img {
	max-height: 72px;
	max-width: 100%;
	object-fit: contain;
}

.pfc-range {
	width: 100%;
	cursor: pointer;
}

.pfc-assets-manager {
	margin-top: 18px;
	border-top: 1px solid #e2e8f0;
	padding-top: 14px;
}

.pfc-assets-header {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
}

.pfc-assets-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pfc-asset-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #ffffff;
}

.pfc-asset-row img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 6px;
}

.pfc-asset-info {
	flex: 1;
	min-width: 0;
}

.pfc-asset-info strong {
	display: block;
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pfc-asset-info small {
	color: #64748b;
	font-size: 11.5px;
}

.pfc-asset-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.pfc-select {
	height: 42px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 14px;
	background: #ffffff;
	color: #0f172a;
	font-family: var(--pfc-font-family);
}

.pfc-colors-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.pfc-color-card {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	background: #f8fafc;
}

.pfc-color-card label {
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #0f172a;
}

.pfc-color-pair {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pfc-color-pair input[type="color"] {
	width: 40px;
	height: 38px;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.pfc-hex-input {
	height: 38px;
	width: 96px;
	padding: 0 8px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 13px;
	font-family: monospace;
	background: #ffffff;
	color: #0f172a;
}

.pfc-footer-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.pfc-alert {
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	margin-bottom: 16px;
}

.pfc-alert-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.pfc-alert-error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.pfc-alert-info {
	background: #dbeafe;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.pfc-sticky {
	position: sticky;
	top: 24px;
}

.pfc-preview-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	font-weight: 800;
	color: #64748b;
	margin-bottom: 14px;
}

.pfc-live-badge {
	background: #dcfce7;
	color: #15803d;
	padding: 2px 9px;
	border-radius: 999px;
}

.pfc-mock-window {
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	overflow: hidden;
	background: var(--pfc-bg-color);
	color: var(--pfc-text-color);
	font-family: var(--pfc-font-family);
}

.pfc-mock-header {
	background: var(--pfc-card-bg);
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
}

.pfc-mock-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pfc-mock-brand img {
	max-height: 28px;
	width: auto;
}

#pfc-mock-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
}

.pfc-mock-brand strong {
	display: block;
	font-size: 13px;
	color: var(--pfc-secondary);
}

.pfc-mock-brand small {
	display: block;
	font-size: 11px;
	color: #64748b;
}

.pfc-mock-wa {
	background: #16a34a;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 6px;
}

.pfc-mock-hero {
	position: relative;
	padding: 28px 20px;
	text-align: center;
	background-color: var(--pfc-secondary);
	background-image: linear-gradient(rgba(15, 23, 42, var(--pfc-hero-overlay-alpha)), rgba(15, 23, 42, var(--pfc-hero-overlay-alpha))), var(--pfc-hero-image);
	background-size: var(--pfc-hero-bg-size, cover);
	background-repeat: no-repeat;
	background-position: var(--pfc-hero-bg-position, center center);
	background-attachment: scroll;
	color: var(--pfc-hero-title);
}

.pfc-mock-hero-body {
	position: relative;
	z-index: 2;
}

.pfc-mock-hero-body h4 {
	margin: 0 0 6px;
	font-size: 18px;
	color: var(--pfc-hero-title);
	font-family: var(--pfc-font-family);
}

.pfc-mock-hero-body p {
	margin: 0 0 14px;
	font-size: 12.5px;
	color: var(--pfc-hero-subtitle);
	font-family: var(--pfc-font-family);
}

.pfc-mock-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	background: linear-gradient(90deg, var(--pfc-btn-start), var(--pfc-btn-end));
	color: #ffffff;
	font-family: var(--pfc-font-family);
}

.pfc-mock-filter {
	padding: 14px 16px;
	background: var(--pfc-bg-color);
	border-top: 1px solid #e2e8f0;
}

.pfc-mock-filter-tabs {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 8px;
}

.pfc-mock-tab {
	font-size: 11px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 7px;
	background: var(--pfc-filter-bg);
	color: var(--pfc-filter-text);
	border: 1px solid var(--pfc-filter-border);
}

.pfc-mock-tab.is-active {
	background: var(--pfc-filter-tab-bg);
	color: var(--pfc-filter-tab-text);
	border-color: var(--pfc-filter-tab-bg);
}

.pfc-mock-filter-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--pfc-filter-bg);
	border: 1px solid var(--pfc-filter-border);
	border-radius: 10px;
	padding: 8px 10px;
}

.pfc-mock-filter-field {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pfc-mock-filter-field small {
	font-size: 9px;
	font-weight: 700;
	color: var(--pfc-filter-label);
}

.pfc-mock-filter-field span {
	font-size: 11px;
	font-weight: 600;
	color: var(--pfc-filter-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pfc-mock-filter-btn {
	font-size: 11px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 7px;
	background: var(--pfc-filter-btn-bg);
	color: var(--pfc-filter-btn-text);
}

@media (max-width: 960px) {
	.pfc-studio-layout {
		grid-template-columns: 1fr;
	}
	.pfc-grid-2,
	.pfc-colors-grid {
		grid-template-columns: 1fr;
	}
}

.logo-container,
[class*='logo-container']:not(.pfc-studio *),
[class*='brand-logo']:not(.pfc-studio *) {
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}


body:not(.page-id-aparenciadosite) .hero [class*="stat"],
body:not(.page-id-aparenciadosite) .hero [class*="metric"],
body:not(.page-id-aparenciadosite) .hero [class*="counter"],
body:not(.page-id-aparenciadosite) .hero [class*="kpi"],
body:not(.page-id-aparenciadosite) .hero-section [class*="stat"],
body:not(.page-id-aparenciadosite) .hero-section [class*="metric"],
body:not(.page-id-aparenciadosite) .hero-section [class*="counter"],
body:not(.page-id-aparenciadosite) .hero-section [class*="kpi"],
body:not(.page-id-aparenciadosite) section[class*="hero"] [class*="stat"],
body:not(.page-id-aparenciadosite) section[class*="hero"] [class*="metric"],
body:not(.page-id-aparenciadosite) section[class*="hero"] [class*="counter"],
body:not(.page-id-aparenciadosite) section[class*="banner"] [class*="stat"],
body:not(.page-id-aparenciadosite) section[class*="banner"] [class*="metric"],
body:not(.page-id-aparenciadosite) section[class*="banner"] [class*="counter"],
body:not(.page-id-aparenciadosite) [class*="hero-stats"],
body:not(.page-id-aparenciadosite) [class*="stats-grid"],
body:not(.page-id-aparenciadosite) [class*="stats-bar"],
body:not(.page-id-aparenciadosite) [class*="stat-card"],
body:not(.page-id-aparenciadosite) [class*="stat-item"] {
  background-image: none !important;
  background-size: auto !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-attachment: scroll !important;
}


/* Seção 7 — Rodapé */
.pfc-field textarea.pfc-textarea {
	width: 100%;
	min-height: 84px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	line-height: 1.5;
	resize: vertical;
	box-sizing: border-box;
	background: #fff;
	color: #0f172a;
}
.pfc-field textarea.pfc-textarea:focus {
	outline: none;
	border-color: #1d4ed8;
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.pfc-footer-show {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.pfc-footer-show-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	font-size: 13px;
	cursor: pointer;
	background: #fff;
}
.pfc-footer-show-item input { margin: 0; }


/* Seção 8 — Layout do Site */
.pfc-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
}
.pfc-layout-opt {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px;
	border: 2px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pfc-layout-opt:has(input:checked) {
	border-color: #1d4ed8;
	box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}
.pfc-layout-opt input {
	position: absolute;
	top: 12px;
	right: 12px;
	accent-color: #1d4ed8;
}
.pfc-layout-opt strong { font-size: 14px; color: #0f172a; }
.pfc-layout-opt small { font-size: 12.5px; color: #64748b; line-height: 1.45; }
.pfc-layout-opt a { font-size: 12.5px; font-weight: 600; color: #1d4ed8; text-decoration: none; width: fit-content; }
.pfc-layout-thumb {
	position: relative;
	display: block;
	height: 86px;
	border-radius: 10px;
	background: linear-gradient(135deg, #1e293b, #334155);
	overflow: hidden;
}
.pfc-layout-thumb i, .pfc-layout-thumb b, .pfc-layout-thumb em {
	position: absolute;
	display: block;
	border-radius: 4px;
}
.pfc-layout-thumb-1 i { left: 25%; right: 25%; top: 16px; height: 9px; background: #fff; }
.pfc-layout-thumb-1 b { left: 33%; right: 33%; top: 31px; height: 5px; background: #94a3b8; }
.pfc-layout-thumb-1 em { left: 10%; right: 10%; bottom: 14px; height: 18px; background: #fff; border-radius: 6px; }
.pfc-layout-thumb-2 { background: linear-gradient(90deg, #0f172a 50%, #64748b); }
.pfc-layout-thumb-2 i { left: 9%; width: 40%; top: 22px; height: 11px; background: #fff; }
.pfc-layout-thumb-2 b { left: 9%; width: 30%; top: 40px; height: 5px; background: #94a3b8; }
.pfc-layout-thumb-2 em { right: 8%; width: 34%; top: 12px; bottom: 12px; background: #fff; border-radius: 8px; }

.pfc-layout-thumb-3 { background: linear-gradient(180deg, #334155 0%, #0b1020 100%); }
.pfc-layout-thumb-3 i { left: 8%; width: 46%; bottom: 28px; height: 10px; background: #fff; }
.pfc-layout-thumb-3 b { left: 8%; width: 60%; bottom: 12px; height: 9px; background: rgba(255, 255, 255, 0.45); border-radius: 5px; }
.pfc-layout-thumb-3 em { right: 8%; width: 26%; top: 12px; height: 18px; background: #1d4ed8; border-radius: 4px; }

.pfc-layout-thumb-4 { background: #eef1f6; }
.pfc-layout-thumb-4 i { left: 6%; top: 10px; bottom: 10px; width: 28%; background: #0f172a; border-radius: 6px; }
.pfc-layout-thumb-4 b { left: 38%; right: 6%; top: 10px; height: 34px; background: #fff; border-radius: 6px; }
.pfc-layout-thumb-4 em { left: 38%; right: 6%; bottom: 10px; height: 26px; background: #fff; border-radius: 6px; box-shadow: inset 0 -8px 0 #1d4ed8; }

.pfc-layout-thumb-5 { background: #fbfaf7; border: 1px solid #ebe7e0; }
.pfc-layout-thumb-5 i { left: 25%; right: 25%; top: 14px; height: 10px; background: #0f172a; }
.pfc-layout-thumb-5 b { left: 18%; right: 18%; top: 32px; height: 14px; background: #fff; border: 1px solid #ddd; border-radius: 7px; }
.pfc-layout-thumb-5 em { left: 10%; right: 10%; bottom: 8px; height: 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, #cbd5e1 0 30%, transparent 30% 35%); }


/* O painel (Aparência do Site) e a tela de login usam cores próprias e legíveis,
   independentes da paleta do site. A pré-visualização (.pfc-mock-window) continua
   mostrando as cores escolhidas para o site. */
.pfc-studio .pfc-btn-outline,
.pfc-studio .pfc-section-head h3,
.pfc-studio .pfc-section-head p,
.pfc-studio .pfc-field input,
.pfc-studio .pfc-field select,
.pfc-studio .pfc-field textarea,
.pfc-studio .pfc-layout-opt strong,
.pfc-studio .pfc-color-card label,
.pfc-login-card input {
	color: #0f172a;
}
.pfc-studio .pfc-section-head p,
.pfc-studio .pfc-layout-opt small { color: #64748b; }


/* ═══════════════════════════════════════════════════════════════════
   PAINEL "APARÊNCIA DO SITE" — layout reorganizado (v2.9)
   Cores fixas do painel, independentes da paleta do site
   ═══════════════════════════════════════════════════════════════════ */
.pfc-studio {
	--ui-tinta: #0f172a;
	--ui-suave: #64748b;
	--ui-linha: #e5e9f0;
	--ui-fundo: #f4f6fa;
	--ui-acento: #1d4ed8;
	max-width: 1560px;
	margin: 0 auto;
	padding: 20px 24px 0;
	background: var(--ui-fundo);
	color: var(--ui-tinta);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
}

/* Barra superior */
.pfc-studio .pfc-studio-topbar {
	background: var(--ui-tinta);
	border-radius: 16px;
	padding: 14px 20px;
	margin-bottom: 20px;
}
.pfc-studio .pfc-pill { background: var(--ui-acento); letter-spacing: 0.06em; }
.pfc-studio .pfc-studio-title h2 { font-size: 19px; }
.pfc-studio .pfc-btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff !important;
	text-decoration: none;
}
.pfc-studio .pfc-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* Três colunas: navegação | formulário | pré-visualização */
.pfc-studio .pfc-studio-layout {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr) minmax(320px, 400px);
	gap: 20px;
	align-items: start;
}
.pfc-studio .pfc-studio-nav {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--ui-linha);
}
.pfc-studio .pfc-studio-nav a {
	display: block;
	padding: 9px 12px;
	border-radius: 10px;
	color: var(--ui-suave);
	font-weight: 600;
	font-size: 13.5px;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.pfc-studio .pfc-studio-nav a:hover { background: var(--ui-fundo); color: var(--ui-tinta); }
.pfc-studio .pfc-studio-nav a.is-on { background: #eef2ff; color: var(--ui-acento); }
.pfc-studio .pfc-studio-main { gap: 0; min-width: 0; }
.pfc-studio .pfc-studio-preview { position: sticky; top: 20px; }
.pfc-studio .pfc-studio-preview .pfc-sticky { position: static; margin: 0; }

/* Cartões de seção */
.pfc-studio .pfc-section-card {
	background: #fff;
	color: var(--ui-tinta);
	border: 1px solid var(--ui-linha);
	border-radius: 18px;
	padding: 24px;
	margin-bottom: 18px;
	box-shadow: none;
	scroll-margin-top: 20px;
}
.pfc-studio .pfc-section-head {
	margin: -24px -24px 20px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--ui-linha);
}
.pfc-studio .pfc-section-head h3 { font-size: 16.5px; color: var(--ui-tinta); margin: 0 0 3px; }
.pfc-studio .pfc-section-head p { color: var(--ui-suave); font-size: 13px; line-height: 1.5; }
.pfc-studio .pfc-mt { margin-top: 18px; }

/* Campos */
.pfc-studio .pfc-field label,
.pfc-studio .pfc-box-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--ui-tinta);
	letter-spacing: 0.01em;
}
.pfc-studio .pfc-field input[type="text"],
.pfc-studio .pfc-field input[type="password"],
.pfc-studio .pfc-field input[type="url"],
.pfc-studio .pfc-field select,
.pfc-studio .pfc-select,
.pfc-studio .pfc-field textarea {
	width: 100%;
	min-height: 42px;
	border: 1px solid #d6dce6;
	border-radius: 10px;
	background: #fff;
	color: var(--ui-tinta);
	font: inherit;
	font-size: 14px;
	padding: 0 12px;
}
.pfc-studio .pfc-field textarea { padding: 10px 12px; }
.pfc-studio .pfc-field select { padding-right: 32px; }
.pfc-studio .pfc-field input:focus,
.pfc-studio .pfc-field select:focus,
.pfc-studio .pfc-field textarea:focus {
	outline: none;
	border-color: var(--ui-acento);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}
.pfc-studio .pfc-grid-2 { gap: 14px 16px; }
.pfc-studio .pfc-range { accent-color: var(--ui-acento); width: 100%; }

/* Envio de imagens: 4 caixas lado a lado */
.pfc-studio .pfc-uploads {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.pfc-studio .pfc-upload-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: var(--ui-fundo);
	border: 1px solid var(--ui-linha);
	border-radius: 14px;
	padding: 12px;
}
.pfc-studio .pfc-thumb-frame {
	height: 110px;
	border-radius: 10px;
	background: #fff repeating-conic-gradient(#f1f5f9 0 25%, #fff 0 50%) 0 0 / 16px 16px;
	border: 1px dashed #cbd5e1;
	margin: 0;
}
.pfc-studio .pfc-thumb-frame img { object-fit: contain; }
.pfc-studio .pfc-upload-controls .pfc-btn { width: 100%; justify-content: center; }

/* Biblioteca: grade de miniaturas */
.pfc-studio .pfc-assets-manager { margin: 0; padding: 0; border: 0; }
.pfc-studio .pfc-assets-header { display: none; }
.pfc-studio .pfc-assets-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
	max-height: 560px;
	overflow-y: auto;
	padding: 2px;
}
.pfc-studio .pfc-asset-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 8px;
	margin: 0;
	border: 1px solid var(--ui-linha);
	border-radius: 14px;
	background: #fff;
}
.pfc-studio .pfc-asset-row img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 9px;
	background: var(--ui-fundo);
}
.pfc-studio .pfc-asset-info { min-width: 0; padding: 0 2px; }
.pfc-studio .pfc-asset-info strong {
	display: block;
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--ui-tinta);
}
.pfc-studio .pfc-asset-info small { font-size: 11.5px; color: var(--ui-suave); }
.pfc-studio .pfc-asset-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px;
	margin: 0;
}
.pfc-studio .pfc-asset-actions .pfc-btn {
	width: 100%;
	justify-content: center;
	padding: 6px 4px;
	font-size: 11.5px;
	color: var(--ui-tinta);
	border-color: #d6dce6;
	background: #fff;
}
.pfc-studio .pfc-asset-actions .pfc-btn:hover { border-color: var(--ui-acento); color: var(--ui-acento); }
.pfc-studio .pfc-asset-actions .pfc-btn-danger {
	grid-column: 1 / -1;
	background: #fff;
	color: #dc2626 !important;
	border: 1px solid #fecaca;
}
.pfc-studio .pfc-asset-actions .pfc-btn-danger:hover { background: #fef2f2; }

/* Cores: linhas compactas */
.pfc-studio .pfc-colors-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.pfc-studio .pfc-color-card {
	padding: 12px;
	border-radius: 12px;
	background: var(--ui-fundo);
	border: 1px solid var(--ui-linha);
}
.pfc-studio .pfc-color-card label { font-size: 12.5px; margin-bottom: 8px; display: block; }
.pfc-studio .pfc-color-pair { display: flex; align-items: center; gap: 8px; }
.pfc-studio .pfc-color-pair input[type="color"] {
	width: 38px;
	height: 38px;
	padding: 2px;
	border: 1px solid #d6dce6;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	flex: 0 0 38px;
}
.pfc-studio .pfc-color-pair .pfc-hex-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	border: 1px solid #d6dce6;
	border-radius: 10px;
	padding: 0 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	color: var(--ui-tinta);
	background: #fff;
}
.pfc-studio .pfc-transparent-btn {
	flex: 0 0 auto;
	height: 38px;
	padding: 0 10px;
	font-size: 11.5px;
	color: var(--ui-suave) !important;
	background: #fff;
	border: 1px solid #d6dce6;
}

/* Layouts: grade de cartões */
.pfc-studio .pfc-layout-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pfc-studio .pfc-layout-opt { border-width: 2px; border-radius: 14px; padding: 12px; }
.pfc-studio .pfc-layout-opt small { font-size: 12px; }

/* Barra de salvar fixa no rodapé da tela */
.pfc-studio .pfc-savebar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin: 0 0 0;
	padding: 14px 18px;
	border-radius: 16px 16px 0 0;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid var(--ui-linha);
	border-bottom: 0;
	box-shadow: 0 -10px 30px -16px rgba(15, 23, 42, 0.25);
	backdrop-filter: blur(8px);
}
.pfc-studio .pfc-savebar-txt { margin-right: auto; font-size: 13px; color: var(--ui-suave); }
.pfc-studio .pfc-savebar .pfc-btn-outline { color: var(--ui-tinta); border-color: #d6dce6; background: #fff; }
.pfc-studio .pfc-savebar .pfc-btn-primary {
	background: var(--ui-acento);
	color: #fff;
	min-width: 180px;
	justify-content: center;
}
.pfc-studio #pfc-studio-feedback:not(:empty) { margin-bottom: 16px; }

/* Pré-visualização */
.pfc-studio .pfc-studio-preview .pfc-section-card { padding: 16px; }
.pfc-studio .pfc-preview-top { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--ui-suave); margin-bottom: 12px; }

/* ── Telas médias: navegação vira linha de atalhos ── */
@container pfcpainel (max-width: 1240px) {
	.pfc-studio .pfc-studio-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
	.pfc-studio .pfc-studio-nav {
		grid-column: 1 / -1;
		top: 0;
		z-index: 25;
		flex-direction: row;
		overflow-x: auto;
		scrollbar-width: none;
		border-radius: 14px;
	}
	.pfc-studio .pfc-studio-nav::-webkit-scrollbar { display: none; }
	.pfc-studio .pfc-studio-nav a { white-space: nowrap; }
	.pfc-studio .pfc-uploads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pfc-studio .pfc-section-card { scroll-margin-top: 70px; }
}

/* ── Tablet e celular: uma coluna, pré-visualização no fim ── */
@container pfcpainel (max-width: 860px) {
	.pfc-studio { padding: 12px 12px 0; }
	.pfc-studio .pfc-studio-layout { grid-template-columns: minmax(0, 1fr); }
	.pfc-studio .pfc-studio-preview { position: static; order: 3; }
	.pfc-studio .pfc-studio-topbar { padding: 12px 14px; }
	.pfc-studio .pfc-section-card { padding: 18px; }
	.pfc-studio .pfc-section-head { margin: -18px -18px 16px; padding: 14px 18px; }
	.pfc-studio .pfc-grid-2,
	.pfc-studio .pfc-colors-grid { grid-template-columns: minmax(0, 1fr); }
	.pfc-studio .pfc-savebar { flex-wrap: wrap; padding: 12px; }
	.pfc-studio .pfc-savebar-txt { width: 100%; }
	.pfc-studio .pfc-savebar .pfc-btn { flex: 1 1 0; min-width: 0; }
}
.pfc-studio .pfc-hero-bg-options { margin-top: 14px; }
@container pfcpainel (max-width: 860px) {
	.pfc-studio .pfc-uploads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pfc-studio .pfc-thumb-frame { height: 90px; }
	.pfc-studio .pfc-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pfc-studio .pfc-layout-opt small { display: none; }
	.pfc-studio .pfc-layout-thumb { height: 64px; }
	.pfc-studio .pfc-assets-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ── Ocupa a largura toda da tela, mesmo dentro da coluna estreita do tema ── */
html:has(.pfc-studio) { overflow-x: clip; }
.pfc-studio {
	container: pfcpainel / inline-size;
	width: 100vw !important;
	max-width: 100vw !important;
	margin: 0 0 0 calc(50% - 50vw) !important;
	padding: 20px max(16px, calc((100vw - 1560px) / 2)) 0 !important;
}
/* Título da página do tema e espaçamentos dele não aparecem sobre o painel */
body.pfc-studio-page .wp-block-post-title,
body.pfc-studio-page .entry-title,
body.pfc-studio-page h1.page-title { display: none !important; }
body.pfc-studio-page .wp-site-blocks,
body.pfc-studio-page .entry-content,
body.pfc-studio-page main { padding-top: 0 !important; margin-top: 0 !important; }
