/* La Lista Profile Dashboard: structure only. Colours, fonts and spacing come from the Elementor controls. */

.llpd,
.llpd * {
	box-sizing: border-box;
}

.llpd [hidden] {
	display: none !important;
}

.llpd-card {
	display: flex;
	align-items: center;
	gap: 60px;
	width: 100%;
	background: #fff;
}

/* Avatar column */
.llpd-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 auto;
	width: 300px;
	max-width: 100%;
}

.llpd-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 230px;
	height: 230px;
	overflow: hidden;
	border-radius: 50%;
	background: #2a0a1d;
	color: #f6efe6;
}

.llpd-avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.llpd-avatar-initials {
	display: block;
	text-align: center;
	white-space: nowrap;
}

.llpd-name {
	width: 100%;
	word-break: break-word;
}

.llpd--stacked .llpd-card {
	flex-direction: column;
	align-items: stretch;
}

.llpd--stacked .llpd-side {
	width: 100%;
}

/* Details */
.llpd-main {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
}

.llpd-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 40px;
}

.llpd-field {
	min-width: 0;
}

.llpd-field--full {
	grid-column: 1 / -1;
}

.llpd-label {
	display: block;
	margin: 0 0 4px;
	padding: 0;
}

.llpd-value {
	margin: 0;
	word-break: break-word;
}

/* View / edit switching */
.llpd:not(.is-editing) .llpd-input-wrap,
.llpd:not(.is-editing) .llpd-field--pass,
.llpd:not(.is-editing) .llpd-actions-edit,
.llpd.is-editing .llpd-actions-view,
.llpd.is-editing .llpd-field--editable .llpd-value {
	display: none;
}

.llpd-input {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease;
}

.llpd select.llpd-input {
	-webkit-appearance: menulist;
	appearance: menulist;
}

.llpd textarea.llpd-input {
	resize: vertical;
	min-height: 96px;
}

.llpd-field.has-error .llpd-input {
	border-color: #a4271d;
}

.llpd-error {
	display: block;
	margin-top: 5px;
}

/* Notice */
.llpd-notice {
	margin: 0 0 24px;
	padding: 12px 16px;
	border-radius: 6px;
}

/* Buttons */
.llpd-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.llpd-btn {
	display: inline-block;
	margin: 0;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.llpd-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Small screens: always stack the avatar above the details */
@media (max-width: 767px) {
	.llpd-card {
		flex-direction: column;
		align-items: stretch;
	}

	.llpd-side {
		width: 100% !important;
	}
}

/* Photo change links */
.llpd-photo-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 14px;
}

.llpd-photo-btn {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-decoration: underline;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.llpd-photo-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

.llpd.is-uploading .llpd-avatar {
	opacity: 0.6;
	transition: opacity 0.15s ease;
}

/* Delete account */
.llpd-account {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #e5dfdb;
}

.llpd-account-title,
.llpd-account-note,
.llpd-account-blocked {
	margin: 0 0 8px;
}

.llpd-del-open {
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-decoration: underline;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

/* The confirmation box uses the native dialog element, so it always sits above the page. */
.llpd-dialog {
	width: 480px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.llpd-dialog::backdrop {
	background: rgba(42, 10, 29, 0.62);
}

.llpd-dialog-box {
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	padding: 32px;
}

.llpd-dialog-title {
	margin: 0 0 12px;
}

.llpd-dialog-body,
.llpd-dialog-listing {
	margin: 0 0 14px;
}

.llpd-del-type {
	display: block;
	margin: 18px 0 6px;
}

.llpd-del-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 16px 0 0;
	cursor: pointer;
}

.llpd-del-check input {
	flex: 0 0 auto;
	margin: 3px 0 0;
}

.llpd-dialog-actions {
	margin-top: 24px;
}

.llpd-dialog-error {
	margin-top: 14px;
}

.llpd-btn--danger[disabled] {
	pointer-events: none;
}

html.llpd-no-scroll {
	overflow: hidden;
}

/* Logout */
.llpd-logout-row {
	display: flex;
}
