/* ==========================================================================
   Ujuv Tootehaldur - floating product manager widget v1.4.15
   ========================================================================== */

#ujuv-tootehaldur-widget {
	position: fixed;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 9990;
	width: 216px;
	background: transparent;
	overflow: visible;
	font-family: inherit;
}

#ujuv-tootehaldur-widget,
#ujuv-tootehaldur-widget * {
	box-sizing: border-box;
}

#ujuv-tootehaldur-widget.ujuv-th-has-photo {
	padding-top: 56px;
}

.ujuv-th-card {
	position: relative;
	z-index: 1;
	overflow: hidden;
	background: #fff;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ujuv-th-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--ama-secondary-color);
	z-index: 2;
}

#ujuv-tootehaldur-widget:hover .ujuv-th-card {
	box-shadow: 0 18px 42px rgba(0, 0, 0, 0.17);
}

.ujuv-th-photo {
	position: absolute;
	top: -30px;
	left: 50%;
	z-index: 3;
	width: 160px;
	height: 160px;
	transform: translateX(-50%);
	overflow: hidden;
	border: 4px solid #fff;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.17), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ujuv-th-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

#ujuv-tootehaldur-widget.ujuv-th-has-photo .ujuv-th-card {
	padding-top: 86px;
}

.ujuv-th-toggle {
	position: absolute;
	top: 10px;
	right: 2px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.76);
	color: var(--ama-primary-color);
	cursor: pointer;
	opacity: 0.72;
	transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.ujuv-th-toggle:hover,
.ujuv-th-toggle:focus {
	background: #fff;
	color: var(--ama-primary-color);
	opacity: 1;
	outline: none;
}

.ujuv-th-toggle:focus-visible {
	outline: 2px solid var(--ama-secondary-color);
	outline-offset: 2px;
}

.ujuv-th-chevron {
	display: block;
	transform: rotate(90deg);
	transition: transform 0.25s ease;
}

.ujuv-th-mini-info {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 14px 42px 14px 18px;
	pointer-events: none;
}

.ujuv-th-mini-label,
.ujuv-th-label {
	margin: 0;
	color: var(--ama-primary-color);
	font-size: 10px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ujuv-th-mini-name {
	color: var(--ama-primary-color);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
}

.ujuv-th-inner {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	padding: 0 14px 16px;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

#ujuv-tootehaldur-widget:not(.ujuv-th-has-photo) .ujuv-th-inner {
	padding-top: 28px;
}

.ujuv-th-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	text-align: center;
}

.ujuv-th-name {
	margin: 6px 0 0;
	color: var(--ama-primary-color);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.18;
	text-align: center;
}

.ujuv-th-info::after {
	content: "";
	display: block;
	width: 46px;
	height: 2px;
	margin-top: 10px;
	border-radius: 999px;
	background: var(--ama-secondary-color);
}

.ujuv-th-contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.ujuv-th-btn {
	display: flex;
	align-items: center;
	min-height: 46px;
	min-width: 0;
	width: 100%;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 7px;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
	color: var(--ama-primary-color);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ujuv-th-btn:hover,
.ujuv-th-btn:focus {
	border-color: var(--ama-primary-color);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.11);
	color: var(--ama-primary-color);
	text-decoration: none;
	transform: translateY(-1px);
	outline: none;
}

.ujuv-th-btn:focus-visible {
	outline: 2px solid var(--ama-secondary-color);
	outline-offset: 2px;
}

.ujuv-th-btn svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: var(--ama-primary-color);
	opacity: 1;
}

.ujuv-th-btn span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-photo {
	display: none;
}

@media (min-width: 961px) {
	#ujuv-tootehaldur-widget.ujuv-th-collapsed {
		right: 0;
		width: 42px;
		padding-top: 0;
		transform: translateY(calc(-50% - 18px));
	}

	#ujuv-tootehaldur-widget.ujuv-th-has-photo.ujuv-th-collapsed .ujuv-th-card {
		padding-top: 0;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-card {
		border-radius: 10px 0 0 10px;
		cursor: pointer;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-card::before {
		right: auto;
		bottom: 0;
		width: 5px;
		height: auto;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-inner {
		display: none;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-toggle {
		position: static;
		display: flex;
		width: 30px;
		height: 30px;
		margin: 10px auto 2px;
		background: transparent;
		opacity: 1;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-mini-info {
		position: static;
		display: flex;
		align-items: center;
		gap: 0;
		padding: 6px 0 16px 5px;
		pointer-events: auto;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-mini-name {
		display: none;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-mini-label {
		writing-mode: vertical-rl;
		text-orientation: mixed;
		color: var(--ama-primary-color);
		font-size: 10px;
		font-weight: 800;
		letter-spacing: 0.13em;
		user-select: none;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-chevron {
		transform: rotate(-90deg);
	}
}

@media (max-width: 960px) {
	#ujuv-tootehaldur-widget,
	#ujuv-tootehaldur-widget.ujuv-th-has-photo {
		--ujuv-th-mobile-edge: 8px;
		top: auto;
		right: auto;
		bottom: 0;
		left: 8px;
		width: calc(100vw - 16px);
		padding-top: 0;
		transform: none;
	}

	.ujuv-th-card {
		border-radius: 12px 12px 0 0;
		overflow: hidden;
		box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
	}

	.ujuv-th-photo {
		top: auto;
		bottom: 4px;
		left: 16px;
		width: 128px;
		height: 128px;
		transform: none;
	}

	#ujuv-tootehaldur-widget.ujuv-th-has-photo .ujuv-th-card {
		padding-top: 0;
	}

	.ujuv-th-toggle {
		top: 50%;
		right: 8px;
		transform: translateY(-50%);
	}

	.ujuv-th-chevron {
		transform: rotate(180deg);
	}

	.ujuv-th-inner {
		display: grid;
		grid-template-columns: max-content minmax(0, 1fr);
		align-items: center;
		column-gap: 14px;
		min-height: 66px;
		padding: 10px 52px 9px 160px;
	}

	#ujuv-tootehaldur-widget:not(.ujuv-th-has-photo) .ujuv-th-inner {
		padding: 12px 52px 11px 18px;
	}

	.ujuv-th-info {
		align-items: flex-start;
		width: auto;
		max-width: none;
		min-width: 0;
		text-align: left;
	}

	.ujuv-th-label {
		max-width: 100%;
		overflow: visible;
		text-overflow: clip;
		white-space: nowrap;
	}

	.ujuv-th-name {
		margin-top: 2px;
		font-size: 13px;
		line-height: 1.2;
		text-align: left;
		white-space: nowrap;
	}

	.ujuv-th-info::after {
		display: none;
	}

	.ujuv-th-contacts {
		flex-direction: row;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		min-width: 0;
	}

	.ujuv-th-btn {
		width: auto;
		min-height: 31px;
		padding: 7px 11px;
		font-size: 12px;
	}

	.ujuv-th-phone {
		max-width: 142px;
	}

	.ujuv-th-email {
		max-width: 168px;
	}

	.ujuv-th-btn svg {
		width: 14px;
		height: 14px;
	}

	.ujuv-th-mini-info {
		justify-content: flex-start;
		align-items: center;
		gap: 8px;
		padding: 10px 52px 9px 160px;
	}
}

@media (max-width: 680px) {
	.ujuv-th-photo {
		bottom: 10px;
		left: 14px;
		width: 104px;
		height: 104px;
	}

	.ujuv-th-inner {
		grid-template-columns: max-content minmax(0, 1fr);
		column-gap: 12px;
		min-height: 62px;
		padding: 9px 48px 8px 132px;
	}

	.ujuv-th-info {
		max-width: none;
	}

	.ujuv-th-contacts {
		gap: 7px;
	}

	.ujuv-th-btn {
		min-height: 31px;
		padding: 7px 10px;
	}

	.ujuv-th-phone {
		max-width: 126px;
	}

	.ujuv-th-email {
		max-width: 144px;
	}

	.ujuv-th-mini-info {
		padding-left: 132px;
	}
}

@media (max-width: 560px) {
	#ujuv-tootehaldur-widget,
	#ujuv-tootehaldur-widget.ujuv-th-has-photo {
		--ujuv-th-mobile-edge: 6px;
		right: auto;
		left: 6px;
		width: calc(100vw - 12px);
	}

	.ujuv-th-photo {
		bottom: 14px;
		left: 14px;
		width: 92px;
		height: 92px;
	}

	.ujuv-th-inner {
		grid-template-columns: max-content minmax(0, 1fr);
		column-gap: 0;
		min-height: 56px;
		padding: 7px 42px 7px 116px;
	}

	#ujuv-tootehaldur-widget:not(.ujuv-th-has-photo) .ujuv-th-inner {
		padding-right: 42px;
		padding-left: 16px;
	}

	.ujuv-th-info {
		max-width: none;
	}

	.ujuv-th-name {
		font-size: 13px;
	}

	.ujuv-th-btn {
		justify-content: center;
		width: 36px;
		min-width: 36px;
		max-width: 36px;
		min-height: 34px;
		gap: 0;
		padding: 0;
	}

	.ujuv-th-btn span {
		display: none;
	}

	.ujuv-th-mini-info {
		padding-left: 116px;
	}
}

@media (max-width: 360px) {
	.ujuv-th-photo {
		left: 12px;
		width: 84px;
		height: 84px;
	}

	.ujuv-th-inner {
		grid-template-columns: max-content minmax(0, 1fr);
		column-gap: 6px;
		padding-right: 36px;
		padding-left: 104px;
	}

	.ujuv-th-label {
		font-size: 9px;
		letter-spacing: 0.08em;
	}

	.ujuv-th-btn {
		width: 34px;
		min-width: 34px;
		max-width: 34px;
		min-height: 32px;
	}
}

@media (max-width: 960px) {
	#ujuv-tootehaldur-widget.ujuv-th-collapsed {
		left: auto;
		right: 0;
		width: auto;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-card {
		display: flex;
		flex-direction: row;
		align-items: center;
		border-radius: 10px 10px 0 0;
		overflow: hidden;
		min-height: 46px;
		padding: 0 52px 0 0;
		cursor: pointer;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-card::before {
		height: 4px;
		border-radius: 10px 10px 0 0;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-inner {
		display: none;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-toggle {
		position: absolute;
		top: 50%;
		right: calc(var(--ujuv-th-mobile-edge) + 8px);
		width: 26px;
		height: 26px;
		margin: 0;
		background: transparent;
		opacity: 1;
		transform: translateY(-50%);
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-mini-info {
		position: static;
		display: flex;
		order: 1;
		align-items: center;
		gap: 6px;
		padding: 13px 0 10px 14px;
		pointer-events: auto;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-mini-name {
		display: none;
	}

	#ujuv-tootehaldur-widget.ujuv-th-collapsed .ujuv-th-chevron {
		transform: rotate(0deg);
	}
}
