/* ---------- Frontend: expandable label list ---------- */
.lpa-labels-list {
	max-width: 720px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lpa-label-item {
	background: #241d16;
	border: 1px solid #8a6a3a;
	border-radius: 10px;
	overflow: hidden;
}

.lpa-label-trigger {
	width: 100%;
	background: transparent;
	border: 0;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 14px;
	cursor: pointer;
	font: inherit;
}

.lpa-label-text {
	color: #f4efe6;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.lpa-label-arrow {
	color: #c99a4b;
	font-size: 18px;
}

.lpa-label-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	white-space: nowrap;
}

.lpa-sign-nda-btn {
	display: inline-block;
	background: #c99a4b;
	color: #241d16;
	font-weight: 700;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	white-space: nowrap;
}

.lpa-sign-nda-btn:hover {
	background: #dcae63;
}

.lpa-label-panel {
	padding: 0 22px 18px;
}

.lpa-auth-buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-top: 6px;
}

.lpa-auth-buttons .lpa-btn-primary,
.lpa-auth-buttons .lpa-btn-secondary {
	min-width: 120px;
	text-align: center;
}

.lpa-view-pdf-btn,
.lpa-btn-primary {
	display: inline-block;
	background: #c99a4b;
	color: #241d16;
	font-weight: 700;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 6px;
	border: 0;
	cursor: pointer;
	font-size: 14px;
}

.lpa-view-pdf-btn:hover,
.lpa-btn-primary:hover {
	background: #dcae63;
}

/* ---------- Frontend: signup/login modal ---------- */
.lpa-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 8, 5, 0.65);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999999999;
	overflow-y: auto;
}

/* Lock background scroll while the modal is open */
body.lpa-modal-open {
	overflow: hidden;
}

.lpa-modal {
	background: #1c1710;
	border: 1px solid #8a6a3a;
	border-radius: 12px;
	padding: 32px;
	width: 90%;
	max-width: 1100px;
	max-height: 88vh;
	overflow-y: auto;
	position: relative;
	color: #f4efe6;
}

.lpa-step-indicator {
	margin: 0 0 4px;
	font-size: 12px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #c99a4b;
}

.lpa-agreement-content {
	background: #241d16;
	border: 1px solid #8a6a3a;
	border-radius: 8px;
	padding: 14px 16px;
	max-height: 220px;
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.6;
	color: #d8cdb8;
	margin-bottom: 18px;
}

.lpa-agreement-content:empty::before {
	content: "No agreement text has been added yet.";
	color: #8a7a5c;
	font-style: italic;
}

#lpa-signature-pad {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 160px;
	background: #f4efe6;
	border: 1px dashed #8a6a3a;
	border-radius: 8px;
	touch-action: none;
	cursor: crosshair;
}

.lpa-agreement-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.lpa-btn-secondary {
	display: inline-block;
	background: transparent;
	color: #f4efe6;
	font-weight: 700;
	border: 1px solid #8a6a3a;
	border-radius: 6px;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 14px;
}

.lpa-btn-secondary:hover {
	background: #241d16;
}

.lpa-login-btn {
	width: 100%;
	margin-top: 6px;
}

.lpa-btn-link {
	background: none;
	border: none;
	color: #c99a4b;
	text-decoration: underline;
	cursor: pointer;
	font-size: 12px;
	padding: 6px 0 0;
}

.lpa-modal-notice {
	color: #9fdca0;
	font-size: 13px;
	margin: -6px 0 14px;
}

.lpa-modal h3 {
	margin-top: 0;
	color: #f4efe6;
}

.lpa-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	color: #f4efe6;
	cursor: pointer;
}

.lpa-field {
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lpa-field-row {
	flex-direction: row;
	gap: 14px;
}

.lpa-field-row .lpa-field-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lpa-field label {
	font-size: 13px;
	color: #d8cdb8;
}

.lpa-field input {
	padding: 9px 10px;
	border-radius: 6px;
	border: 1px solid #8a6a3a;
	background: #241d16;
	color: #f4efe6;
}

.lpa-modal-error {
	color: #ff8b8b;
	font-size: 13px;
	margin: 6px 0 12px;
}

.lpa-switch-step {
	margin-top: 14px;
	font-size: 13px;
	color: #d8cdb8;
}

.lpa-switch-step a {
	color: #c99a4b;
}

/* ---------- Admin panel ---------- */
.lpa-admin-wrap .lpa-form-box {
	background: #fff;
	border: 1px solid #dcdcde;
	padding: 10px 20px;
	margin: 16px 0 24px;
	max-width: 720px;
}

.lpa-admin-wrap .lpa-drag-handle {
	cursor: grab;
	color: #999;
	text-align: center;
}

.lpa-admin-wrap .lpa-truncate {
	display: inline-block;
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.lpa-admin-wrap #lpa-sortable-body tr.ui-sortable-helper {
	background: #f6f7f7;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ── PDF Preview (Step 2) ── */
.lpa-pdf-preview-wrap {
    width: 100%;
    height: 360px;
    border: 1px solid rgba(212,175,55,0.4);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #fff;
}
.lpa-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.lpa-btn-download {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    border: 1.5px solid #d4af37;
    color: #d4af37;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 12px;
    transition: background 0.18s, color 0.18s;
}
.lpa-btn-download:hover {
    background: #d4af37;
    color: #1c1710;
}
.lpa-pdf-upload-notice {
    font-size: 13px;
    color: #d4af37;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0 0;
}
.lpa-notice-warn {
    color: #e07b39;
    border-color: rgba(224,123,57,0.35);
    background: rgba(224,123,57,0.08);
}
.lpa-field-hint {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-top: 5px;
}
.lpa-required {
    color: #e05555;
    margin-left: 2px;
}
/* File input styling */
input[type="file"].lpa-field input,
#lpa-signed-pdf {
    width: 100%;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border: 1.5px dashed rgba(212,175,55,0.4);
    border-radius: 6px;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
    margin-top: 6px;
}

/* ── Header Auth Bar ── */
#lpa-header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* When injected into a <li> in Salient's button nav */
#lpa-header-auth-li {
    display: flex !important;
    align-items: center;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
}
.lpa-header-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    line-height: 1.3;
    text-decoration: none;
    transition: all 0.18s;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.02em;
}
.lpa-header-login {
    background: transparent;
    border-color: rgba(255,255,255,0.55);
    color: #fff;
}
.lpa-header-login:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.lpa-header-signup {
    background: #d4af37;
    border-color: #d4af37;
    color: #1c1710;
}
.lpa-header-signup:hover {
    background: #c9a227;
    border-color: #c9a227;
    color: #1c1710;
}
.lpa-header-logout {
    background: transparent;
    border-color: rgba(255,255,255,0.45);
    color: rgba(255,255,255,0.85);
}
.lpa-header-logout:hover {
    border-color: rgba(255,255,255,0.9);
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* When theme header is dark/transparent, keep buttons visible on scroll */
#top.scrolled .lpa-header-login,
#top.past-hero .lpa-header-login { border-color: rgba(0,0,0,0.4); color: #333; }
#top.scrolled .lpa-header-logout,
#top.past-hero .lpa-header-logout { border-color: rgba(0,0,0,0.35); color: #444; }

@media (max-width: 999px) {
    /* On mobile Salient hides the nav — keep button visible via fixed fallback */
    #lpa-header-auth-li { display: none !important; }
    #lpa-header-auth[style*="fixed"] { display: flex !important; }
}
