@use "../abstracts/variables" as *;

.firevert-widget {
	position: fixed;
	bottom: 80px;
	right: 10px;
	width: calc(100% - 20px);
	height: 60px;
	background-color: var(--firevert-light-black);
	border-radius: var(--firevert-border-radius-secondary);
	font-family: var(--firevert-font-family);
	padding: 6px;
	z-index: $z-index;

	@media #{$md} {
		max-width: 360px;
	}

	&--without-bubble {
		bottom: 10px;
	}

	&--image {
		height: 90px;
		padding: 0;
		background-color: unset !important;
	}

	&--hidden {
		display: none;
	}

	&--mobile-bottom-position {
		bottom: 20px;
	}

	&--init-desktop-position {
		@media #{$xl} {
			bottom: 25px;
		}
	}

	&--bottom-left {
		left: 10px;
		right: unset;
	}

	&--box-shadow {
		box-shadow: var(--firevert-box-shadow);
	}

	& * {
		font-family: var(--firevert-font-family);
	}

	&__close {
		display: grid;
		place-items: center;
		position: absolute;
		top: -10px;
		right: 0;
		width: 26px;
		height: 26px;
		background-color: var(--firevert-white);
		border-radius: var(--firevert-border-radius-circle);
		cursor: pointer;
		border: 1px solid var(--firevert-border-color);
	}

	&__container {
		display: flex;
		align-items: center;
		height: 100%;
		gap: 15px;
		cursor: pointer;

		&--image {
			overflow: hidden;
		}
	}

	&__image {
		width: 100%;
		height: 90px;
		overflow: hidden;

		@media #{$md} {
			max-width: 360px;
		}

		& > img {
			width: 100%;
			height: max-content;
			object-fit: cover;
		}
	}

	&__left-side {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		padding: 7px 15px 5px 15px;
		border-radius: var(--firevert-border-radius-secondary);
		background-color: var(--firevert-accent);
		height: 100%;
		width: 140px;

		&--image {
			position: absolute;
			bottom: 0;
			left: 50%;
			transform: translateX(-50%);
			padding: 7px 10px;
			flex-direction: row;
			height: max-content;
			bottom: -12px;
			width: max-content;
		}
	}

	&__left-side-timer {
		font-size: 16px;
		line-height: 10px;
		font-weight: 700;
		color: var(--firevert-white);
		text-align: center;
		user-select: none;
	}

	&__left-side-timer-text {
		text-align: center;
		font-size: 14px;
		line-height: 10px;
		color: var(--firevert-white);
		user-select: none;
	}

	&__right-side {
		max-width: 163px;
	}

	&__right-side-promo-text {
		font-size: 16px;
		line-height: 21px;
		color: var(--firevert-white);
		user-select: none;

		& > strong {
			font-weight: 700 !important;
		}
	}
}
