/*
 * Couth Configurador de líneas styles.
 *
 * Visual language copied from the base plugin (couth-configurator.css): yellow
 * #f7e654 / black #0d0d0d, 2px #ddd bordered 12px-radius chips that turn yellow
 * on hover, black pill buttons that go yellow, the squared-paper background and
 * the blurred modal with a round black close button.
 *
 * Every rule repeats the root class (.clc.clc) so it lands at (0,3,0) or more
 * and beats the theme's reset.css, which styles every <button> -- including
 * :hover and :focus -- with its own colour. Same reasoning as the base plugin.
 */

.clc.clc{
	--clc-yellow: #f7e654;
	--clc-yellow-hover: #e8d63d;
	--clc-yellow-soft: #fffce6;
	--clc-black: #0d0d0d;
	--clc-border: #dddddd;
	box-sizing: border-box;
	width: 100%;
	font-family: "Segoe UI", Arial, sans-serif;
	color: var(--clc-black);
}

/* Theme armour: floor beneath the component rules, holds in every state. */
.clc.clc button{
	background-color: transparent;
	border: 0;
	color: inherit;
	text-decoration: none;
}

.clc.clc *,
.clc.clc *::before,
.clc.clc *::after{ box-sizing: inherit; }

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

.clc.clc button,
.clc.clc a{ font: inherit; }

.clc.clc .clc__inline-slot{
	background-color: #fff;
	background-image: url('https://couth.neopruebas.com/wp-content/uploads/2026/07/fondo-cuadraditos.png');
	background-position: center;
	background-size: cover;
}

.clc.clc .clc__panel{ padding: 40px 0 48px; }

.clc.clc .clc__section{ margin: 0 0 34px; }

.clc.clc .clc__heading{
	margin: 0 0 6px;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.clc.clc .clc__hint{
	max-width: 760px;
	margin: 0 auto 24px;
	color: #888;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

/* Envase chips */
.clc.clc .clc__chips{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.clc.clc .clc__chip{
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 12px 20px;
	border: 2px solid var(--clc-border);
	border-radius: 12px;
	background: #fff;
	color: var(--clc-black);
	cursor: pointer;
	font-size: 16px;
	text-align: left;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.clc.clc .clc__chip::before{
	content: '';
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-right: 12px;
	border-radius: 50%;
	background: #f4f4f4;
	transition: background-color .18s ease;
}

.clc.clc .clc__chip:hover,
.clc.clc .clc__chip:focus-visible{
	border-color: var(--clc-yellow);
	background: var(--clc-yellow-soft);
	outline: none;
	transform: translateY(-1px);
}

.clc.clc .clc__chip[aria-pressed="true"]{
	border-color: var(--clc-black);
	background: var(--clc-yellow);
}

.clc.clc .clc__chip[aria-pressed="true"]::before{
	background: var(--clc-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Step indicator */
.clc.clc .clc__steps{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.clc.clc .clc__step{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: #888;
	font-size: 14px;
}

.clc.clc .clc__step-num{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 2px solid var(--clc-border);
	border-radius: 50%;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.clc.clc .clc__step.is-done .clc__step-num{ border-color: var(--clc-black); }

.clc.clc .clc__step.is-current{ color: var(--clc-black); font-weight: 700; }

.clc.clc .clc__step.is-current .clc__step-num{
	border-color: var(--clc-black);
	background: var(--clc-yellow);
	color: var(--clc-black);
}

.clc.clc .clc__heading:focus{ outline: none; }

/* Phase board */
.clc.clc .clc__board{
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.clc.clc .clc__phase{
	padding: 10px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fcfcfc;
	transition: border-color .18s ease, opacity .18s ease;
}

.clc.clc .clc__phase.is-active{ border-color: var(--clc-yellow); background: #fff; cursor: pointer; }

.clc.clc .clc__phase.is-focused{ border-color: var(--clc-black); background: var(--clc-yellow-soft); }

.clc.clc .clc__phase.is-disabled{ opacity: .6; }

.clc.clc .clc__phase-toggle{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 2px solid var(--clc-border);
	border-radius: 10px;
	background: #fff;
	color: var(--clc-black);
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	white-space: normal;
	overflow-wrap: break-word;
	hyphens: auto;
	transition: background-color .18s ease, border-color .18s ease;
}

.clc.clc .clc__phase-toggle:hover:not(:disabled),
.clc.clc .clc__phase-toggle:focus-visible{
	border-color: var(--clc-yellow);
	background: var(--clc-yellow-soft);
	outline: none;
}

.clc.clc .clc__phase-toggle[aria-pressed="true"]{
	border-color: var(--clc-black);
	background: var(--clc-yellow);
}

.clc.clc .clc__phase-toggle:disabled{
	cursor: not-allowed;
	background: #f4f4f4;
	color: #777;
}

.clc.clc .clc__phase-switch{
	position: relative;
	flex: 0 0 30px;
	width: 30px;
	height: 18px;
	border-radius: 999px;
	background: #c5c5c5;
	transition: background-color .18s ease;
}

.clc.clc .clc__phase-switch::after{
	content: '';
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	transition: transform .18s ease;
}

.clc.clc .clc__phase-toggle[aria-pressed="true"] .clc__phase-switch{ background: var(--clc-black); }
.clc.clc .clc__phase-toggle[aria-pressed="true"] .clc__phase-switch::after{ transform: translateX(12px); }

/* Count badge: focuses the phase in the shared panel. */
.clc.clc .clc__phase-badge{
	display: block;
	min-width: 40px;
	min-height: 28px;
	margin: 6px auto 0;
	padding: 2px 10px;
	border: 2px solid var(--clc-black);
	border-radius: 999px;
	background: var(--clc-yellow);
	color: var(--clc-black);
	cursor: pointer;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.clc.clc .clc__phase-badge:hover{ background: var(--clc-yellow-hover); }
.clc.clc .clc__phase-badge:focus-visible{ outline: 3px solid rgba(247, 230, 84, .9); outline-offset: 2px; }

.clc.clc .clc__phase-badge.is-warn{
	border-color: var(--clc-yellow-hover);
	background: var(--clc-yellow-soft);
	color: #6b5f00;
}

/* No count to show (phase without variants): a small caret. */
.clc.clc .clc__phase-badge.is-plain::before{
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-bottom: 3px;
	border-right: 2px solid var(--clc-black);
	border-bottom: 2px solid var(--clc-black);
	transform: rotate(45deg);
}

.clc.clc .clc__phase-note{ margin-top: 8px; }

/* Shared options panel: options of the focused phase, inline chips. */
.clc.clc .clc__options-panel{
	--clc-caret: 50%;
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-top: 20px;
	padding: 16px 20px;
	border: 2px solid var(--clc-black);
	border-radius: 12px;
	background: #fff;
}

/* Inside the board the panel spans the whole row, right below the focused
   card's row, so it opens under the phase on every screen width. */
.clc.clc .clc__board > .clc__options-panel{ grid-column: 1 / -1; margin-top: 0; }

.clc.clc .clc__options-panel::before{
	content: '';
	position: absolute;
	top: -8px;
	left: var(--clc-caret);
	width: 14px;
	height: 14px;
	border-top: 2px solid var(--clc-black);
	border-left: 2px solid var(--clc-black);
	background: #fff;
	transform: translateX(-50%) rotate(45deg);
}

.clc.clc .clc__options-label{ font-size: 15px; font-weight: 700; }

.clc.clc .clc__options{
	display: flex;
	flex: 1 1 0;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.clc.clc .clc__options-item{ margin: 0; padding: 0; }

.clc.clc .clc__options-note{ flex: 1 1 0; }

/* Option checkboxes: native input kept for keyboard/AT, drawn like the chips. */
.clc.clc .clc__option{
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 6px 10px;
	border: 2px solid var(--clc-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.2;
	transition: background-color .18s ease, border-color .18s ease;
}

.clc.clc .clc__option:hover{ border-color: var(--clc-yellow); background: var(--clc-yellow-soft); }

.clc.clc .clc__option-input{
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.clc.clc .clc__option-box{
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 5px;
	background: #f4f4f4;
	border: 1px solid #cfcfcf;
}

.clc.clc .clc__option-text{ overflow-wrap: anywhere; }

.clc.clc .clc__option-input:checked ~ .clc__option-box{
	border-color: var(--clc-black);
	background: var(--clc-black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.clc.clc .clc__option:has(.clc__option-input:checked){
	border-color: var(--clc-black);
	background: var(--clc-yellow);
}

.clc.clc .clc__option:has(.clc__option-input:focus-visible){ outline: 3px solid rgba(247, 230, 84, .9); outline-offset: 2px; }

.clc.clc .clc__note{
	margin: 0;
	color: #777;
	font-size: 13px;
	line-height: 1.4;
}

/* Actions */
.clc.clc .clc__actions{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0 0 14px;
}

.clc.clc .clc__generate{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 8px 28px;
	border: 0;
	border-radius: 8px;
	background: var(--clc-yellow);
	color: var(--clc-black);
	cursor: pointer;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	transition: background-color .18s ease;
}

.clc.clc .clc__generate:hover:not(:disabled){ background: var(--clc-yellow-hover); color: var(--clc-black); }
.clc.clc .clc__generate:focus-visible{ outline: 3px solid rgba(247, 230, 84, .7); outline-offset: 3px; }

.clc.clc .clc__generate:disabled{
	background: #999;
	color: #fff;
	cursor: not-allowed;
}

.clc.clc .clc__reset{
	padding: 6px 4px;
	background: transparent;
	color: var(--clc-black);
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.clc.clc .clc__reset:hover{ background: transparent; color: #555; }
.clc.clc .clc__reset:focus-visible{ outline: 3px solid rgba(247, 230, 84, .9); outline-offset: 2px; }

.clc.clc .clc__status{
	margin: 0 0 8px;
	color: #666;
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

/* Result */
.clc.clc .clc__result{ margin-top: 8px; }

.clc.clc .clc__result-title{
	margin: 0 0 12px;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	outline: none;
}

/* Selection summary */
.clc.clc .clc__summary{
	max-width: 900px;
	margin: 0 auto 20px;
	color: #444;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.clc.clc .clc__summary-line{ margin: 0 0 4px; overflow-wrap: anywhere; }
.clc.clc .clc__summary-label{ color: var(--clc-black); }

/* Envase tabs: look like the chips, selected one yellow. */
.clc.clc .clc__tabs{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	margin: 0 0 14px;
}

.clc.clc .clc__tab{
	min-height: 44px;
	padding: 8px 20px;
	border: 2px solid var(--clc-border);
	border-radius: 12px;
	background: #fff;
	color: var(--clc-black);
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	overflow-wrap: anywhere;
	transition: background-color .18s ease, border-color .18s ease;
}

.clc.clc .clc__tab:hover,
.clc.clc .clc__tab:focus-visible{
	border-color: var(--clc-yellow);
	background: var(--clc-yellow-soft);
	outline: none;
}

.clc.clc .clc__tab:focus-visible{ outline: 3px solid rgba(247, 230, 84, .9); outline-offset: 2px; }

.clc.clc .clc__tab[aria-selected="true"]{
	border-color: var(--clc-black);
	background: var(--clc-yellow);
}

.clc.clc .clc__line:focus-visible{ outline: 3px solid rgba(247, 230, 84, .9); outline-offset: 2px; }

.clc.clc .clc__result-actions{ margin-top: 8px; }

.clc.clc .clc__line{
	margin: 0 0 20px;
	padding: 20px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fcfcfc;
}

.clc.clc .clc__line-title{
	margin: 0 0 14px;
	font-size: clamp(22px, 2.6vw, 28px);
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
}

.clc.clc .clc__flow{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 0;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.clc.clc .clc__flow-item{
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--clc-black);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
}

.clc.clc .clc__flow-item--envase{ background: var(--clc-yellow); color: var(--clc-black); }

.clc.clc .clc__flow-item + .clc__flow-item{ margin-left: 30px; position: relative; }

.clc.clc .clc__flow-item + .clc__flow-item::before{
	content: '\2192';
	position: absolute;
	top: 50%;
	left: -22px;
	color: var(--clc-black);
	font-size: 16px;
	font-weight: 400;
	transform: translateY(-52%);
}

/* Equipment cards (same layout as the base plugin's product cards). */
.clc.clc .clc__cards{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.clc.clc .clc__card{
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 16px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fff;
	text-align: left;
}

.clc.clc .clc__card-media{
	display: grid;
	place-items: center;
	height: 180px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
}

.clc.clc .clc__card-media img{ display: block; width: 100%; height: 100%; object-fit: contain; }

.clc.clc .clc__card-media--placeholder{
	border: 1px dashed #d6d6d6;
	background: #f6f6f6;
	color: #9a9a9a;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: .04em;
}

.clc.clc .clc__card-phase{
	margin: 14px 0 4px;
	color: #777;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.clc.clc .clc__card-title{ margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.clc.clc .clc__card-detail{ margin: 0 0 16px; color: #555; font-size: 14px; line-height: 1.4; }

.clc.clc .clc__card-cta{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	margin-top: auto;
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: var(--clc-yellow);
	color: var(--clc-black);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.clc.clc a.clc__card-cta:hover{ background: var(--clc-yellow-hover); color: var(--clc-black); }
.clc.clc .clc__card-cta:focus-visible{ outline: 3px solid rgba(247, 230, 84, .9); outline-offset: 2px; }
.clc.clc .clc__card-cta[aria-disabled="true"]{ background: #eee; color: #888; cursor: default; }

/* Popup (same shell as the base plugin's configurator popup) */
.clc.clc .clc__popup{
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(12, 20, 32, .72);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.clc.clc.clc--popup-open .clc__popup{ display: flex; }

.clc.clc .clc__backdrop{ position: absolute; inset: 0; }

.clc.clc .clc__dialog{
	position: relative;
	z-index: 1;
	width: min(100%, 1180px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 68px 32px 32px;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 20px;
	background-color: #fff;
	background-image: url('https://couth.neopruebas.com/wp-content/uploads/2026/07/fondo-cuadraditos.png');
	background-position: center;
	background-size: cover;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .28), 0 8px 28px rgba(165, 155, 61, .14);
	animation: clcDialogIn 220ms ease-out;
}

.clc.clc .clc__popup-close{
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #111;
	color: transparent;
	cursor: pointer;
	font-size: 0;
	line-height: 0;
	transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.clc.clc .clc__popup-close::before,
.clc.clc .clc__popup-close::after{
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: #fff;
	transform-origin: center;
	transition: background-color 180ms ease;
}

.clc.clc .clc__popup-close::before{ transform: translate(-50%, -50%) rotate(45deg); }
.clc.clc .clc__popup-close::after{ transform: translate(-50%, -50%) rotate(-45deg); }

.clc.clc .clc__popup-close:hover{
	background: #f7e654;
	transform: rotate(90deg);
	box-shadow: 0 6px 18px rgba(165, 155, 61, .3);
}

.clc.clc .clc__popup-close:hover::before,
.clc.clc .clc__popup-close:hover::after{ background: #111; }
.clc.clc .clc__popup-close:focus-visible{ outline: 3px solid rgba(247, 230, 84, .65); outline-offset: 3px; }

@keyframes clcDialogIn {
	from{ opacity: 0; transform: translateY(16px) scale(.98); }
	to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* Laptop and tablet: six columns get too narrow. */
@media (max-width: 1199px) {
	.clc.clc .clc__board{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.clc.clc .clc__board{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.clc.clc .clc__board{ gap: 8px; }
	.clc.clc .clc__phase{ padding: 8px; }
	.clc.clc .clc__phase-toggle{ padding: 8px; font-size: 14px; }
	.clc.clc .clc__options-panel{ padding: 12px; }
	.clc.clc .clc__chip{ flex: 1 1 calc(50% - 8px); min-height: 48px; padding: 10px 14px; font-size: 15px; }
	.clc.clc .clc__actions{ flex-direction: column; gap: 8px; }
	.clc.clc .clc__generate{ width: 100%; }
	.clc.clc .clc__step-label{ font-size: 13px; }
	.clc.clc .clc__steps{ gap: 6px 12px; }
	.clc.clc .clc__line{ padding: 14px; }
	.clc.clc .clc__tab{ flex: 1 1 calc(50% - 8px); padding: 8px 12px; font-size: 15px; }
	/* Two compact cards per row keeps the result short on phones. */
	.clc.clc .clc__cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.clc.clc .clc__card{ padding: 10px; }
	.clc.clc .clc__card-media{ height: 110px; }
	.clc.clc .clc__card-media--placeholder{ font-size: 20px; }
	.clc.clc .clc__card-phase{ margin-top: 10px; font-size: 11px; }
	.clc.clc .clc__card-title{ font-size: 16px; }
	.clc.clc .clc__card-detail{ margin-bottom: 10px; font-size: 13px; }
	.clc.clc .clc__card-cta{ min-height: 38px; padding: 6px 8px; font-size: 13px; }

	.clc.clc .clc__popup{ align-items: flex-end; padding: 12px; }
	.clc.clc .clc__dialog{ width: 100%; max-height: calc(100vh - 24px); padding: 64px 16px 24px; border-radius: 18px; }
	.clc.clc .clc__popup-close{ top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.clc.clc *{ transition: none !important; }
	.clc.clc .clc__dialog{ animation: none; }
	.clc.clc .clc__popup-close:hover{ transform: none; }
}

/* Keep the step header clear of the theme's fixed site header when a step change scrolls the configurator into view. */
.clc {
	scroll-margin-top: 140px;
}
