/*
 * getloupa.com · components rendered by the getloupa-site plugin.
 * Layout and typography of the pages live in Elementor (global classes and
 * variables). This file only styles what the shortcodes print, plus a few
 * site-wide basics that Elementor V4 has no control for.
 */

:root {
	--lp-verde: #1F4D3F;
	--lp-verde-oscuro: #183D32;
	--lp-ambar: #E9B44C;
	--lp-ambar-oscuro: #D9A23A;
	--lp-salvia: #CFE0D6;
	--lp-tinta: #10201B;
	--lp-papel: #F3F1E9;
	--lp-blanco: #FFFFFF;
	--lp-texto-2: #3A4A44;
	--lp-texto-3: #56655E;
	--lp-linea: #DDD8CA;
	--lp-linea-suave: #ECEAE4;
	--lp-titular: "Newsreader", Georgia, serif;
	--lp-texto: "Schibsted Grotesk", system-ui, sans-serif;

	--st-access-bg: #E4F1E8;     --st-access-fg: #1D5A35;
	--st-noaccess-bg: #FBE3DF;   --st-noaccess-fg: #8A2318;
	--st-failed-bg: #FDF0D5;     --st-failed-fg: #7A4A06;
	--st-paused-bg: #E3ECF5;     --st-paused-fg: #23466B;
	--st-cancelling-bg: #EFE9F5; --st-cancelling-fg: #4F3A6E;
	--st-expired-bg: #ECEAE4;    --st-expired-fg: #4A4740;
}

/* ---------- Site-wide basics ---------- */

html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	background: var(--lp-papel);
	color: var(--lp-tinta);
	font-family: var(--lp-texto);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection { background: var(--lp-salvia); color: var(--lp-tinta); }

a { color: var(--lp-verde); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--lp-ambar);
	outline-offset: 2px;
	border-radius: 4px;
}

.lp-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

/* Skip-link target. */
.lp-skip-target { display: block; height: 0; outline: none; }

/* Header: the button keeps its label on one line. */
[data-elementor-type="header"] a { white-space: nowrap; }

/* Elementor's shortcode wrapper should not add space. */
.elementor-widget-shortcode .elementor-shortcode { line-height: inherit; }

/* ---------- Buttons ---------- */

.lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 52px;
	padding: 12px 26px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: 600 1.0625rem/1.2 var(--lp-texto);
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.lp-btn--m { min-height: 44px; padding: 10px 20px; font-size: 1rem; }

.lp-btn.lp-btn--primary { background: var(--lp-verde); border-color: var(--lp-verde); color: #fff; }
.lp-btn.lp-btn--primary:hover { background: var(--lp-verde-oscuro); border-color: var(--lp-verde-oscuro); color: #fff; }

/* The theme styles every <button>; these win over it. */
button.lp-btn.lp-btn--amber,
.lp-btn.lp-btn--amber { background: var(--lp-ambar); border-color: var(--lp-ambar); color: var(--lp-tinta); }
button.lp-btn.lp-btn--amber:hover,
button.lp-btn.lp-btn--amber:focus,
.lp-btn.lp-btn--amber:hover { background: var(--lp-ambar-oscuro); border-color: var(--lp-ambar-oscuro); color: var(--lp-tinta); }

/* «Coming soon to WordPress.org»: a status, not an action. */
.lp-btn.lp-btn--soon {
	background: var(--lp-blanco);
	border-color: var(--lp-linea);
	color: var(--lp-verde);
	cursor: default;
}

/* ---------- Language switch ---------- */

.lp-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 500 0.9375rem/1 var(--lp-texto);
	color: var(--lp-texto-2);
}
.lp-lang a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	min-width: 28px;
	justify-content: center;
	color: var(--lp-texto-2);
	text-decoration: none;
}
.lp-lang a:hover { color: var(--lp-verde); text-decoration: underline; text-underline-offset: 3px; }
.lp-lang a[aria-current] { color: var(--lp-tinta); font-weight: 700; }
.lp-lang__sep { color: var(--lp-texto-3); }

/* ---------- Status chips ---------- */

.lp-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 6px;
	font: 500 0.8125rem/1.35 var(--lp-texto);
	white-space: nowrap;
}
.lp-chip--all { background: var(--lp-verde); color: #fff; border-radius: 999px; padding: 4px 11px; }
.lp-chip--access { background: var(--st-access-bg); color: var(--st-access-fg); }
.lp-chip--noaccess { background: var(--st-noaccess-bg); color: var(--st-noaccess-fg); }
.lp-chip--failed { background: var(--st-failed-bg); color: var(--st-failed-fg); }
.lp-chip--paused { background: var(--st-paused-bg); color: var(--st-paused-fg); }
.lp-chip--cancelling { background: var(--st-cancelling-bg); color: var(--st-cancelling-fg); }
.lp-chip--expired { background: var(--st-expired-bg); color: var(--st-expired-fg); }
.lp-lens-card__filters .lp-chip:not(.lp-chip--all) { border-radius: 999px; padding: 4px 11px; }

/* ---------- Hero card with the lens ---------- */

.lp-lens-card { margin: 0; }
.lp-lens-card__bar {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 18px;
	background: var(--lp-linea-suave);
	border-radius: 16px 16px 0 0;
	font: 400 0.8125rem/1.2 var(--lp-texto);
	color: var(--lp-texto-3);
	min-width: 0;
}
.lp-lens-card__dots { display: inline-flex; gap: 7px; flex: none; }
.lp-lens-card__dots i { width: 10px; height: 10px; border-radius: 50%; background: #D3CFC3; }
.lp-lens-card__url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lp-lens-card__body {
	background: var(--lp-blanco);
	border-radius: 0 0 16px 16px;
	padding: 22px 24px 20px;
	box-shadow: 0 1px 2px rgba(16, 32, 27, .05), 0 18px 40px -24px rgba(16, 32, 27, .25);
}
.lp-lens-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-lens-card__title { margin: 0; font: 600 1.25rem/1.2 var(--lp-texto); color: var(--lp-tinta); }
.lp-lens-card__note { margin: 0; font: 400 0.8125rem/1.2 var(--lp-texto); color: var(--lp-texto-3); }
.lp-lens-card__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }

.lp-lens-card__table { position: relative; }
.lp-lens-card__table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font: 400 0.9375rem/1.2 var(--lp-texto);
	color: var(--lp-tinta);
}
.lp-lens-card__table th,
.lp-lens-card__table td {
	height: 42px;
	padding: 0 8px 0 0;
	border: 0;
	border-bottom: 1px solid var(--lp-linea-suave);
	background: none;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lp-lens-card__table thead th { height: 38px; font-weight: 500; color: var(--lp-texto-2); border-bottom-color: var(--lp-linea); }
.lp-lens-card__table tbody th { font-weight: 400; }
.lp-lens-card__table tbody tr:last-child > * { border-bottom: 0; }
.lp-lens-card__table th:nth-child(1) { width: 26%; }
.lp-lens-card__table .lp-col-plan { width: 18%; }
.lp-lens-card__table th:nth-child(3) { width: 21%; }
.lp-lens-card__table table tr,
.lp-lens-card__table table tbody tr:nth-child(n) > *,
.lp-lens-card__table table tbody tr:hover > * { background: none; }
.lp-lens-card__table tbody tr { outline: none; }
.lp-lens-card__table tbody tr:focus-visible > * { background: #FBF3DF; }
.lp-lens-card__table td .lp-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* The lens. Without JS it sits on the default row (custom property set in the markup). */
.lp-lens {
	--lp-lens-size: 164px;
	position: absolute;
	top: calc(38px + var(--lp-lens-row, 2) * 42px + 21px - var(--lp-lens-size) / 2);
	left: var(--lp-lens-x, 72%);
	width: var(--lp-lens-size);
	height: var(--lp-lens-size);
	margin-left: calc(var(--lp-lens-size) / -2);
	border-radius: 50%;
	border: 11px solid var(--lp-verde);
	box-shadow: inset 0 0 0 3px var(--lp-ambar), 0 14px 30px -10px rgba(16, 32, 27, .45);
	background: rgba(251, 248, 238, .94);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.lp-lens__glass { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 4px; max-width: 128px; text-align: center; }
.lp-lens__mp { font: 400 0.6875rem/1.2 var(--lp-texto); color: var(--lp-texto-2); }
.lp-lens__chip.lp-chip { font-size: 1rem; font-weight: 600; line-height: 1.15; white-space: normal; padding: 6px 10px; max-width: 112px; }

.lp-lens-card.is-live .lp-lens { transition: top .18s ease, left .12s ease; }
@media (prefers-reduced-motion: reduce) {
	.lp-lens-card.is-live .lp-lens { transition: none; }
}

.lp-lens-card__caption { display: none; margin: 12px 2px 0; font: 400 0.875rem/1.45 var(--lp-texto); color: var(--lp-texto-3); }
.lp-lens-card.is-live .lp-lens-card__caption { display: block; }
@media (hover: none) {
	.lp-lens-card.is-live .lp-lens-card__caption { display: none; }
}

@media (max-width: 767px) {
	.lp-lens-card__body { padding: 18px 14px 14px; }
	.lp-lens-card__table table { font-size: 0.875rem; }
	.lp-lens-card__table .lp-col-plan { display: none; }
	.lp-lens-card__table th:nth-child(1) { width: 30%; }
	.lp-lens-card__table th:nth-child(3) { width: 28%; }
	.lp-lens { --lp-lens-size: 118px; border-width: 9px; left: var(--lp-lens-x, 74%); }
	.lp-lens__chip.lp-chip { font-size: 0.875rem; max-width: 88px; padding: 5px 7px; }
	.lp-lens__glass { max-width: 92px; gap: 4px; }
	.lp-lens__mp { font-size: 0.625rem; }
}

/* ---------- Waitlist form ---------- */

.lp-waitlist { max-width: 560px; color: inherit; scroll-margin-top: 120px; }
@media (max-width: 1024px) { .lp-waitlist { scroll-margin-top: 260px; } }
.lp-waitlist__label { display: block; margin: 0 0 8px; font: 500 0.9375rem/1.3 var(--lp-texto); }
.lp-waitlist__inline { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-waitlist__input {
	flex: 1 1 240px;
	min-width: 0;
	min-height: 52px;
	padding: 12px 18px;
	border: 1.5px solid rgba(243, 241, 233, .55);
	border-radius: 999px;
	background: var(--lp-papel);
	color: var(--lp-tinta);
	font: 400 1rem/1.2 var(--lp-texto);
}
.lp-waitlist__input::placeholder { color: #6A766F; }
.lp-waitlist__input[aria-invalid="true"] { border-color: var(--lp-ambar); box-shadow: 0 0 0 2px var(--lp-ambar); }
.lp-waitlist .lp-btn { flex: 0 0 auto; }
.lp-waitlist__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font: 400 0.875rem/1.5 var(--lp-texto); }
.lp-waitlist__consent label { display: block; margin: 0; line-height: 1.5; font-size: inherit; }
.lp-waitlist__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lp-ambar); }
.lp-waitlist__consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lp-waitlist__error {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--st-failed-bg);
	color: var(--st-failed-fg);
	font: 500 0.9375rem/1.4 var(--lp-texto);
}
.lp-waitlist__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
	.lp-waitlist .lp-btn { width: 100%; }
}

/* ---------- Waitlist result pages ---------- */

.lp-result__title { margin: 0 0 18px; font: 500 clamp(2.25rem, 5vw, 3.5rem)/1.05 var(--lp-titular); letter-spacing: -0.015em; color: var(--lp-tinta); }
.lp-result__body { margin: 0; max-width: 34em; font: 400 1.1875rem/1.6 var(--lp-texto); color: var(--lp-texto-2); }
.lp-result__body a { color: var(--lp-verde); }

/* ---------- Header button (shortcode) ---------- */

.lp-btn--header { white-space: nowrap; }
@media (max-width: 767px) {
	.lp-btn--header { min-height: 44px; padding: 8px 12px; font-size: 0.875rem; }
}

/* ---------- Cookie settings link (footer) and Miga declaration ---------- */

.lp-cookie-settings { font: 400 15px/1.5 var(--lp-texto); color: #C9D1CC; text-decoration: none; }
.lp-cookie-settings:hover { color: #F3F1E9; text-decoration: underline; }
.lp-miga-declaration { margin-top: 12px; color: var(--lp-texto-2); font: 400 1rem/1.6 var(--lp-texto); }
.lp-miga-declaration__title { margin: 16px 0 8px; font: 600 1.875rem/1.15 var(--lp-titular); color: var(--lp-tinta); }
@media (max-width: 767px) { .lp-miga-declaration__title { font-size: 1.625rem; } }
