/* OneDee Smart Finder - card in pagina + buton flotant.
   Se incarca doar pe paginile unde apare Smart Finder. */

.osf-card,
.osf-fab {
	--osf-accent: #9c27b0;
	--osf-ink: #17151a;
	--osf-muted: #5d5866;
	--osf-line: rgba(23, 21, 26, .1);
	--osf-surface: #fff;
	font-family: inherit;
	box-sizing: border-box;
}

.osf-card *,
.osf-fab * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ cardul */

.osf-card {
	position: relative;
	display: block;
	max-width: 1180px;
	margin: 34px auto;
	padding: 0;
	border: 1px solid var(--osf-line);
	border-radius: 18px;
	background: linear-gradient(180deg, #fff 0%, #fdf9fd 100%);
	overflow: hidden;
	color: var(--osf-ink);
	opacity: 1;
}

.osf-card__glow {
	position: absolute;
	inset: auto auto -60px -40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--osf-accent) 16%, transparent) 0%, transparent 70%);
	pointer-events: none;
}

.osf-card__inner {
	position: relative;
	display: flex;
	gap: 18px;
	align-items: flex-start;
	padding: 26px 26px 24px;
}

.osf-card__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--osf-accent) 12%, #fff);
	color: var(--osf-accent);
}

.osf-card__body {
	min-width: 0;
	flex: 1 1 auto;
}

.osf-card__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--osf-accent);
}

.osf-card__dots {
	display: inline-flex;
	gap: 4px;
}

.osf-card__dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--osf-accent) 35%, #fff);
}

.osf-card__dots i:first-child {
	background: var(--osf-accent);
}

.osf-card__title {
	margin: 0 0 6px;
	font-size: 23px;
	line-height: 1.24;
	font-weight: 800;
	color: var(--osf-ink);
}

.osf-card__subtitle {
	margin: 0 0 14px;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--osf-muted);
	max-width: 60ch;
}

.osf-card__benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.osf-card__benefits li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 11px;
	border: 1px solid var(--osf-line);
	border-radius: 999px;
	background: #fff;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--osf-ink);
	line-height: 1.2;
}

.osf-card__benefits li::before {
	content: "";
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: color-mix(in srgb, var(--osf-accent) 18%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c27b0' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
}

.osf-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 13px 24px;
	border: 0;
	border-radius: 12px;
	background: var(--osf-accent);
	color: #fff;
	font: inherit;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	transition: filter .16s ease, transform .16s ease;
}

.osf-card__cta:hover {
	filter: brightness(1.07);
	color: #fff;
}

.osf-card__cta:active {
	transform: translateY(1px);
}

.osf-card__cta:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--osf-accent) 45%, #fff);
	outline-offset: 2px;
}

.osf-card__note {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--osf-muted);
}

.osf-card--compact .osf-card__inner {
	padding: 20px;
	gap: 14px;
}

.osf-card--compact .osf-card__title {
	font-size: 19px;
}

.osf-card--compact .osf-card__subtitle {
	font-size: 14.5px;
	margin-bottom: 12px;
}

.osf-card--compact .osf-card__benefits {
	display: none;
}

.osf-card--inline {
	grid-column: 1 / -1;
	width: 100%;
	margin: 8px 0 22px;
	flex-basis: 100%;
	max-width: 100%;
}

/* aparitie discreta, o singura data */
.osf-card[data-osf-reveal="pending"] {
	opacity: 0;
	transform: translateY(10px);
}

.osf-card[data-osf-reveal="in"] {
	opacity: 1;
	transform: none;
	transition: opacity .38s ease, transform .38s ease;
}

@media (max-width: 782px) {
	.osf-card {
		margin: 24px 0;
		border-radius: 16px;
	}

	.osf-card__inner {
		flex-direction: column;
		gap: 12px;
		padding: 20px 18px;
	}

	.osf-card__icon {
		width: 42px;
		height: 42px;
		border-radius: 12px;
	}

	.osf-card__title {
		font-size: 21px;
	}

	.osf-card__subtitle {
		font-size: 15px;
	}

	.osf-card__cta {
		width: 100%;
	}
}

/* ------------------------------------------------------- butonul flotant */

.osf-fab {
	position: fixed;
	right: 16px;
	bottom: calc(var(--osf-fab-offset, 84px) + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	pointer-events: none;
}

.osf-fab > * {
	pointer-events: auto;
}

.osf-fab.is-hidden {
	display: none;
}

.osf-fab__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 54px;
	padding: 0 18px 0 15px;
	border: 0;
	border-radius: 999px;
	background: var(--osf-accent);
	color: #fff;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(23, 21, 26, .22);
	transition: padding .22s ease, filter .16s ease;
}

.osf-fab__btn:hover {
	filter: brightness(1.07);
	color: #fff;
}

.osf-fab__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

.osf-fab__icon {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

.osf-fab__text {
	white-space: nowrap;
	max-width: 240px;
	overflow: hidden;
	transition: max-width .24s ease, opacity .18s ease, margin .24s ease;
}

.osf-fab.is-collapsed .osf-fab__btn {
	width: 54px;
	padding: 0;
	justify-content: center;
}

.osf-fab.is-collapsed .osf-fab__text {
	max-width: 0;
	opacity: 0;
	margin: 0;
}

.osf-fab__tip {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: min(74vw, 260px);
	padding: 9px 8px 9px 13px;
	border: 1px solid var(--osf-line);
	border-radius: 12px;
	background: #fff;
	color: var(--osf-ink);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	box-shadow: 0 8px 22px rgba(23, 21, 26, .14);
}

.osf-fab__tip.is-gone {
	display: none;
}

.osf-fab__tip-close {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--osf-muted);
	cursor: pointer;
}

.osf-fab__tip-close:hover {
	background: rgba(23, 21, 26, .06);
	color: var(--osf-ink);
}

@media (min-width: 783px) {
	.osf-fab {
		right: 22px;
		bottom: 22px;
	}
}

@media (max-width: 782px) {
	.osf-fab__text {
		display: none;
	}

	.osf-fab__btn {
		width: 54px;
		padding: 0;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.osf-card[data-osf-reveal="pending"],
	.osf-card[data-osf-reveal="in"] {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.osf-fab__btn,
	.osf-fab__text,
	.osf-card__cta {
		transition: none;
	}
}
