/* RE Line Couch Configurator widget. Everything is scoped to .rlcc and driven by CSS variables (set from Elementor). */
.rlcc {
	--rlcc-ink: #1d201e;
	--rlcc-mute: #6e6b64;
	--rlcc-line: #d9d4ca;
	--rlcc-accent: #a3824f;
	--rlcc-card: #ffffff;
	--rlcc-panel: #eae6de;
	--rlcc-btn: #1d201e;
	--rlcc-btn-hover: #27312b;
	--rlcc-btn-text: #ffffff;
	--rlcc-ok: #2f6a4a;
	--rlcc-quote: #a3824f;
	--rlcc-step: 26px;
	--rlcc-sw: 50px;
	--rlcc-r: 2px;
	--rlcc-btn-h: 54px;
	--rlcc-box-pad: 24px;
	--rlcc-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	color: var(--rlcc-ink);
	font-size: 15px;
	line-height: 1.55;
}
.rlcc *, .rlcc *::before, .rlcc *::after { box-sizing: border-box; }
.rlcc-form { margin: 0; }
.rlcc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rlcc-editor-note { margin: 0 0 14px; padding: 10px 14px; font-size: 13px; background: #fff8e5; border: 1px dashed #d8b84a; color: #5c4a14; }

/* Steps */
.rlcc-step { padding: var(--rlcc-step) 0; border-bottom: 1px solid var(--rlcc-line); }
.rlcc-step:first-child { padding-top: 0; }
.rlcc-step__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.rlcc .rlcc-step__n { font-family: var(--rlcc-serif); font-size: 26px; line-height: 1; color: var(--rlcc-accent); min-width: 20px; }
.rlcc .rlcc-step__title { margin: 0; padding: 0; font-family: inherit; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: 0; color: inherit; text-transform: none; }
.rlcc-step__v { margin-left: auto; font-size: 14px; color: var(--rlcc-mute); text-align: right; }

/* Step 1: models */
.rlcc-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1200px) { .rlcc-models:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rlcc .rlcc-model { display: grid; gap: 6px; padding: 12px 10px 14px; background: var(--rlcc-card); border: 1px solid var(--rlcc-line); border-radius: var(--rlcc-r); color: var(--rlcc-ink); text-decoration: none; transition: border-color .2s; }
.rlcc .rlcc-model:hover { border-color: var(--rlcc-mute); color: var(--rlcc-ink); }
.rlcc .rlcc-model { position: relative; margin: 0; cursor: pointer; }
.rlcc-model input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rlcc .rlcc-model:has(input:checked), .rlcc .rlcc-model.is-active { border-color: var(--rlcc-ink); box-shadow: inset 0 0 0 .5px var(--rlcc-ink); }
.rlcc .rlcc-model:has(input:focus-visible) { outline: 2px solid var(--rlcc-accent); outline-offset: 2px; }
.rlcc-sizegroup[hidden] { display: none; }
.rlcc-model svg { width: 100%; height: 46px; }
.rlcc-model__name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.rlcc-model__meta { font-size: 12.5px; color: var(--rlcc-mute); }

/* Step 2: fabrics */
.rlcc-fgroup + .rlcc-fgroup { margin-top: 16px; }
.rlcc .rlcc-fgroup__name { margin: 0 0 10px; font-size: 13px; color: var(--rlcc-mute); }
.rlcc-swatches { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px; }
.rlcc-sw { position: relative; display: block; cursor: pointer; margin: 0; }
.rlcc-sw input, .rlcc-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.rlcc-sw__dot { display: block; width: var(--rlcc-sw); height: var(--rlcc-sw); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 4px var(--rlcc-card); transition: box-shadow .2s; }
.rlcc-sw:hover .rlcc-sw__dot { box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 0 4px var(--rlcc-card), 0 0 0 5px var(--rlcc-line); }
.rlcc-sw input:checked + .rlcc-sw__dot { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 4px var(--rlcc-card), 0 0 0 5.5px var(--rlcc-ink); }
.rlcc-sw input:focus-visible + .rlcc-sw__dot { outline: 2px solid var(--rlcc-accent); outline-offset: 7px; }
.rlcc-tex--boucle { background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35) 0 1.2px, transparent 1.6px), radial-gradient(circle at 70% 70%, rgba(0, 0, 0, .08) 0 1.2px, transparent 1.6px); background-size: 6px 6px, 7px 7px; }
.rlcc-tex--velvet { background-image: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .18)); }
.rlcc-tex--linen { background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }

/* Step 3: sizes */
.rlcc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rlcc-pill { position: relative; display: block; margin: 0; cursor: pointer; }
.rlcc-pill > span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; background: var(--rlcc-card); border: 1px solid var(--rlcc-line); border-radius: var(--rlcc-r); font-size: 14px; font-weight: 500; transition: border-color .2s; }
.rlcc-pill small { margin-left: 4px; font-size: 13px; font-weight: 400; color: var(--rlcc-mute); }
.rlcc-pill:hover > span { border-color: var(--rlcc-mute); }
.rlcc-pill input:checked + span { border-color: var(--rlcc-ink); box-shadow: inset 0 0 0 .5px var(--rlcc-ink); font-weight: 700; }
.rlcc-pill input:focus-visible + span { outline: 2px solid var(--rlcc-accent); outline-offset: 2px; }

/* Custom measurements: shown when "Custom size" is chosen (JS adds .is-custom; :has() covers no-JS) */
.rlcc-dims { display: none; gap: 20px; margin-top: 18px; padding: 20px; background: var(--rlcc-panel); border-radius: var(--rlcc-r); }
.rlcc-sizegroup.is-custom .rlcc-dims, .rlcc-form:has(input[name="rlcc_size"][value="custom"]:checked) .rlcc-dims { display: grid; }
.rlcc-dim { display: grid; gap: 8px; }
.rlcc-dim__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rlcc .rlcc-dim__label { margin: 0; font-weight: 600; font-size: 14.5px; }
.rlcc-dim__num { display: flex; align-items: center; border-bottom: 1px solid var(--rlcc-ink); }
.rlcc .rlcc-dim__num input { width: 64px; min-height: 0; margin: 0; padding: 2px 4px; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; text-align: right; font: inherit; font-weight: 700; font-size: 17px; -moz-appearance: textfield; appearance: textfield; }
.rlcc .rlcc-dim__num input::-webkit-inner-spin-button, .rlcc .rlcc-dim__num input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.rlcc .rlcc-dim__num input:focus { outline: none; }
.rlcc-dim__num span { font-size: 13px; color: var(--rlcc-mute); }
.rlcc-dim__num:focus-within { border-bottom-width: 2px; }
.rlcc .rlcc-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.rlcc .rlcc-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(var(--rlcc-ink), var(--rlcc-ink)) 0 / var(--p, 50%) 100% no-repeat, rgba(0, 0, 0, .12); }
.rlcc .rlcc-range::-moz-range-track { height: 2px; background: rgba(0, 0, 0, .12); }
.rlcc .rlcc-range::-moz-range-progress { height: 2px; background: var(--rlcc-ink); }
.rlcc .rlcc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--rlcc-card); border: 1.5px solid var(--rlcc-ink); }
.rlcc .rlcc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--rlcc-card); border: 1.5px solid var(--rlcc-ink); }
.rlcc-dim__scale { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--rlcc-mute); }
.rlcc-dim__hint { text-align: center; }
@media (max-width: 479px) { .rlcc-dim__hint { display: none; } }

/* Price box */
.rlcc-box { margin-top: var(--rlcc-step); padding: var(--rlcc-box-pad); background: var(--rlcc-card); border: 1px solid var(--rlcc-line); border-radius: var(--rlcc-r); }
.rlcc-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.rlcc-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--rlcc-ok); }
.rlcc.is-quote .rlcc-status i { background: var(--rlcc-quote); }
.rlcc .rlcc-price { margin-top: 10px; font-family: var(--rlcc-serif); font-size: 40px; line-height: 1.05; color: var(--rlcc-ink); }
.rlcc .rlcc-price .woocommerce-Price-amount, .rlcc .rlcc-price bdi { font: inherit; color: inherit; }
.rlcc.is-quote .rlcc-price { font-size: .7em; font-size: max(.7em, 26px); }
.rlcc .rlcc-note { margin: 10px 0 18px; font-size: 14px; color: var(--rlcc-mute); }
.rlcc-actions { display: grid; gap: 10px; }
.rlcc .rlcc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--rlcc-btn-h); margin: 0; padding: 0 24px; border: 1px solid transparent; border-radius: var(--rlcc-r); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: .01em; text-align: center; text-decoration: none; text-transform: none; cursor: pointer; box-shadow: none; transition: background .25s, color .25s, border-color .25s; }
.rlcc .rlcc-btn svg { width: 19px; height: 19px; flex: none; }
.rlcc .rlcc-btn--dark, .rlcc .rlcc-btn--dark:focus { background: var(--rlcc-btn); color: var(--rlcc-btn-text); }
.rlcc .rlcc-btn--dark:hover { background: var(--rlcc-btn-hover); color: var(--rlcc-btn-text); }
.rlcc .rlcc-btn--line, .rlcc .rlcc-btn--line:focus { background: transparent; border-color: var(--rlcc-ink); color: var(--rlcc-ink); }
.rlcc .rlcc-btn--line:hover { background: var(--rlcc-ink); color: var(--rlcc-card); }
.rlcc .rlcc-btn:focus-visible { outline: 2px solid var(--rlcc-accent); outline-offset: 2px; }
.rlcc .rlcc-btn[hidden] { display: none; }
.rlcc .rlcc-btn.is-loading { opacity: .7; pointer-events: none; }
