/**
 * Edit tabs — Mega-like: plain text, hover + active underline.
 */

.love-edit-tabs {
	margin: 0 0 24px;
	padding: 0;
	border-bottom: 1px solid #e5e7eb;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 40;
	box-shadow: none;
}

.love-edit-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0 4px;
	overflow: visible;
	padding: 0;
	margin: 0;
	list-style: none;
	scrollbar-width: none;
}

.love-edit-tabs__nav::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* Reset Elementor / theme button styles */
.love-edit-tabs__btn,
.love-edit-tabs .love-edit-tabs__btn,
form.jet-form-builder .love-edit-tabs__btn,
.elementor-widget-container .love-edit-tabs__btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	position: relative !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	outline: none !important;
	color: #64748b !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	padding: 12px 10px 12px !important;
	margin: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	height: auto !important;
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.15s ease;
}

/* Underline via ::after — survives Elementor border resets */
.love-edit-tabs__btn::after {
	content: '';
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 0;
	height: 2px;
	border-radius: 1px;
	background: transparent;
	transition: background-color 0.15s ease, left 0.15s ease, right 0.15s ease;
	pointer-events: none;
}

.love-edit-tabs__btn:hover,
.love-edit-tabs__btn:focus-visible {
	color: #0f172a !important;
	background: transparent !important;
	box-shadow: none !important;
}

.love-edit-tabs__btn:hover::after,
.love-edit-tabs__btn:focus-visible::after {
	background-color: #94a3b8;
}

.love-edit-tabs__btn.is-active,
.love-edit-tabs__btn[aria-selected='true'],
.love-edit-tabs .love-edit-tabs__btn.is-active,
form.jet-form-builder .love-edit-tabs__btn.is-active {
	color: #0f172a !important;
	font-weight: 700 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.love-edit-tabs__btn.is-active::after,
.love-edit-tabs__btn[aria-selected='true']::after {
	background-color: #6b7c3a; /* olive like Mega */
	left: 6px;
	right: 6px;
	height: 2px;
}

.love-edit-tabs__panels {
	min-height: 120px;
}

.love-edit-tabs__panel {
	display: none;
}

.love-edit-tabs__panel.is-active {
	display: block;
}

.love-edit-tabs__panel-empty {
	margin: 16px 0;
	padding: 14px 16px;
	color: #64748b;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	font-size: 0.95rem;
}

.love-edit-tabs__footer {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.love-edit-tabs__footer .jet-form-builder__submit-wrap,
.love-edit-tabs__footer .wp-block-jet-forms-submit-field,
.love-edit-tabs__footer .jet-form-builder-row {
	width: auto !important;
	max-width: none !important;
}

.love-edit-tabs__footer .jet-form-builder__action-button,
.love-edit-tabs__footer button[type='submit'],
.love-edit-tabs__footer .jet-form-builder__submit,
.love-edit-tabs__footer .elementor-button {
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	padding-left: 28px !important;
	padding-right: 28px !important;
	box-sizing: border-box;
}

form.jet-form-builder.is-love-edit-tabs-ready > .love-edit-tabs__panels .love-edit-tabs__panel:not(.is-active) {
	display: none;
}

.love-edit-save-notice {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
}

.love-edit-save-notice--ok {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}

.love-edit-save-notice--warn {
	background: #fffbeb;
	border: 1px solid #fde68a;
	color: #92400e;
}

.love-edit-saving {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.45);
}

.love-edit-saving__box {
	background: #fff;
	border-radius: 10px;
	padding: 22px 28px;
	text-align: center;
	max-width: 280px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.love-edit-saving__box p {
	margin: 8px 0 0;
	font-size: 15px;
	color: #0f172a;
}

.love-edit-saving__hint {
	font-size: 12px !important;
	color: #64748b !important;
}

.love-edit-saving__spin {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid #e2e8f0;
	border-top-color: #0f766e;
	border-radius: 50%;
	animation: love-edit-spin 0.7s linear infinite;
}

@keyframes love-edit-spin {
	to {
		transform: rotate(360deg);
	}
}

.love-owner-lives {
	margin: 16px 0 8px;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.love-owner-lives__label {
	display: block;
	margin: 0 0 8px;
	font-weight: 600;
	color: #0f172a;
}

.love-owner-lives__select {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
}

.love-owner-lives__status {
	display: inline-block;
	margin-left: 10px;
	font-size: 13px;
	color: #065f46;
	vertical-align: middle;
}

.love-owner-lives__status.is-error {
	color: #b91c1c;
}

.love-gallery-max-notice {
	margin: 0 0 1rem;
	padding: 0.9rem 1.1rem;
	border-radius: 10px;
	border: 1px solid #99f6e4;
	background: #f0fdfa;
	color: #0f766e;
}

.love-gallery-max-notice strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 1rem;
	color: #115e59;
}

.love-gallery-max-notice p {
	margin: 0.15rem 0 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #0f766e;
}

.love-gallery-max-notice__count {
	font-weight: 700;
	color: #115e59 !important;
}

.love-gallery-max-notice__count.is-full {
	color: #b45309 !important;
}

@media (max-width: 767px) {
	.love-edit-tabs__btn,
	.love-edit-tabs .love-edit-tabs__btn {
		font-size: 13px !important;
		padding: 10px 8px 10px !important;
	}
}
