/* Neto UI — mobile chat FAB + glass bottom sheet */

.neto-chat {
	display: none;
}

@media (max-width: 900px) {
	.neto-chat {
		display: block;
	}

	.neto-chat__fab {
		position: fixed;
		left: max(1rem, env(safe-area-inset-left, 0px));
		right: auto;
		bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
		z-index: 99980;
		width: 3.55rem;
		height: 3.55rem;
		border: 1px solid rgba(255, 255, 255, 0.65);
		border-radius: 999px;
		padding: 0;
		cursor: pointer;
		color: var(--neto-brand, #004d77);
		background: linear-gradient(
			155deg,
			rgba(255, 255, 255, 0.72) 0%,
			rgba(244, 247, 253, 0.55) 45%,
			rgba(15, 114, 210, 0.22) 100%
		);
		box-shadow:
			0 12px 32px rgba(5, 43, 66, 0.18),
			inset 0 1px 0 rgba(255, 255, 255, 0.75),
			inset 0 -1px 0 rgba(0, 77, 119, 0.08);
		backdrop-filter: blur(18px) saturate(1.4);
		-webkit-backdrop-filter: blur(18px) saturate(1.4);
		display: grid;
		place-items: center;
		transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, background 0.28s ease;
	}

	.neto-chat__fab:hover,
	.neto-chat__fab:focus-visible {
		transform: translateY(-2px) scale(1.04);
		outline: none;
		background: linear-gradient(
			155deg,
			rgba(255, 255, 255, 0.82) 0%,
			rgba(244, 247, 253, 0.65) 50%,
			rgba(15, 114, 210, 0.28) 100%
		);
		box-shadow:
			0 16px 40px rgba(5, 43, 66, 0.22),
			inset 0 1px 0 rgba(255, 255, 255, 0.85);
	}

	.neto-chat.is-open .neto-chat__fab {
		transform: scale(0.92);
		opacity: 0.55;
		pointer-events: none;
	}

	.neto-chat__fab-glow {
		position: absolute;
		inset: -6px;
		border-radius: inherit;
		background: radial-gradient(circle, rgba(15, 114, 210, 0.28), transparent 68%);
		animation: neto-chat-pulse 2.4s ease-in-out infinite;
		pointer-events: none;
	}

	html[data-neto-ui-theme="dark"] .neto-chat__fab {
		color: #e8f3ff;
		border-color: rgba(255, 255, 255, 0.18);
		background: linear-gradient(
			155deg,
			rgba(40, 48, 62, 0.78) 0%,
			rgba(18, 22, 30, 0.7) 55%,
			rgba(15, 114, 210, 0.35) 100%
		);
		box-shadow:
			0 12px 32px rgba(0, 0, 0, 0.4),
			inset 0 1px 0 rgba(255, 255, 255, 0.14);
	}

	html[data-neto-ui-theme="dark"] .neto-chat__fab-glow {
		background: radial-gradient(circle, rgba(15, 114, 210, 0.4), transparent 68%);
	}

	@keyframes neto-chat-pulse {
		0%,
		100% {
			opacity: 0.45;
			transform: scale(0.92);
		}
		50% {
			opacity: 0.9;
			transform: scale(1.08);
		}
	}

	.neto-chat__fab-icon {
		position: relative;
		z-index: 1;
		display: grid;
		place-items: center;
		width: 1.45rem;
		height: 1.45rem;
	}

	.neto-chat__fab-icon svg {
		width: 100%;
		height: 100%;
		display: block;
	}

	.neto-chat__layer {
		position: fixed;
		inset: 0;
		z-index: 99990;
		display: flex;
		align-items: flex-end;
		justify-content: stretch;
		pointer-events: none;
	}

	.neto-chat__layer:not([hidden]) {
		pointer-events: auto;
	}

	.neto-chat,
	.neto-chat * {
		-webkit-tap-highlight-color: transparent !important;
	}

	.neto-chat__scrim {
		position: absolute;
		inset: 0;
		border: 0;
		padding: 0;
		margin: 0;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
		background: rgba(5, 20, 35, 0.42) !important;
		background-image: none !important;
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		box-shadow: none !important;
		outline: none !important;
		opacity: 0;
		transition: opacity 0.32s ease;
		-webkit-tap-highlight-color: transparent !important;
	}

	.neto-chat__scrim:hover,
	.neto-chat__scrim:focus,
	.neto-chat__scrim:focus-visible,
	.neto-chat__scrim:active,
	body[class*="elementor"] .neto-chat__scrim,
	body[class*="elementor"] .neto-chat__scrim:hover,
	body[class*="elementor"] .neto-chat__scrim:focus,
	body[class*="elementor"] .neto-chat__scrim:active {
		background: rgba(5, 20, 35, 0.42) !important;
		background-image: none !important;
		background-color: rgba(5, 20, 35, 0.42) !important;
		color: transparent !important;
		outline: none !important;
		box-shadow: none !important;
		border-color: transparent !important;
	}

	.neto-chat.is-open .neto-chat__scrim {
		opacity: 1;
	}

	.neto-chat button:focus,
	.neto-chat button:active,
	.neto-chat a:focus,
	.neto-chat a:active,
	body[class*="elementor"] .neto-chat button:focus,
	body[class*="elementor"] .neto-chat button:active,
	body[class*="elementor"] .neto-chat a:focus,
	body[class*="elementor"] .neto-chat a:active {
		outline: none !important;
		text-decoration: none !important;
		text-shadow: none !important;
	}

	.neto-chat__sheet {
		position: relative;
		z-index: 1;
		width: 100%;
		max-width: 28rem;
		margin-inline: auto;
		padding: 0.65rem 1.1rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
		border-radius: 1.35rem 1.35rem 0 0;
		border: 1px solid rgba(255, 255, 255, 0.45);
		border-bottom: 0;
		background: linear-gradient(
			165deg,
			rgba(255, 255, 255, 0.42) 0%,
			rgba(244, 247, 253, 0.38) 50%,
			rgba(255, 255, 255, 0.32) 100%
		);
		box-shadow:
			0 -18px 48px rgba(5, 43, 66, 0.18),
			inset 0 1px 0 rgba(255, 255, 255, 0.55);
		backdrop-filter: blur(28px) saturate(1.45);
		-webkit-backdrop-filter: blur(28px) saturate(1.45);
		color: var(--neto-ink, #052b42);
		font-family: var(--neto-font, "Vazirmatn FD", Tahoma, sans-serif);
		transform: translateY(110%);
		transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
	}

	.neto-chat.is-open .neto-chat__sheet {
		transform: translateY(0);
	}

	html[data-neto-ui-theme="dark"] .neto-chat__sheet {
		border-color: rgba(255, 255, 255, 0.1);
		background: linear-gradient(
			165deg,
			rgba(24, 24, 27, 0.55) 0%,
			rgba(18, 18, 22, 0.48) 100%
		);
		box-shadow:
			0 -18px 48px rgba(0, 0, 0, 0.4),
			inset 0 1px 0 rgba(255, 255, 255, 0.08);
		color: var(--neto-ink, #fafafa);
	}

	.neto-chat__handle {
		display: block;
		width: 2.6rem;
		height: 0.28rem;
		margin: 0.15rem auto 0.85rem;
		border-radius: 999px;
		background: rgba(5, 43, 66, 0.18);
	}

	html[data-neto-ui-theme="dark"] .neto-chat__handle {
		background: rgba(255, 255, 255, 0.22);
	}

	.neto-chat__head {
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		gap: 0.75rem;
		margin-bottom: 1rem;
	}

	.neto-chat__kicker {
		margin: 0 0 0.2rem;
		font-size: 0.72rem;
		letter-spacing: 0.04em;
		color: var(--neto-accent, #0f72d2);
		font-weight: 600;
	}

	.neto-chat__title {
		margin: 0;
		font-size: 1.15rem;
		line-height: 1.35;
		font-weight: 700;
	}

	.neto-chat__lead {
		margin: 0.35rem 0 0;
		font-size: 0.86rem;
		line-height: 1.55;
		color: var(--neto-muted, #5a6b7a);
	}

	.neto-chat__x {
		flex: 0 0 auto;
		width: 2.25rem;
		height: 2.25rem;
		border-radius: 999px;
		border: 1px solid rgba(255, 255, 255, 0.55);
		background: rgba(255, 255, 255, 0.35);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		color: inherit;
		display: grid;
		place-items: center;
		cursor: pointer;
		padding: 0;
	}

	html[data-neto-ui-theme="dark"] .neto-chat__x {
		background: rgba(255, 255, 255, 0.08);
		border-color: rgba(255, 255, 255, 0.12);
	}

	.neto-chat__x svg {
		width: 0.95rem;
		height: 0.95rem;
	}

	.neto-chat__list {
		list-style: none;
		margin: 0;
		padding: 0;
		display: grid;
		gap: 0.55rem;
	}

	.neto-chat__item {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.85rem;
		padding: 0.85rem 0.95rem;
		border-radius: 1rem;
		text-decoration: none;
		color: inherit;
		border: 1px solid rgba(255, 255, 255, 0.5);
		background: rgba(255, 255, 255, 0.28);
		box-shadow:
			0 8px 22px rgba(100, 130, 160, 0.08),
			inset 0 1px 0 rgba(255, 255, 255, 0.45);
		backdrop-filter: blur(14px) saturate(1.2);
		-webkit-backdrop-filter: blur(14px) saturate(1.2);
		transition: transform 0.2s ease, background 0.2s ease;
		direction: ltr;
	}

	html[data-neto-ui-theme="dark"] .neto-chat__item {
		background: rgba(255, 255, 255, 0.06);
		border-color: rgba(255, 255, 255, 0.1);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	}

	.neto-chat__item:hover,
	.neto-chat__item:focus-visible {
		transform: translateY(-1px);
		outline: none;
		background: rgba(255, 255, 255, 0.42);
	}

	.neto-chat__item-copy {
		order: 1;
		flex: 1 1 auto;
		min-width: 0;
		display: grid;
		gap: 0.15rem;
		text-align: right;
		direction: rtl;
	}

	.neto-chat__item-icon {
		order: 2;
		width: 2.55rem;
		height: 2.55rem;
		border-radius: 0.85rem;
		display: grid;
		place-items: center;
		flex: 0 0 auto;
		color: #fff;
	}

	.neto-chat__item--phone .neto-chat__item-icon {
		background: linear-gradient(145deg, #0f72d2, #004d77);
	}

	.neto-chat__item--whatsapp .neto-chat__item-icon {
		background: linear-gradient(145deg, #25d366, #128c7e);
	}

	.neto-chat__item--telegram .neto-chat__item-icon {
		background: linear-gradient(145deg, #2aabee, #229ed9);
	}

	.neto-chat__item-icon svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	.neto-chat__item-copy strong {
		font-size: 0.98rem;
		font-weight: 700;
	}

	.neto-chat__item-copy small {
		font-size: 0.78rem;
		color: var(--neto-muted, #5a6b7a);
		direction: ltr;
		unicode-bidi: plaintext;
		text-align: right;
	}

	@media (prefers-reduced-motion: reduce) {
		.neto-chat__fab,
		.neto-chat__scrim,
		.neto-chat__sheet,
		.neto-chat__item,
		.neto-chat__fab-glow {
			animation: none !important;
			transition: none !important;
		}
	}
}

html.neto-chat-lock,
html.neto-chat-lock body {
	overflow: hidden;
}
