/* MOSE — guided "fake-chat" selector. Scoped under .mose-selector.
   Fullscreen app layout (no modal/card). Reuses brand tokens from style.css. */

/* hello-elementor's reset.css sets `[type="button"], button { display:
   inline-block }` AFTER its own `[hidden] { display: none }` rule, at equal
   specificity — so it silently wins and un-hides any hidden <button> (the
   restart/back controls use `hidden`, not a CSS class, to toggle visibility).
   Higher specificity here restores the expected behaviour without !important. */
.mose-selector [hidden] { display: none; }

.mose-selector {
	--sel-bot: #f1f1f1;
	--sel-line: #e7e7e7;
	width: 100%;
	height: 100vh;
	height: 100dvh; /* JS (fitShellHeight) overrides this inline to viewport-minus-header */
	display: flex;
	justify-content: center;
	font-family: var(--mose-font, "Archivo", sans-serif);
}

/* Full-height, full-width conversation column — no boxed card floating on a
   separate page background, the chat just IS the page. */
.mose-selector__shell {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
}

/* ---- top bar ---- */
.mose-selector__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 22px;
	background: var(--mose-dark, #1a1a1a);
	color: #fff;
	flex: none;
}
.mose-selector__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--mose-pink, #fc0075);
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	flex: none;
	overflow: hidden;
}
.mose-selector__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.mose-selector__avatar--sm {
	width: 26px;
	height: 26px;
	font-size: 13px;
	align-self: flex-end;
	margin-bottom: 2px;
}
.mose-selector__id { display: flex; flex-direction: column; line-height: 1.25; }
.mose-selector__id strong {
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.mose-selector__id em { font-style: normal; font-size: 12.5px; opacity: 0.65; }
.mose-selector__restart {
	margin-left: auto;
	position: relative;
	overflow: hidden;
	background-color: transparent;
	background-image: linear-gradient(var(--mose-pink, #fc0075) 0 0);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% 0%;
	transition: background-size .3s ease, border-color .2s ease;
	border: 1px solid rgba( 255, 255, 255, 0.4 );
	color: #fff;
	font-family: var(--mose-font, "Archivo", sans-serif);
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 9px 16px;
	border-radius: 2px;
	cursor: pointer;
}
.mose-selector__restart:hover { border-color: var(--mose-pink, #fc0075); background-size: 100% 100%; }

/* ---- message stream (the only scrolling area) ---- */
.mose-selector__stream {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 30px 22px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	scroll-behavior: smooth;
}
.mose-selector__row { display: flex; align-items: flex-end; gap: 8px; }
.mose-selector__row--me { justify-content: flex-end; }

.mose-selector__bubble {
	max-width: 78%;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
	animation: mose-pop 0.18s ease-out;
}
.mose-selector__bubble--bot {
	background: var(--sel-bot);
	color: var(--mose-dark, #1a1a1a);
	border-bottom-left-radius: 2px;
	font-weight: 700;
}
.mose-selector__bubble--me {
	background: var(--mose-pink, #fc0075);
	color: #fff;
	border-bottom-right-radius: 2px;
}
@keyframes mose-pop { from { opacity: 0; transform: translateY( 6px ); } to { opacity: 1; transform: none; } }

/* typing dots */
.mose-selector__typing { display: inline-flex; gap: 4px; align-items: center; }
.mose-selector__typing span {
	width: 7px; height: 7px; border-radius: 50%;
	background: #b5b5b5;
	animation: mose-blink 1s infinite ease-in-out;
}
.mose-selector__typing span:nth-child( 2 ) { animation-delay: 0.15s; }
.mose-selector__typing span:nth-child( 3 ) { animation-delay: 0.3s; }
@keyframes mose-blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* ---- option rows: chips live INSIDE the chat stream ---- */
.mose-selector__row--opts {
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
	padding: 2px 0 8px 34px; /* align under the bot bubbles (avatar 26 + gap 8) */
}

/* ---- inline "back" link — plain text, no chip/button chrome, shown right
   below your last answer. Never lives in the header.
   hello-elementor's reset.css has a blanket `button:hover,button:focus,
   [type=button]:hover,[type=button]:focus { background-color:#c36;
   color:#fff }` at the SAME specificity as a plain `.mose-selector__backlink`
   rule, so which one wins is a coin flip on source order. Every selector here
   is qualified with the `.mose-selector` ancestor so it always wins outright,
   regardless of order — same fix approach as the [hidden] override above. */
.mose-selector .mose-selector__row--backlink { padding: 0 0 4px 34px; }
.mose-selector .mose-selector__backlink {
	background: none;
	border: none;
	padding: 2px 0;
	color: #9a9a9a;
	font-family: var(--mose-font, "Archivo", sans-serif);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.mose-selector .mose-selector__backlink::before { content: "‹ "; text-decoration: none; }
.mose-selector .mose-selector__backlink:hover,
.mose-selector .mose-selector__backlink:focus {
	background: none;
	color: var(--mose-pink, #fc0075);
}

.mose-selector__chip {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--mose-pink, #fc0075);
	background-image: linear-gradient(var(--mose-dark, #1a1a1a) 0 0);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% 0%;
	transition: background-size .3s ease, transform 0.08s;
	color: #fff;
	border: 1.5px solid var(--mose-pink, #fc0075);
	border-radius: 2px;
	padding: 12px 18px;
	font-family: var(--mose-font, "Archivo", sans-serif);
	font-size: 14.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
}
.mose-selector__chip:hover { background-size: 100% 100%; color: #fff; }
.mose-selector__chip:active { transform: scale( 0.97 ); }

/* big style pills (the "Deportivas / Casual" question) */
.mose-selector__chip--big { padding: 18px 30px; font-size: 16px; }

/* model tiles: photo on top, name below — plain white cards (not pink-filled
   like the text chips) so the product photo itself stays legible/undistorted. */
.mose-selector__chip--model {
	flex-direction: column;
	gap: 10px;
	width: 200px;
	padding: 14px 14px 16px;
	background-color: #fff !important;
	background-image: none !important;
	color: var(--mose-dark, #1a1a1a) !important;
	border-color: var(--mose-dark, #1a1a1a) !important;
	transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.mose-selector__chip--model:hover {
	background-size: 0 0;
	color: var(--mose-dark, #1a1a1a) !important;
	border-color: var(--mose-dark, #1a1a1a) !important;
	box-shadow: 0 10px 24px rgba(0,0,0,.12);
	transform: translateY(-2px);
}
.mose-selector__chip-img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--mose-media-bg, #f3f3f3);
	mix-blend-mode: multiply;
}
.mose-selector__chip--model .mose-selector__chip-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.mose-selector__dot {
	width: 18px; height: 18px;
	border-radius: 50%;
	background: var( --sw, #ccc );
	border: 1px solid rgba( 0, 0, 0, 0.18 );
	flex: none;
}
.mose-selector__dot.is-clear {
	background-image:
		linear-gradient( 45deg, #d8d8d8 25%, transparent 25%, transparent 75%, #d8d8d8 75% ),
		linear-gradient( 45deg, #d8d8d8 25%, #fff 25%, #fff 75%, #d8d8d8 75% );
	background-size: 8px 8px;
	background-position: 0 0, 4px 4px;
}

/* ---- result cards: reuse the real catalog .mose-card markup/classes for
   free visual parity with the shop grid (pink + button, AGOTADO ribbon,
   hover states all come from style.css). We only need to lay them out. ---- */
.mose-selector__cards {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 14px;
	max-width: 100%;
	flex: 1;
}
.mose-selector__card.mose-card {
	border: 1px solid var(--sel-line);
	border-radius: 2px;
	overflow: hidden;
	animation: mose-pop 0.22s ease-out;
	transition: box-shadow .2s ease, transform .15s ease;
}
.mose-selector__card.mose-card:hover {
	box-shadow: 0 14px 30px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.mose-selector__card .mose-card__bar { padding: 12px 14px; }
.mose-selector__card .mose-card__name { font-size: 12.5px; }
.mose-selector__combo-tag {
	padding: 6px 14px 0;
	font-family: var(--mose-font, "Archivo", sans-serif);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--mose-pink, #fc0075);
}

/* ---- mobile ---- */
@media ( max-width: 600px ) {
	.mose-selector__bar { padding: 14px 16px; }
	.mose-selector__id strong { font-size: 14px; }
	.mose-selector__bubble { max-width: 88%; font-size: 15px; }
	.mose-selector__cards { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 10px; }
	.mose-selector__chip--model { width: calc( 50% - 5px ); }
}
