/* Login Page Customizer — full admin page (matches CSM / Code Snippets layout patterns) */

.wpps-lpc-page,
.wpps-login-customizor-settings {
	--wpps-admin-primary: var(--wp-admin-theme-color, #2271b1);
	--wpps-admin-primary-hover: var(--wp-admin-theme-color-darker-10, #135e96);
	--wpps-admin-surface: #fff;
	--wpps-admin-surface-muted: #f0f0f1;
	--wpps-admin-surface-hover: #f6f7f7;
	--wpps-admin-border: #c3c4c7;
	--wpps-admin-border-light: #dcdcde;
	--wpps-admin-text: #1d2327;
	--wpps-admin-text-muted: #646970;
}

.wpps-lpc-page .wp-powersuite-settings--lpc {
	margin-top: 20px;
	max-width: none;
}

.wpps-lpc-page .wpps-login-customizor-settings {
	max-width: none;
}

.wpps-lpc-intro {
	margin: 0 0 20px;
	color: #646970;
	font-size: 14px;
	line-height: 1.5;
}

.wpps-lpc-card {
	margin-bottom: 20px;
	padding: 20px 24px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wpps-lpc-accordions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.wpps-lpc-accordion {
	background: #fff;
	border: 1px solid var(--wpps-admin-border, #c3c4c7);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	overflow: visible;
}

.wpps-lpc-accordion-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 20px;
	background: none;
	border: none;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wpps-admin-text, #1d2327);
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
	overflow: visible;
}

.wpps-lpc-accordion-header:hover {
	background: var(--wpps-admin-surface-hover, #f6f7f7);
}

.wpps-lpc-accordion-title {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--wpps-admin-primary);
}

.wpps-lpc-accordion-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 2px;
	cursor: help;
}

.wpps-lpc-accordion-tooltip-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 12px;
	font-weight: 600;
	color: var(--wpps-admin-text-muted, #646970);
	background: var(--wpps-admin-surface-muted, #f0f0f1);
	border-radius: 50%;
	line-height: 1;
	transition: color 0.2s, background 0.2s;
}

.wpps-lpc-accordion-tooltip:hover .wpps-lpc-accordion-tooltip-trigger,
.wpps-lpc-accordion-tooltip.is-active .wpps-lpc-accordion-tooltip-trigger {
	color: var(--wpps-admin-primary);
	background: color-mix(in srgb, var(--wp-admin-theme-color, #2271b1) 12%, #fff);
}

.wpps-lpc-accordion-tooltip-panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 10px);
	transform: translateY(4px);
	min-width: 220px;
	max-width: min(320px, calc(100vw - 32px));
	padding: 12px 14px;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wpps-admin-text, #1d2327);
	background: #fff;
	border: 1px solid var(--wpps-admin-border-light, #dcdcde);
	border-radius: 6px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
	z-index: 100000;
}

.wpps-lpc-accordion-tooltip-panel.is-positioned {
	position: fixed !important;
	bottom: auto !important;
	transform: none !important;
	transition: opacity 0.12s ease, visibility 0.12s ease;
}

.wpps-lpc-accordion-tooltip-panel::before {
	content: "";
	position: absolute;
	top: 100%;
	left: var(--wpps-tip-x, 14px);
	margin-left: -7px;
	border: 7px solid transparent;
	border-top-color: var(--wpps-admin-border-light, #dcdcde);
}

.wpps-lpc-accordion-tooltip-panel::after {
	content: "";
	position: absolute;
	top: 100%;
	left: var(--wpps-tip-x, 14px);
	margin-left: -6px;
	margin-top: -1px;
	border: 6px solid transparent;
	border-top-color: #fff;
}

.wpps-lpc-accordion-tooltip-panel.wpps-accordion-tooltip-panel--below::before {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: -1px;
	border-top-color: transparent;
	border-bottom-color: var(--wpps-admin-border-light, #dcdcde);
}

.wpps-lpc-accordion-tooltip-panel.wpps-accordion-tooltip-panel--below::after {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: -2px;
	border-top-color: transparent;
	border-bottom-color: #fff;
}

.wpps-lpc-accordion-tooltip.is-active .wpps-lpc-accordion-tooltip-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (hover: hover) {
	html:not(.wpps-accordion-tooltips-ready) .wpps-lpc-accordion-tooltip:hover .wpps-lpc-accordion-tooltip-panel:not(.is-positioned) {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
}

.wpps-lpc-accordion-chevron {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: var(--wpps-admin-text-muted, #646970);
	transition: transform 0.2s;
}

.wpps-lpc-accordion.is-open .wpps-lpc-accordion-chevron {
	transform: rotate(180deg);
}

.wpps-lpc-accordion-body {
	overflow: hidden;
	padding: 0 20px 20px;
	border-top: 1px solid var(--wpps-admin-border-light, #dcdcde);
	margin-top: -1px;
	padding-top: 20px;
}

.wpps-lpc-accordion.is-open .wpps-lpc-accordion-body {
	overflow: visible;
}

.wpps-lpc-accordion.is-open.wpps-lpc-accordion--float-active {
	position: relative;
	z-index: 50;
}

.wpps-lpc-accordion:not(.is-open) .wpps-lpc-accordion-body {
	display: none;
}

.wpps-lpc-card .form-table,
.wpps-lpc-accordion-body .form-table {
	margin-top: 0;
}

.wpps-lpc-card .form-table:not(.wpps-split-form-inner-table):not(.wpps-split-empty-inner-table) th,
.wpps-lpc-accordion-body .form-table:not(.wpps-split-form-inner-table):not(.wpps-split-empty-inner-table) th {
	padding: 12px 10px 12px 0;
	width: 200px;
	vertical-align: top;
}

.wpps-lpc-card .form-table:not(.wpps-split-form-inner-table):not(.wpps-split-empty-inner-table) td,
.wpps-lpc-accordion-body .form-table:not(.wpps-split-form-inner-table):not(.wpps-split-empty-inner-table) td {
	padding: 12px 10px;
	vertical-align: top;
}

.wpps-lpc-section-title {
	margin: 0 0 4px;
	color: var(--wpps-admin-primary);
	font-size: 1.1em;
	font-weight: 600;
	line-height: 1.3;
}

.wpps-lpc-section-desc {
	margin: 0 0 16px;
	color: #646970;
	font-size: 13px;
	line-height: 1.5;
}

.wpps-lpc-card-styling {
	padding-top: 16px;
}

/* Split layout: hero column content editor (Visual + Code tabs) */
.wpps-split-empty-editor-row td {
	width: auto;
}

.wpps-split-empty-editor-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.wpps-split-empty-editor-wrap .wp-editor-wrap {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
}

.wpps-split-empty-editor-wrap .wp-editor-tools {
	margin-bottom: 0;
}

.wpps-split-empty-editor-wrap .wp-editor-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin-bottom: 0;
	border: 1px solid var(--wpps-admin-border, #c3c4c7);
	border-radius: 0 0 4px 4px;
	overflow: hidden;
}

.wpps-split-empty-editor-wrap .mce-toolbar-grp {
	background: var(--wpps-admin-surface-muted, #f6f7f7);
	border-bottom: 1px solid var(--wpps-admin-border-light, #dcdcde);
}

.wpps-split-empty-editor-wrap .wpps-split-empty-content-textarea,
.wpps-split-empty-editor-wrap textarea.wp-editor-area {
	width: 100% !important;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 300px !important;
	height: 300px !important;
	padding: 12px;
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	line-height: 1.6;
	resize: vertical;
	color: #1d2327 !important;
	background: #fff !important;
}

.wpps-split-empty-editor-wrap .wp-editor-wrap.html-active textarea.wp-editor-area {
	min-height: 300px !important;
	height: 300px !important;
}

.wpps-split-empty-editor-wrap .wp-editor-wrap.tmce-active .mce-edit-area iframe {
	min-height: 300px;
}

/* LPC segmented control — compact pill picker (split columns, button/footer states) */
.wpps-lpc-segment-bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	margin: 0 0 14px;
}

.wpps-lpc-segment-bar--compact {
	align-items: center;
	margin: 0 0 12px;
}

.wpps-lpc-segment-bar__text {
	flex: 1 1 200px;
	min-width: 0;
}

.wpps-lpc-segment-bar__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--wpps-admin-text);
	line-height: 1.4;
}

.wpps-lpc-segment-bar__hint {
	display: block;
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--wpps-admin-text-muted);
	line-height: 1.45;
}

.wpps-lpc-segment-group,
.wpps-button-state-tabs-inline,
.wpps-field-state-toggle {
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	gap: 2px;
	padding: 3px;
	background: var(--wpps-admin-surface-muted);
	border: 1px solid var(--wpps-admin-border-light);
	border-radius: 8px;
	width: auto;
	max-width: 100%;
	overflow: visible;
}

.wpps-lpc-segment-group .wpps-button-state-tab,
.wpps-lpc-segment-group .wpps-split-layout-tab,
.wpps-button-state-tabs-inline .wpps-button-state-tab,
.wpps-button-state-tabs-inline .wpps-split-layout-tab,
.wpps-field-state-toggle .wpps-field-state-btn {
	flex: 0 1 auto;
	min-width: 0;
	margin: 0;
	padding: 7px 14px;
	border: none !important;
	border-radius: 6px !important;
	background: transparent;
	color: var(--wpps-admin-text-muted);
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	line-height: 1.35;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
	white-space: nowrap;
}

.wpps-lpc-segment-group .wpps-button-state-tab:hover:not(.is-active),
.wpps-lpc-segment-group .wpps-split-layout-tab:hover:not(.is-active),
.wpps-button-state-tabs-inline .wpps-button-state-tab:hover:not(.is-active),
.wpps-button-state-tabs-inline .wpps-split-layout-tab:hover:not(.is-active),
.wpps-field-state-toggle .wpps-field-state-btn:hover:not(.is-active) {
	background: var(--wpps-admin-surface-hover);
	color: var(--wpps-admin-text);
}

.wpps-lpc-segment-group .wpps-button-state-tab.is-active,
.wpps-lpc-segment-group .wpps-split-layout-tab.is-active,
.wpps-button-state-tabs-inline .wpps-button-state-tab.is-active,
.wpps-button-state-tabs-inline .wpps-split-layout-tab.is-active,
.wpps-field-state-toggle .wpps-field-state-btn.is-active,
.wpps-lpc-segment-group .wpps-button-state-tab.is-active:hover,
.wpps-lpc-segment-group .wpps-split-layout-tab.is-active:hover,
.wpps-button-state-tabs-inline .wpps-button-state-tab.is-active:hover,
.wpps-button-state-tabs-inline .wpps-split-layout-tab.is-active:hover,
.wpps-field-state-toggle .wpps-field-state-btn.is-active:hover {
	background: var(--wpps-admin-surface);
	color: var(--wpps-admin-primary);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wpps-lpc-panel-card,
.wpps-button-state-panels-cell {
	padding: 16px 20px 20px;
	border: 1px solid var(--wpps-admin-border-light);
	border-radius: 8px;
	background: var(--wpps-admin-surface);
}

.wpps-lpc-split-picker .wpps-lpc-panel-card {
	margin-top: 0;
}

.wpps-split-panels-row > td {
	padding-top: 8px;
}

.wpps-split-layout-panel {
	padding: 0;
}

.wpps-split-form-inner-table,
.wpps-split-empty-inner-table {
	margin: 0;
	width: 100%;
	table-layout: fixed;
}

.wpps-lpc-split-picker .wpps-split-form-inner-table th,
.wpps-lpc-split-picker .wpps-split-empty-inner-table th {
	width: 25%;
	padding: 10px 12px 10px 0;
	vertical-align: top;
	box-sizing: border-box;
}

.wpps-lpc-split-picker .wpps-split-form-inner-table td,
.wpps-lpc-split-picker .wpps-split-empty-inner-table td {
	width: 75%;
	padding: 10px 0;
	vertical-align: top;
	box-sizing: border-box;
}

.wpps-lpc-subsection-head td {
	padding: 0 !important;
	vertical-align: top;
}

.wpps-lpc-subsection {
	margin: 4px 0 8px;
	padding: 14px 0 6px;
	border-top: 1px solid var(--wpps-admin-border-light);
}

.wpps-lpc-subsection-head:first-child .wpps-lpc-subsection {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.wpps-lpc-subsection__title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--wpps-admin-text);
}

.wpps-lpc-subsection__desc {
	margin: 0;
	font-size: 12px;
	color: var(--wpps-admin-text-muted);
	line-height: 1.45;
}

.wpps-login-customizor-page .wpps-login-customizor-table .description {
	margin: 6px 0 0;
	line-height: 1.5;
}

.wpps-lpc-card-styling .wpps-form-customization-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wpps-admin-border-light);
}

.wpps-lpc-card-styling .wpps-form-customization-tab {
	padding: 8px 16px;
	background: var(--wpps-admin-surface-muted);
	border: 1px solid var(--wpps-admin-border);
	border-radius: 4px;
	color: var(--wpps-admin-text);
	cursor: pointer;
	font-size: 13px;
}

.wpps-lpc-card-styling .wpps-form-customization-tab:hover {
	background: var(--wpps-admin-surface-hover);
	color: var(--wpps-admin-text);
}

.wpps-lpc-card-styling .wpps-form-customization-tab.is-active,
.wpps-lpc-card-styling .wpps-form-customization-tab.is-active:hover {
	background: var(--wpps-admin-surface);
	border-color: var(--wpps-admin-primary);
	color: var(--wpps-admin-primary);
}

.wpps-lpc-page .wpps-page-hero__meta .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 0 12px;
	line-height: 1.4;
	box-sizing: border-box;
}

.wpps-lpc-actions-wrapper {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 16px;
}

.wpps-lpc-actions-wrapper--bottom {
	margin: 24px 0 8px;
	padding-top: 20px;
	border-top: 1px solid var(--wpps-admin-border-light);
}

.wpps-lpc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.wpps-lpc-notice:empty {
	display: none;
}

.wpps-lpc-notice:not(:empty) {
	margin: 0 0 16px;
}

.wpps-lpc-page .wp-powersuite-custom-page-save.is-busy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
	opacity: 0.9;
}

.wpps-lpc-page .wp-powersuite-custom-page-save.is-busy .spinner {
	float: none;
	margin: 0;
	vertical-align: middle;
}

/* Ready-made layout presets */
.wpps-lpc-layout-presets-intro {
	margin: 0 0 14px;
	white-space: nowrap;
}

@media (max-width: 1280px) {
	.wpps-lpc-layout-presets-intro {
		white-space: normal;
	}
}

.wpps-lpc-layout-presets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
	gap: 16px;
	margin-top: 4px;
}

.wpps-lpc-layout-preset {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 12px;
	border: 2px solid #dcdcde;
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
	cursor: pointer;
	text-align: left;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.wpps-lpc-layout-preset:hover {
	border-color: #a7aaad;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.wpps-lpc-layout-preset.is-active {
	border-color: var(--wp-admin-theme-color, #2271b1);
	box-shadow: 0 0 0 1px var(--wp-admin-theme-color, #2271b1), 0 10px 24px rgba(34, 113, 177, 0.14);
}

.wpps-lpc-layout-preset.is-hidden {
	display: none;
}

.wpps-lpc-layout-preset__preview {
	position: relative;
	display: block;
	height: 108px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Classic centered thumbnail */
.wpps-lpc-layout-preset__preview--centered {
	background: var(--wpps-lpc-page-fill, #f0f0f1);
}

.wpps-lpc-layout-preset__preview--centered .wpps-lpc-layout-preset__canvas {
	position: absolute;
	inset: 0;
	background: var(--wpps-lpc-page-fill, #f0f0f1);
}

.wpps-lpc-layout-preset__preview--centered.has-page-photo .wpps-lpc-layout-preset__canvas {
	background-image: var(--wpps-lpc-page-image);
	background-size: cover;
	background-position: center;
}

.wpps-lpc-layout-preset__preview--centered.has-page-photo .wpps-lpc-layout-preset__canvas::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--wpps-lpc-page-overlay, rgba(15, 23, 42, 0.35));
}

.wpps-lpc-layout-preset__preview--centered .wpps-lpc-layout-preset__card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44%;
	min-height: 56%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	border-radius: var(--wpps-lpc-box-radius, 12px);
	background: var(--wpps-lpc-box, #fff);
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

/* Split thumbnail */
.wpps-lpc-layout-preset__preview--split {
	display: flex;
	flex-direction: row;
}

.wpps-lpc-layout-preset__preview--split.form-second {
	flex-direction: row-reverse;
}

.wpps-lpc-layout-preset__form-col,
.wpps-lpc-layout-preset__hero-col {
	position: relative;
	min-width: 0;
}

.wpps-lpc-layout-preset__form-col {
	flex: 0 0 var(--wpps-lpc-form-pct, 50%);
	background: var(--wpps-lpc-form-fill, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 6px;
}

.wpps-lpc-layout-preset__hero-col {
	flex: 0 0 var(--wpps-lpc-hero-pct, 50%);
	background: var(--wpps-lpc-hero-fill, #f0f0f1);
}

.wpps-lpc-layout-preset__preview--split.has-form-photo .wpps-lpc-layout-preset__form-col {
	background-image: var(--wpps-lpc-form-image);
	background-size: cover;
	background-position: center;
}

.wpps-lpc-layout-preset__preview--split.has-hero-photo .wpps-lpc-layout-preset__hero-col {
	background-image: var(--wpps-lpc-hero-image);
	background-size: cover;
	background-position: center;
}

.wpps-lpc-layout-preset__form-col::after,
.wpps-lpc-layout-preset__hero-col::after {
	content: none;
}

.wpps-lpc-layout-preset__preview--split .wpps-lpc-layout-preset__form-col::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--wpps-lpc-form-overlay, transparent);
	pointer-events: none;
}

.wpps-lpc-layout-preset__preview--split .wpps-lpc-layout-preset__hero-col::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--wpps-lpc-hero-overlay, transparent);
	pointer-events: none;
}

.wpps-lpc-layout-preset__preview--split .wpps-lpc-layout-preset__card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 86%;
	max-width: 110px;
	padding: 8px;
	border-radius: var(--wpps-lpc-box-radius, 10px);
	background: var(--wpps-lpc-box, #fff);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.wpps-lpc-layout-preset__field {
	display: block;
	width: 100%;
	height: 7px;
	border-radius: var(--wpps-lpc-field-radius, 4px);
	background: var(--wpps-lpc-field, #e8ecf1);
	border: 1px solid var(--wpps-lpc-field-border, #d0d5dd);
}

.wpps-lpc-layout-preset__preview.has-pill-fields .wpps-lpc-layout-preset__field,
.wpps-lpc-layout-preset__preview.has-pill-fields .wpps-lpc-layout-preset__btn {
	border-radius: 999px;
}

.wpps-lpc-layout-preset__btn {
	display: block;
	width: 100%;
	height: 8px;
	margin-top: 2px;
	border-radius: var(--wpps-lpc-button-radius, 4px);
	background: var(--wpps-lpc-button, #2271b1);
}

.wpps-lpc-layout-preset__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 20px;
}

.wpps-lpc-layout-preset__name {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.3;
}

.wpps-lpc-layout-preset__badge {
	flex-shrink: 0;
	padding: 2px 7px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.4;
}

