/**
 * EquaRent Pro — admin cosmetic overlay. Loaded only in the Pro build (admin, licensed) on EquaRent
 * screens. Scoped to Pro-only classes so it never alters the Free admin on its own.
 */

/* Site layout configurator — custom HTML block: a full-width, tall, resizable code field. */
.equarent-sc .equarent-pro-sc__full {
	display: block;
	width: 100%;
}
.equarent-sc .equarent-pro-sc__html {
	display: block;
	width: 100%;
	min-height: 180px;
	margin-top: 4px;
	resize: both;
	font-family: Menlo, Consolas, Monaco, "Courier New", monospace;
	font-size: 12.5px;
	line-height: 1.5;
	tab-size: 2;
}
/* Per-language HTML block (recette #30 D11): one tab per active front language. */
.equarent-sc .equarent-pro-sc__html-i18n {
	display: block;
	margin-top: 4px;
}
.equarent-sc .equarent-pro-sc__tabstrip {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	border-bottom: 1px solid #ccd0d4;
}
.equarent-sc .equarent-pro-sc__tab {
	border: 1px solid transparent;
	border-bottom: 0;
	background: transparent;
	padding: 4px 10px;
	margin-bottom: -1px;
	cursor: pointer;
	font-size: 12px;
	color: #50575e;
	border-radius: 4px 4px 0 0;
}
.equarent-sc .equarent-pro-sc__tab:hover {
	color: #1d2327;
}
.equarent-sc .equarent-pro-sc__tab.is-active {
	background: #fff;
	border-color: #ccd0d4;
	color: #1d2327;
	font-weight: 600;
}

/* Photo albums panel (appended after the fiche form): normal flow + clearance so the sticky save
 * bar never covers it. */
.equarent-pro-albums {
	margin: 24px 0 96px;
	clear: both;
}

/* Appearance -> Theme card (Pro relayout): the Pro override wraps the Theme controls in
 * .equarent-pro-theme and lays them as two halves — LEFT holds the ambiance select stacked above
 * the two colour pickers, RIGHT holds the logo preview + its buttons. Driven entirely by this
 * wrapper class the override emits (no fragile :has() on the markup), so nothing else is touched.
 * The colour pickers keep their NATIVE size — only the ambiance select is stretched to fill the
 * left column; input[type="color"] is deliberately left unstyled here. */
.equarent-admin .equarent-pro-theme {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 28px;
	align-items: start;
}
.equarent-admin .equarent-pro-theme__col--controls > .equarent-field select {
	width: 100%;
	max-width: 360px;
}
@media ( max-width: 782px ) {
	.equarent-admin .equarent-pro-theme {
		grid-template-columns: 1fr;
	}
}

/* Settings -> Languages body: the intro .equarent-muted and the trailing .equarent-hint paragraphs
 * inherit a narrow max-width left over from a half-width layout and wrap awkwardly mid-line. Let
 * them use the full card width. Scoped to the Languages card via its (globally unique) language
 * table, so no unrelated muted/hint text is affected. */
.equarent-admin .equarent-card:has( .equarent-lang-table ) > .equarent-muted,
.equarent-admin .equarent-card:has( .equarent-lang-table ) > .equarent-hint {
	max-width: none;
}

/* Settings -> Emails -> Sender card: the "Sender name" / "Sender email" inputs sit in a two-column
 * grid and render at their short intrinsic size. Let them fill their column (roughly 2-3x wider),
 * capped by a max-width so they never run edge to edge. Scoped to the Sender grid via its (globally
 * unique) sender-name field, so no other admin input is widened. */
.equarent-admin .equarent-grid:has( #equarent-sender-name ) > .equarent-field input[type="text"],
.equarent-admin .equarent-grid:has( #equarent-sender-name ) > .equarent-field input[type="email"] {
	width: 100%;
	max-width: 520px;
}

/* =================================================================================================
   Photos tab (My property): hero image editor + album presentation. Scoped to .equarent-admin so it
   outranks the base album stylesheet whatever the enqueue order, and never leaks to the Free admin.
   ================================================================================================= */

.equarent-admin .equarent-pro-photos__legend {
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 4px;
}

/* ---- Hero: large preview with a ratio-locked crop box + a colour-veil opacity slider ---- */
.equarent-admin .equarent-pro-hero {
	margin: 10px 0 30px;
}
.equarent-admin .equarent-pro-hero__layout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 20px;
	margin-top: 10px;
}
.equarent-admin .equarent-pro-hero__stage {
	position: relative;
	flex: 1 1 420px;
	max-width: 560px;
	min-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f1;
	border: 1px solid #dcdfe3;
	border-radius: 10px;
	overflow: hidden;
}
.equarent-admin .equarent-pro-hero__stage[data-has-image] {
	display: block;
	min-height: 0;
	background: #1d2327;
}
.equarent-admin .equarent-pro-hero__img {
	display: block;
	width: 100%;
	height: auto;
	-webkit-user-drag: none;
	user-select: none;
}
.equarent-admin .equarent-pro-hero__placeholder {
	color: #787c82;
	font-style: italic;
	font-size: 13px;
	padding: 24px 12px;
}
.equarent-admin .equarent-pro-hero__crop {
	position: absolute;
	box-sizing: border-box;
	border: 2px solid #2271b1;
	box-shadow: 0 0 0 100vmax rgba( 0, 0, 0, 0.35 );
	cursor: move;
	touch-action: none;
}
.equarent-admin .equarent-pro-hero__crophandle {
	position: absolute;
	right: -7px;
	bottom: -7px;
	width: 14px;
	height: 14px;
	background: #2271b1;
	border: 2px solid #fff;
	border-radius: 50%;
	cursor: nwse-resize;
	touch-action: none;
}
.equarent-admin .equarent-pro-hero__controls {
	flex: 1 1 240px;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.equarent-admin .equarent-pro-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.equarent-admin .equarent-pro-hero__opacity {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.equarent-admin .equarent-pro-hero__opacity-label {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}
.equarent-admin .equarent-pro-hero__opacity-control {
	display: flex;
	align-items: center;
	gap: 12px;
}
.equarent-admin .equarent-pro-hero__opacity-control input[type="range"] {
	flex: 1 1 auto;
	max-width: 240px;
	margin: 0;
}
.equarent-admin .equarent-pro-hero__opacity-out {
	min-width: 44px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #1d2327;
}
.equarent-admin .equarent-pro-hero__crophint {
	margin: 0;
}

/* ---- Albums: clean spacing, larger legend, Style select beside the Show-title toggle ---- */
.equarent-admin .equarent-pro-albums__legend {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 8px;
}
.equarent-admin .equarent-pro-albums__titlegroup {
	margin-bottom: 2px;
}
.equarent-admin .equarent-pro-albums__titles {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
	gap: 14px 18px;
}
.equarent-admin .equarent-pro-albums__titlefield {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.equarent-admin .equarent-pro-albums__titlefield > span {
	font-size: 12px;
	color: #50575e;
}
.equarent-admin .equarent-pro-albums__title {
	width: 100%;
}
.equarent-admin .equarent-pro-albums__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px 28px;
	margin: 18px 0 14px;
}
.equarent-admin .equarent-pro-albums__modefield {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.equarent-admin .equarent-pro-albums__modefield > span {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}
.equarent-admin .equarent-pro-albums__showtitle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 4px;
}
.equarent-admin .equarent-pro-albums__showtitle > span {
	font-size: 13px;
	color: #1d2327;
}
.equarent-admin .equarent-pro-albums__thumb {
	position: relative;
}
.equarent-admin .equarent-pro-albums__videobadge {
	position: absolute;
	left: 4px;
	top: 4px;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	color: #fff;
	background: rgba( 0, 0, 0, 0.6 );
	border-radius: 50%;
}

/* ---- Hero height: 3-way mode control (built by the editor JS). The crop box aspect is JS-driven;
   this only styles the label + <select> row that sits above the opacity slider. ---- */
.equarent-admin .equarent-pro-hero__ratio {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.equarent-admin .equarent-pro-hero__ratio-label {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}
.equarent-admin .equarent-pro-hero__ratio-select {
	max-width: 240px;
}

/* ------------------------------------------------------------------------------------------------
   FAQ editor (Pro) — the injected "FAQ" tab panel inside the "My property" fiche form. Scoped under
   .equarent-admin so nothing else in wp-admin is affected.
   ------------------------------------------------------------------------------------------------ */
.equarent-admin .equarent-pro-faq__editor {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 12px 0 18px;
}
.equarent-admin .equarent-pro-faq__block {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 14px 16px;
	background: #fff;
}
.equarent-admin .equarent-pro-faq__block--main {
	border-color: #c3c4c7;
	background: #f6f7f7;
}
.equarent-admin .equarent-pro-faq__blockhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.equarent-admin .equarent-pro-faq__blockname {
	margin: 0;
	font-size: 14px;
}
.equarent-admin .equarent-pro-faq__legend {
	display: block;
	margin: 10px 0 4px;
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}
.equarent-admin .equarent-pro-faq__pairs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 10px;
}
.equarent-admin .equarent-pro-faq__pair {
	border: 1px solid #e0e0e2;
	border-radius: 6px;
	padding: 10px 12px;
	background: #fdfdfd;
}
.equarent-admin .equarent-pro-faq__pairhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
.equarent-admin .equarent-pro-faq__pairnum {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}
.equarent-admin .equarent-pro-faq__tools {
	display: inline-flex;
	gap: 8px;
}
.equarent-admin .equarent-pro-faq__rm {
	color: #b32d2e;
}
.equarent-admin .equarent-pro-faq__langs {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.equarent-admin .equarent-pro-faq__langfield {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.equarent-admin .equarent-pro-faq__langcode {
	font-size: 11px;
	font-weight: 600;
	color: #787c82;
	text-transform: uppercase;
}
.equarent-admin .equarent-pro-faq__input {
	width: 100%;
}
.equarent-admin .equarent-pro-faq__empty {
	margin: 0;
	color: #787c82;
	font-style: italic;
}
.equarent-admin .equarent-pro-faq__actions {
	margin: 0;
}

/* ------------------------------------------------------------------------------------------------
   Hero overlay TEXT styling (Pro) — the Title / Tagline / Free-text rubrics + live preview that sit
   under the hero controls on the Photos tab (built by equarent-pro-albums.js). Moved here out of the
   site-structure configurator. Scoped under .equarent-admin so nothing else in wp-admin is affected.
   ------------------------------------------------------------------------------------------------ */
.equarent-admin .equarent-pro-hero__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.equarent-admin .equarent-pro-hero__rubric {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 10px 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.equarent-admin .equarent-pro-hero__rubric-legend {
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
}
.equarent-admin .equarent-pro-hero__ctl {
	display: flex;
	align-items: center;
	gap: 10px;
}
.equarent-admin .equarent-pro-hero__ctl > span {
	flex: 0 0 auto;
	min-width: 84px;
	font-size: 12px;
	color: #50575e;
}
.equarent-admin .equarent-pro-hero__ctl--text {
	display: block;
}
.equarent-admin .equarent-pro-hero__freein {
	width: 100%;
}
.equarent-admin .equarent-pro-hero__color {
	width: 44px;
	height: 28px;
	padding: 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	cursor: pointer;
}
.equarent-admin .equarent-pro-hero__size {
	flex: 1 1 auto;
	max-width: 220px;
	margin: 0;
}
.equarent-admin .equarent-pro-hero__val {
	min-width: 52px;
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #1d2327;
}
.equarent-admin .equarent-pro-hero__preview {
	margin-top: 2px;
	padding: 16px 12px;
	border-radius: 6px;
	background: #0c1a2b;
	text-align: center;
	overflow: hidden;
	line-height: 1.2;
}
.equarent-admin .equarent-pro-hero__pv {
	display: block;
}
.equarent-admin .equarent-pro-hero__pv-name {
	font-weight: 800;
	font-size: 28px;
	color: #ffffff;
}
.equarent-admin .equarent-pro-hero__pv-tag,
.equarent-admin .equarent-pro-hero__pv-free {
	margin-top: 4px;
	font-size: 16px;
	color: #e6edf5;
}
.equarent-admin .equarent-pro-hero__pv-free[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------------------------------
   Pro footer builder — tabs (Desktop / Mobile navigation) and the single-column mobile editor.
   Loaded only on the EquaRent Footer admin screen in a licensed Pro instance.
   ------------------------------------------------------------------------------------------------- */
.equarent-admin .equarent-ftabs__nav {
	display: flex;
	gap: 6px;
	margin: 0 0 16px;
	border-bottom: 1px solid #dcdfe4;
}
.equarent-admin .equarent-ftabs__tab {
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	padding: 9px 16px;
	margin-bottom: -1px;
	font-weight: 600;
	color: #50575e;
	cursor: pointer;
}
.equarent-admin .equarent-ftabs__tab:hover {
	color: #1d2327;
}
.equarent-admin .equarent-ftabs__tab.is-active {
	background: #fff;
	border-color: #dcdfe4;
	border-bottom-color: #fff;
	color: #0c3a66;
}
.equarent-admin .equarent-ftabs__panel[hidden] {
	display: none;
}
.equarent-admin .equarent-fmitems {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 12px;
}
.equarent-admin .equarent-fmitem {
	border: 1px solid #e0e3e8;
	border-radius: 10px;
	padding: 10px 12px;
	background: #fbfcfd;
}
.equarent-admin .equarent-fmitem.is-dragging {
	opacity: .5;
}
.equarent-admin .equarent-fmitem__handle {
	cursor: grab;
	color: #8c97a3;
}

/* -------------------------------------------------------------------------------------------------
 * Reservations: detail panel revealed by the eye icon (guest contact + booking message). The icon
 * action row and the .equarent-rev-peek row reuse the shared Reviews styles in the core admin sheet;
 * this only styles the reservation-specific detail layout inside that revealed row.
 * ------------------------------------------------------------------------------------------------- */
.equarent-admin .equarent-res-detail {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	margin: 0 0 10px;
}
.equarent-admin .equarent-res-detail > div {
	display: flex;
	flex-direction: column;
	min-width: 140px;
}
.equarent-admin .equarent-res-detail dt {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #8c97a3;
	margin: 0;
}
.equarent-admin .equarent-res-detail dd {
	margin: 2px 0 0;
	color: #1d2327;
}
.equarent-admin .equarent-res-msg strong {
	display: block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #8c97a3;
	margin: 0 0 4px;
}
.equarent-admin .equarent-res-msg p {
	margin: 0;
	max-width: 70ch;
	white-space: pre-line;
}

/* -------------------------------------------- Automatic balance payment (Pricing -> Payment) */
.equarent-admin .equarent-pay-plan h3.equarent-amenity-group__title {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #e2e6ea;
}
.equarent-admin .equarent-pay-plan .equarent-toggle-row {
	margin-top: 14px;
}

/* -------------------------------------------- Cancellation policy (Pricing, three tiers) */
.equarent-admin .equarent-cancel-policy .equarent-cancel-tier {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	background: #fbfcfd;
}
.equarent-admin .equarent-cancel-policy .equarent-cancel-tier .equarent-toggle-row {
	margin-top: 0;
}
.equarent-admin .equarent-cancel-policy .equarent-cancel-tier__params {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e8ebee;
}
/* Pure-CSS reveal: a tier's parameters appear only while its own toggle is checked. Scoped to
   .equarent-cancel-tier so the other switches on this screen (auto-balance, fail-refund) are
   unaffected, and no Free JavaScript is involved. */
.equarent-admin .equarent-cancel-policy .equarent-cancel-tier:not(:has( .equarent-switch__cb:checked )) .equarent-cancel-tier__params {
	display: none;
}

/* -------------------------------------------------------------------------
   Recette #27 — "Legal information" tab: a fixed 3-row x 2-column grid
   (SIRET/SIREN, VAT/Copyright, Address/Free text) with wider inputs than the
   default auto-fit grid. Scoped to the legal-info grid only. Pro-only view.
   ------------------------------------------------------------------------- */
.equarent-admin .equarent-legalinfo-grid {
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}
.equarent-admin .equarent-legalinfo-grid .equarent-field input[type="text"],
.equarent-admin .equarent-legalinfo-grid .equarent-field textarea {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}
@media ( max-width: 782px ) {
	.equarent-admin .equarent-legalinfo-grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Recette #27 — Legal pages tab: the "create a new page" card + the
   "legal page to accept before booking" selector side by side (50/50).
   ------------------------------------------------------------------------- */
.equarent-admin .equarent-legal-top {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}
.equarent-admin .equarent-legal-top__card {
	flex: 1 1 calc( 50% - 8px );
	min-width: 260px;
	margin: 0;
}

/* -------------------------------------------------------------------------
   Recette #28 — multi-image hero editor: thumbnail strip (add / drag-reorder
   / per-image crop via a modal / delete) + a faithful live preview that
   replaces the former dark stage box. The crop stage is reused in the modal.
   ------------------------------------------------------------------------- */
.equarent-admin .equarent-pro-hero__strip {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin: 10px 0 26px;
}
.equarent-admin .equarent-pro-hero__cell {
	position: relative;
	width: 156px;
	height: 102px;
	border-radius: 8px;
	overflow: hidden;
	background: #eef3f8;
	border: 1px solid #d3dce6;
	cursor: grab;
}
.equarent-admin .equarent-pro-hero__cell.is-dragging {
	opacity: 0.4;
}
.equarent-admin .equarent-pro-hero__cell-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
.equarent-admin .equarent-pro-hero__cell-handle {
	position: absolute;
	left: 4px;
	top: 4px;
	color: #fff;
	filter: drop-shadow( 0 1px 1px rgba( 0, 0, 0, 0.6 ) );
	display: inline-flex;
	pointer-events: none;
}
.equarent-admin .equarent-pro-hero__cell-btn {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.55 );
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
}
.equarent-admin .equarent-pro-hero__cell-btn:hover {
	background: rgba( 0, 0, 0, 0.78 );
}
.equarent-admin .equarent-pro-hero__cell-gear { right: 4px; top: 4px; }
.equarent-admin .equarent-pro-hero__cell-del { right: 4px; bottom: 4px; font-size: 16px; }

/* Crop modal */
.equarent-admin .equarent-pro-hero__modal,
.equarent-pro-hero__modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba( 0, 0, 0, 0.6 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.equarent-pro-hero__modal[hidden] { display: none; }
.equarent-pro-hero__modal-dialog {
	background: #fff;
	border-radius: 12px;
	width: min( 1040px, 96vw );
	max-height: 94vh;
	overflow: auto;
	padding: 16px;
	box-shadow: 0 12px 48px rgba( 0, 0, 0, 0.3 );
}
.equarent-pro-hero__modal-head { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.equarent-pro-hero__modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* Faithful live preview (replaces the black box) */
.equarent-admin .equarent-pro-hero__realpreview {
	position: relative;
	width: 100%;
	max-width: 720px;
	aspect-ratio: var( --equarent-hero-aspect, 21 / 9 );
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	/* Mirror the front: a no-image hero shows the appearance accent; the veil below uses it too. */
	background: var( --equarent-accent, #1981de );
	color: #fff;
	margin: 4px 0 16px;
}
.equarent-admin .equarent-pro-hero__realpreview-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
/* Veil mirroring the front hero (accent mixed with the fixed dark anchor #0b1b2a). */
.equarent-admin .equarent-pro-hero__realpreview::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient( 135deg, rgba( 11, 27, 42, 0.72 ), rgba( 11, 27, 42, 0.40 ) );
	opacity: var( --equarent-hero-overlay-opacity, 0.55 );
	z-index: 1;
}
@supports ( background: color-mix( in srgb, red 50%, blue ) ) {
	.equarent-admin .equarent-pro-hero__realpreview::before {
		background: linear-gradient( 135deg, color-mix( in srgb, var( --equarent-accent, #1981de ) 52%, #0b1b2a 48% ), color-mix( in srgb, var( --equarent-accent, #1981de ) 30%, transparent ) );
	}
}
.equarent-admin .equarent-pro-hero__realpreview-text {
	position: relative;
	z-index: 2;
	padding: 16px;
}
.equarent-admin .equarent-pro-hero__realpreview .equarent-hero__name { font-size: 28px; font-weight: 800; margin: 0 0 8px; line-height: 1.1; }
.equarent-admin .equarent-pro-hero__realpreview .equarent-hero__tagline { font-size: 16px; margin: 0 0 4px; opacity: 0.95; }
.equarent-admin .equarent-pro-hero__realpreview .equarent-hero__free { font-size: 14px; margin: 0; opacity: 0.95; }
.equarent-admin .equarent-pro-hero__realpreview-badge {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 2;
	background: rgba( 0, 0, 0, 0.5 );
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
}
/* Live-preview prev/next buttons (recette #31): review every hero image in the demo. */
.equarent-admin .equarent-pro-hero__realpreview-nav {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 3;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba( 0, 0, 0, 0.45 );
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.equarent-admin .equarent-pro-hero__realpreview-nav:hover {
	background: rgba( 0, 0, 0, 0.7 );
}
.equarent-admin .equarent-pro-hero__realpreview-nav--prev { left: 10px; }
.equarent-admin .equarent-pro-hero__realpreview-nav--next { right: 10px; }

/* -------------------------------------------------------------------------
   Recette #29 — hero editor: live preview (left) + Title/Tagline/Free-text
   controls (right, stacked half-width); crop modal with a pinned footer +
   capped image height so Cancel/Save stay visible for portrait images.
   ------------------------------------------------------------------------- */
.equarent-admin .equarent-pro-hero__main {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: flex-start;
	margin: 4px 0 20px;
}
.equarent-admin .equarent-pro-hero__main .equarent-pro-hero__realpreview {
	flex: 1 1 510px;
	max-width: 840px;
	margin: 0;
}
/* Middle column (recette #31): hero height + opacity grouped in a box between preview and text. */
.equarent-admin .equarent-pro-hero__settings {
	flex: 0 1 240px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
	padding: 14px 14px 16px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
}
.equarent-admin .equarent-pro-hero__settings-legend {
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
}
.equarent-admin .equarent-pro-hero__settings .equarent-pro-hero__ratio,
.equarent-admin .equarent-pro-hero__settings .equarent-pro-hero__opacity {
	margin: 0;
}
.equarent-admin .equarent-pro-hero__settings .equarent-pro-hero__ratio-select,
.equarent-admin .equarent-pro-hero__settings .equarent-pro-hero__opacity-control input[type="range"] {
	max-width: none;
}
.equarent-admin .equarent-pro-hero__main .equarent-pro-hero__text {
	flex: 1 1 260px;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}
.equarent-admin .equarent-pro-hero__main .equarent-pro-hero__rubric {
	width: 100%;
	box-sizing: border-box;
}
/* Crop modal: flex column so the footer (Cancel / Save) is always visible; the body scrolls. */
.equarent-pro-hero__modal-dialog {
	display: flex;
	flex-direction: column;
}
.equarent-pro-hero__modal-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	text-align: center;
	/* Breathing room all around the crop image so a resize drag has slack before the pointer
	   can reach the backdrop (recette #31 crop bug 2). */
	padding: 12px 24px 4px;
}
.equarent-pro-hero__modal-foot {
	flex: 0 0 auto;
}
/* Crop stage in the modal: SHRINK-WRAP the image (no dark letterbox for horizontal photos) and cap
   the image height so a PORTRAIT photo fits the viewport (no scrolling to reach Cancel/Save). The
   extra class + [data-has-image] attribute beat the base rule that sets display:block + the dark bg. */
.equarent-admin .equarent-pro-hero__modal-body .equarent-pro-hero__stage,
.equarent-admin .equarent-pro-hero__modal-body .equarent-pro-hero__stage[data-has-image] {
	display: inline-block;
	width: auto;
	max-width: 100%;
	max-height: none;
	min-height: 0;
	background: transparent;
}
.equarent-admin .equarent-pro-hero__modal-body .equarent-pro-hero__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 70vh;
}

/* Recette #29 — no-VAT mention in the admin reservation modal. */
.equarent-admin .equarent-res-detail__novat {
	margin: 8px 0 0;
	font-size: 12px;
	font-style: italic;
	color: #52708a;
}

/* Recette #29 — per-language menu label editor in the Site Layout configurator. */
.equarent-admin .equarent-sc__milangs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 4px 0 6px 40px;
	padding: 6px 10px;
	background: #f6f9fc;
	border-radius: 8px;
}
.equarent-admin .equarent-sc__milangs--child {
	margin-left: 20px;
}
.equarent-admin .equarent-sc__milang {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: #52708a;
}
.equarent-admin .equarent-sc__milang span {
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
}
.equarent-admin .equarent-sc__milang input {
	min-width: 140px;
}

/* Recette #30 — configurator menu items as accordions + sub-item indent marker. */
.equarent-admin .equarent-sc__mi-acc {
	border: 1px solid #dcdfe3;
	border-radius: 8px;
	margin: 6px 0;
	background: #fff;
}
.equarent-admin .equarent-sc__mi-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
}
.equarent-admin .equarent-sc__mi-summary::-webkit-details-marker { display: none; }
.equarent-admin .equarent-sc__mi-summary::before {
	content: "▸";
	color: #52708a;
	transition: transform 0.15s ease;
}
.equarent-admin .equarent-sc__mi-acc[open] .equarent-sc__mi-summary::before { transform: rotate( 90deg ); }
.equarent-admin .equarent-sc__mi-summary-label { flex: 1 1 auto; }
.equarent-admin .equarent-sc__mi-summary-kind {
	font-weight: 400;
	font-size: 12px;
	color: #52708a;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.equarent-admin .equarent-sc__mi-acc-body {
	padding: 4px 12px 12px;
	border-top: 1px solid #eef3f8;
}
.equarent-admin .equarent-sc__mi--child {
	position: relative;
	padding-left: 24px;
}
.equarent-admin .equarent-sc__mi-childmark {
	position: absolute;
	left: 4px;
	top: 7px;
	color: #8a95a5;
	font-size: 15px;
	line-height: 1;
}

/* Multi-property site configurator (recette #33 Lot 2): per-block property selector, palette filter,
   and collapsible page accordions. Scoped to the configurator; Pro-only (this CSS ships in the Pro zip). */
.equarent-sc .equarent-sc__palfilter {
	display: block;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}
.equarent-sc .equarent-sc__palfilter select {
	display: block;
	width: 100%;
	margin-top: 4px;
}
.equarent-sc .equarent-sc__secprop {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 2px;
	font-size: 12px;
	color: #50575e;
}
.equarent-sc .equarent-sc__secprop select {
	flex: 1 1 auto;
	max-width: 260px;
}
.equarent-sc .equarent-sc__secprop-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #e6f0fa;
	color: #0c3a66;
	font-size: 11px;
	font-weight: 600;
	vertical-align: middle;
}
/* Top-level section accordions (recette #35): the whole configurator is split into a
   "Pages" group (page accordions + palette filter + available-elements list) and a "Menu"
   group (the menu editor). `open` is a constant literal in the JS so these stay uncontrolled. */
.equarent-sc > .equarent-sc__section {
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	margin-bottom: 18px;
	background: #fff;
}
.equarent-sc > .equarent-sc__section > .equarent-sc__section-sum {
	cursor: pointer;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 700;
	color: #1d2327;
	background: #f6f7f7;
	border-radius: 8px 8px 0 0;
	list-style: revert;
}
.equarent-sc > .equarent-sc__section[open] > .equarent-sc__section-sum {
	border-bottom: 1px solid #dcdcde;
}
.equarent-sc > .equarent-sc__section > .equarent-sc__main,
.equarent-sc > .equarent-sc__section > .equarent-sc__menu {
	padding: 16px;
}
.equarent-sc > .equarent-sc__section > .equarent-sc__menu { margin-top: 0; }

.equarent-sc .equarent-sc__page-acc {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	margin-bottom: 12px;
	background: #fff;
}
.equarent-sc .equarent-sc__page-sum {
	cursor: pointer;
	padding: 10px 12px;
	font-weight: 600;
	color: #1d2327;
	list-style: revert;
}
.equarent-sc .equarent-sc__page-acc[open] > .equarent-sc__page-sum {
	border-bottom: 1px solid #f0f0f1;
}
.equarent-sc .equarent-sc__page-acc > .equarent-sc__page {
	padding: 10px 12px;
}

/* Menu configurator (recette #33 Lot 3): parent-only kind + home-page radio. */
.equarent-sc .equarent-sc__mi-kind { max-width: 140px; }
.equarent-sc .equarent-sc__mi-home {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 2px;
	font-size: 12px;
	color: #50575e;
}

/* Palette — two grouped lists in a scrollable frame, filter fixed above (recette #34). */
.equarent-sc .equarent-sc__palfilter { display: block; margin: 0 0 8px; }
.equarent-sc .equarent-sc__palscroll {
	max-height: 60vh;
	overflow-y: auto;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	padding: 8px;
	background: #fbfbfc;
}
.equarent-sc .equarent-sc__palgroup + .equarent-sc__palgroup { margin-top: 12px; }
.equarent-sc .equarent-sc__palgroup-title {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #646970;
}
.equarent-sc .equarent-sc__chip--prop .equarent-sc__chip-prop {
	color: #50575e;
	font-style: italic;
	font-size: 11px;
}

/* Identity panel header: title left, "Set as default" / default flag top-right (recette #34). */
.equarent-admin .equarent-admin__panelhead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.equarent-admin .equarent-admin__panelhead .equarent-admin__title { margin: 0; }
.equarent-admin .equarent-admin__default-form { margin: 0; }
.equarent-admin .equarent-admin__default-flag {
	font-size: 12px;
	font-weight: 600;
	color: #1d6b2f;
}

/* Reservations list — property filter badges, search + page-size tools and pagination (recette #35). */
.equarent-admin .equarent-res-pro-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 14px;
	padding: 12px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
}
.equarent-admin .equarent-res-propfilter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.equarent-admin .equarent-res-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	line-height: 1.6;
	color: #1d2327;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.equarent-admin .equarent-res-badge:hover {
	border-color: #2271b1;
}
.equarent-admin .equarent-res-badge.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}
.equarent-admin .equarent-res-badge input[type="checkbox"] {
	margin: 0;
}
.equarent-admin .equarent-res-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
}
.equarent-admin .equarent-res-perpage {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #50575e;
}
.equarent-admin .equarent-res-search {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
/* .equarent-res-pagination / .equarent-res-pageinfo now live in the core admin sheet (shared Free+Pro). */

/* Degraded-license (recette): a Pro-enforcement control group (auto-balance, soft cancellation
   tiers) is shown read-only on an unlicensed instance so a prospect sees everything, with a note. */
.equarent-admin .equarent-pro-locked {
	position: relative;
}
.equarent-admin .equarent-pro-locked input,
.equarent-admin .equarent-pro-locked select,
.equarent-admin .equarent-pro-locked .equarent-switch {
	opacity: .55;
	cursor: not-allowed;
}
.equarent-admin .equarent-pro-lock-note {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #fcf0d6;
	color: #8a6d1a;
	font-size: 12px;
	font-weight: 600;
}

/* Recette: the "Check availability" badge in the live hero preview (admin). The front pill shape comes
   from the Free .equarent-btn CSS which is not loaded in admin, so give it a self-contained pill here. */
.equarent-admin .equarent-pro-hero__preview-cta {
	display: inline-block;
	margin-top: 10px;
	padding: 0.6em 1.3em;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	cursor: default;
}

/* Calendar (recette): hide the redundant occupancy dot/square (the caption already labels the day), put
   the source caption on its own line (was wrapping beside 2-digit dates), colour each stay as a distinct
   range so consecutive bookings are told apart, and make booked days clickable to open the detail modal.
   With the in-cell markers gone, the legend key below (Available/Booked/Blocked glyphs) explains nothing,
   so it is hidden too — CSS-only, keeping the Pro view byte-for-byte Free; the Free build never loads this
   sheet so its legend + dots stay intact. */
.equarent-admin .equarent-cal__cell.is-booked .equarent-cal__mark,
.equarent-admin .equarent-cal__cell.is-blocked .equarent-cal__mark,
.equarent-admin .equarent-cal-legend { display: none; }
.equarent-admin .equarent-cal__num { display: block; line-height: 1.1; }
.equarent-admin .equarent-pro-cal__caption { display: block; clear: both; margin-top: 2px; font-size: 11px; line-height: 1.2; color: #52708a; word-break: break-word; }
.equarent-admin .equarent-cal__cell.is-clickable { cursor: pointer; }
.equarent-admin .equarent-cal__cell.is-clickable:focus-visible { outline: 2px solid var( --equarent-accent, #1981de ); outline-offset: -2px; }
.equarent-admin .equarent-cal__cell.is-stay-start { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.equarent-admin .equarent-cal__cell.is-stay-end { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--0 { background: #dbeafe; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--1 { background: #dcfce7; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--2 { background: #fae8cf; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--3 { background: #f3d9f0; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--4 { background: #d8f0f2; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--5 { background: #e5e0fb; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--6 { background: #fde2e2; }
.equarent-admin .equarent-cal__cell.equarent-pro-cal__stay--7 { background: #e8efc9; }

/* Calendar stats + occupancy-extract panel (recette): the calendar grid is capped at 700px, leaving the
   right half of its card empty — fill it with a two-column layout (calendar left, stats/extract right) that
   stacks below the calendar on narrow screens. Pro-only (the Free build never loads this sheet). */
.equarent-admin .equarent-cal-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.equarent-admin .equarent-cal-main { flex: 0 1 700px; min-width: 0; }
.equarent-admin .equarent-cal-side { flex: 1 1 320px; min-width: 260px; }
.equarent-admin .equarent-cal-stats { background: #f3f8fd; border: 1px solid #e6edf5; border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.equarent-admin .equarent-cal-stats__title { margin: 0 0 10px; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: #52708a; }
.equarent-admin .equarent-cal-stats__list { list-style: none; margin: 0; padding: 0; }
.equarent-admin .equarent-cal-stats__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-bottom: 1px solid #e6edf5; }
.equarent-admin .equarent-cal-stats__list li:last-child { border-bottom: 0; }
.equarent-admin .equarent-cal-stats__list strong { font-weight: 700; color: #0c3a66; }
.equarent-admin .equarent-cal-extract { background: #fff; border: 1px solid #e6edf5; border-radius: 10px; padding: 14px 16px; }
.equarent-admin .equarent-cal-extract .equarent-field { margin: 0 0 10px; }
.equarent-admin iframe.equarent-occ-sink { display: none; }
@media ( max-width: 1100px ) { .equarent-admin .equarent-cal-side { flex-basis: 100%; } }

/* Deposit sub-block + its %/currency input unit. The Free core is all-or-nothing (no deposit), so these
   styles — and the .is-hidden toggles driven by equarent-pro-rates.js (deposit sub-block and the
   auto-balance card) — live only in the Pro overlay. CSS-hide only, so the stored config still POSTs. */
.equarent-admin .equarent-pay-deposit { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e6edf5; }
.equarent-admin .equarent-pay-deposit.is-hidden { display: none; }
.equarent-admin .equarent-pay-deposit .equarent-field { flex: 1 1 240px; max-width: 360px; margin: 0; }
.equarent-admin .equarent-pay-deposit select { width: 100%; max-width: 360px; }
.equarent-admin .equarent-input-unit { position: relative; display: flex; align-items: center; width: 100%; max-width: 360px; }
.equarent-admin .equarent-input-unit input { flex: 1 1 auto; width: 100%; padding-right: 54px; }
.equarent-admin .equarent-input-unit__suffix { position: absolute; right: 12px; color: #4a5566; font-size: 13px; font-weight: 600; pointer-events: none; }
.equarent-admin .equarent-pay-plan.is-hidden { display: none; }

/* ============================================================================
   Recette (admin UI) — Pro-only tweaks. Scoped under .equarent-admin; loaded
   after the core 'equarent-admin' sheet (dependency set in the Pro overlay).
   ============================================================================ */

/* KEK back-up reminder: both actions on one row, "Remind me later" pushed a bit
   to the right and vertically centred on the "Download the backup now" button. */
.equarent-admin .equarent-kek-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.equarent-admin .equarent-kek-actions form {
	display: inline;
	margin: 0;
}
.equarent-admin .equarent-kek-actions .button-link {
	margin-left: 8px;
}

/* Reservations admin search field: ~double the default width. */
.equarent-admin .equarent-res-search input[type="search"] {
	width: 320px;
	max-width: 100%;
}

/* EquaSuite content banner (core markup/CSS, not editable): the "Hide" control
   was absolutely positioned top-right and overlapped the banner. The banner renders
   through admin_notices (class-equarent-content.php), i.e. OUTSIDE .wrap.equarent-admin,
   so the previous .equarent-admin-scoped override never matched and the core absolute
   rule (equarent-admin.css:347) still won. Scope instead to .equarent-contentbar itself
   (specificity 0,2,0 beats the core 0,1,0) so it applies wherever the bar lands. The
   button is the last child of the (display:block) .equarent-contentbar, so clearing it
   and making it a static block drops it onto its own line, left-aligned, just below the
   banner (margin-left:0 neutralises the core margin-left:auto). Overlay only — Free keeps
   the core layout. */
.equarent-contentbar .equarent-contentbar__hide {
	position: static;
	top: auto;
	right: auto;
	float: none;
	clear: both;
	display: block;
	width: -moz-fit-content;
	width: fit-content;
	margin: 8px auto 0 0;
}

/* Property fiche (recette): the Capacity & layout tab is split into TWO distinct
   cards ("Capacity" and "Arrangement"), shown SIDE BY SIDE so their fields align
   row by row — each card lists its fields in a single column, so e.g. "Pets" (last
   of Capacity) lines up with "Exterior surface" and "Levels" trails below it in
   Arrangement. Collapses to a single column on narrow screens. Pro-only view. */
/* :not([hidden]) is essential — the tab JS hides inactive panels with the native `hidden`
   attribute, and an unconditional `display:grid` would override [hidden]{display:none} and
   leave this panel permanently visible on every tab. */
.equarent-admin .equarent-tabpanel--split:not( [hidden] ) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	align-items: start;
}
.equarent-admin .equarent-tabpanel--split > .equarent-card {
	margin: 0;
}
/* One field per row inside each split card, so the two columns align field-for-field. */
.equarent-admin .equarent-tabpanel--split .equarent-grid {
	grid-template-columns: 1fr;
}
@media ( max-width: 782px ) {
	.equarent-admin .equarent-tabpanel--split {
		grid-template-columns: 1fr;
	}
}

/* Custom-texts editor (recette): group sub-header rows inside the single merged
   "Site content" table (Interface / Pages & sections / Booking bar / Payment), so
   one column header serves all groups instead of a header repeated per sub-table. */
.equarent-admin .equarent-texts-table tr.equarent-texts-group td {
	background: #eef4fb;
	border-top: 2px solid #c9ddf2;
	padding-top: 10px;
	padding-bottom: 10px;
	font-size: 12px;
	letter-spacing: .02em;
	color: #0c3a66;
}

/* Email template editor (Settings > Texts > Emails): space each template block and keep the HTML
   body textarea legible. Pro-only admin editor; no front impact. */
.equarent-admin .equarent-email-tpl {
	padding: 14px 0 4px;
	border-top: 1px solid #e3e8ef;
}
.equarent-admin .equarent-email-tpl:first-of-type {
	border-top: 0;
}
.equarent-admin .equarent-email-tpl .equarent-admin__subtitle {
	margin: 0 0 8px;
	font-weight: 600;
}
.equarent-admin .equarent-email-tpl textarea.code {
	font-family: Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
}

/* ------------------------------------------------------------------ *
 * Footer text translations: the per-element "Translations" button and
 * the shared translations modal (footer builder, Pro only).
 * ------------------------------------------------------------------ */
.equarent-ftranslate {
	display: inline-flex;
	align-items: center;
}
.equarent-ftranslate__btn {
	font-size: 12px;
	white-space: nowrap;
	cursor: pointer;
}
.equarent-ftranslate__btn.is-set {
	font-weight: 600;
}
.equarent-ftranslate__btn.is-set::before {
	content: "\2713\00a0"; /* a tick when at least one translation is set. */
}

.equarent-ftr-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.equarent-ftr-modal[hidden] {
	display: none;
}
.equarent-ftr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 17, 24, 39, 0.55 );
}
.equarent-ftr-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.3 );
	width: 100%;
	max-width: 520px;
	max-height: 85vh;
	overflow-y: auto;
	padding: 0 0 18px;
}
.equarent-ftr-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e5e7eb;
}
.equarent-ftr-modal__title {
	margin: 0;
	font-size: 16px;
}
.equarent-ftr-modal__close {
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: 0 4px;
}
.equarent-ftr-modal__src {
	margin: 0;
	padding: 14px 20px 4px;
	color: #4b5563;
}
.equarent-ftr-modal__fields {
	padding: 8px 20px;
}
.equarent-ftr-modal__field {
	display: block;
	margin: 0 0 12px;
}
.equarent-ftr-modal__lang {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}
.equarent-ftr-modal__field input[type="text"] {
	width: 100%;
	box-sizing: border-box;
}
.equarent-ftr-modal__foot {
	display: flex;
	gap: 10px;
	padding: 6px 20px 0;
}

/* Keep the site-structure configurator "Available elements" palette in view while scrolling a long
   page editor (recette: the palette used to stay at the top of the Pages group and scroll out of view).
   .equarent-sc__main is already align-items:flex-start, so the palette is content-height and can stick. */
.equarent-sc__palette {
	position: sticky;
	top: 40px; /* just below the WP admin bar. */
	align-self: flex-start;
	max-height: calc( 100vh - 56px );
	overflow-y: auto;
}

/* FAQ editor accordion (recette: each FAQ block folds, collapsed by default). */
.equarent-admin .equarent-pro-faq__blockhead {
	cursor: pointer;
	user-select: none;
}
.equarent-admin .equarent-pro-faq__blockname {
	margin-right: auto; /* push the Remove button to the far right. */
}
.equarent-admin .equarent-pro-faq__caret {
	flex: 0 0 auto;
	width: 0;
	height: 0;
	border-left: 6px solid currentColor;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	color: #646970;
	transition: transform 0.15s ease;
}
/* Rotate the caret of whichever header is expanded — keyed on aria-expanded so a block header does not
   rotate the carets of the pair accordions nested in its body. */
.equarent-admin .equarent-pro-faq__blockhead[aria-expanded="true"] .equarent-pro-faq__caret,
.equarent-admin .equarent-pro-faq__pairhead[aria-expanded="true"] .equarent-pro-faq__caret {
	transform: rotate( 90deg );
}
.equarent-admin .equarent-pro-faq__block.is-collapsed .equarent-pro-faq__blockbody {
	display: none;
}
/* Nested Q/A pair accordion (recette). */
.equarent-admin .equarent-pro-faq__pairhead {
	cursor: pointer;
	user-select: none;
}
.equarent-admin .equarent-pro-faq__pairnum {
	margin-right: auto; /* push the move/remove tools to the right. */
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.equarent-admin .equarent-pro-faq__pair.is-collapsed .equarent-pro-faq__pairbody {
	display: none;
}

/* Stripe connection-status styles (.equarent-conn-*) now live in the core admin sheet. */

/* --- Unified Emails editor: tabs, per-field toolbar, preview modal -------------------------- */
.equarent-admin .equarent-eml-tabs { display: inline-flex; gap: 4px; background: #eef2f7; border-radius: 999px; padding: 4px; margin: 4px 0 16px; }
.equarent-admin .equarent-eml-tab { border: none; background: none; cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: var( --equarent-text-faint ); padding: 7px 16px; border-radius: 999px; line-height: 1.3; }
.equarent-admin .equarent-eml-tab:hover { color: var( --equarent-blue ); }
.equarent-admin .equarent-eml-tab.is-active { background: #fff; color: var( --equarent-blue ); box-shadow: 0 1px 3px rgba( 12, 58, 102, .12 ); }
.equarent-admin .equarent-eml-tabpanel.is-hidden { display: none; }

.equarent-admin .equarent-eml-tpl { margin-bottom: 10px; }
.equarent-admin .equarent-eml-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 0 0 6px; }
.equarent-admin .equarent-eml-toolbar .button-small { min-height: 26px; line-height: 24px; padding: 0 8px; }
.equarent-admin .equarent-eml-fmt--bold { font-weight: 700; }
.equarent-admin .equarent-eml-fmt--italic { font-style: italic; }
.equarent-admin .equarent-eml-toolbar__sep { width: 1px; height: 20px; background: #d6dee8; margin: 0 4px; }
.equarent-admin .equarent-eml-toolbar__lbl { font-size: 12px; }
.equarent-admin .equarent-eml-ph { font-size: 11.5px; }
.equarent-admin .equarent-eml-block { font-weight: 600; }
.equarent-admin .equarent-eml-actions { margin: 10px 0 0; }

.equarent-admin .equarent-eml-tpl .equarent-acc__body { padding-top: 14px; }

/* Preview modal (sandboxed iframe renders the email exactly as sent) */
.equarent-eml-modal { position: fixed; inset: 0; z-index: 100050; display: block; }
.equarent-eml-modal[hidden] { display: none; }
.equarent-eml-modal__backdrop { position: absolute; inset: 0; background: rgba( 12, 34, 61, .55 ); }
.equarent-eml-modal__panel { position: relative; width: min( 720px, 94vw ); max-height: 88vh; margin: 5vh auto 0; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba( 12, 34, 61, .35 ); display: flex; flex-direction: column; overflow: hidden; }
.equarent-eml-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e6edf5; }
.equarent-eml-modal__subject { font-size: 14px; color: var( --equarent-navy ); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equarent-eml-modal__x { font-size: 22px; line-height: 1; text-decoration: none; color: #6a7585; cursor: pointer; padding: 0 4px; }
.equarent-eml-modal__x:hover { color: var( --equarent-blue ); }
.equarent-eml-modal__frame { width: 100%; height: 70vh; border: 0; background: #f3f8fd; }

/* ---------------------------------------------------------------------------
 * 1.0.17 recette — tidier Deposit/hold + Stay options forms: label, legend,
 * then the control with a currency/% unit suffix (matching the Pricing screen).
 * Scoped to the two screens so the shared .equarent-field primitives are reused.
 * ------------------------------------------------------------------------- */
.equarent-admin.equarent-pro-security-deposit .equarent-field .equarent-hint,
.equarent-admin.equarent-pro-stay-options .equarent-field .equarent-hint { margin: 4px 0 8px; }

/* Amount row: the mode <select> + the input-with-unit sit on one line. */
.equarent-admin .equarent-amount-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.equarent-admin .equarent-amount-row .equarent-input-unit { max-width: 180px; }

/* A narrow variant of the shared input-unit, for short amounts / counts (days, hours, a deposit value). */
.equarent-admin .equarent-input-unit--narrow { max-width: 170px; }

/* Wider text inputs for the Swikly connection fields (key / link template / callback URL). */
.equarent-admin .equarent-field input.equarent-field__wide { width: 100%; max-width: 600px; }

/* The sandbox toggle: a <label> wrapping the switch pill + caption so the whole row (pill included) is
 * clickable, with the hint on its own line below. */
.equarent-admin .equarent-switch-row { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.equarent-admin .equarent-switch-label { font-weight: 600; color: var( --equarent-navy ); }

/* Per-mechanism disclaimer (kept card / Swikly): a calm amber note, toggled by equarent-pro-admin-forms.js. */
.equarent-admin .equarent-pro-disclaimer { background: #fff8e5; border: 1px solid #f0d58a; border-left: 4px solid #e0a800; border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; }
.equarent-admin .equarent-pro-disclaimer p { margin: 0; font-size: 13px; line-height: 1.55; color: #6b5300; }
.equarent-admin .equarent-pro-disclaimer.is-hidden { display: none; }

/* A whole field toggled by mechanism (e.g. the deposit debit-timing choice, shown only for charge_refund,
   data-equarent-depmode-only). Without this rule the is-hidden class on an .equarent-field has no effect. */
.equarent-admin .equarent-field.is-hidden { display: none; }

/* Refunds dashboard: the reservation reference links to its detail modal (admin page or front console). */
.equarent-pro-refunds__reslink { text-decoration: none; }
.equarent-pro-refunds__reslink:hover { text-decoration: underline; }
.equarent-pro-refunds__reslink code { cursor: pointer; }
