:root {
	--km-float-win-bg: #f5f5f5;
	--km-button-dark-hover: #0084ff;
	--km-button-dark-bg: #6cf;
	--km-button-font: #fff;
	--km-button-shadow: rgba(56,56,56,0.2);
}

[data-theme="dark"] {
	--km-float-win-bg: #141414;
	--km-button-dark-hover: #49505d;
	--km-button-dark-bg: #1f1f1f;
	--km-button-font: #6cf;
	--km-button-shadow: #212121;
}

.float-box {
	position: fixed;
	width: 310px;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	z-index: 120;
}

.float-box.left {
	left: 20px;
	align-items: flex-start;
}

.float-box.right {
	right: 10px;
	align-items: flex-end;
}

.float-box.top {
	top: 60px;
}

.float-box.bottom {
	bottom: 35px;
}

.float-win {
	position: relative;
	overflow: hidden;
	width: 100%;
	background-color: var(--km-float-win-bg);
	color: var(--font-color);
	border-radius: 15px;
	box-shadow: 2px 2px 5px 3px var(--km-button-shadow);
	transition: all 1s;
	opacity: 0;
	margin-bottom: 15px;
}

.float-win.show {
	opacity: 1;
}

.float-win.left {
	left: -400px;
}

.float-win.left.show {
	left: 0;
}

.float-win.right {
	right: -400px;
}

.float-win.right.show {
	right: 0;
}

@media screen and (max-width: 550px) and (min-width: 250px) {
	.float-win {
		width: calc(65%);
	}
}

@media screen and (max-width: 250px) {
	.float-win {
		width: calc(80%);
	}

	.float-win > .select > .descr {
		color: transparent;
	}
}

.float-win > i {
	margin-left: 10px;
}

.float-win > .text {
	position: relative;
	max-width: 84%;
	margin-left: 8%;
	text-align: center;
	margin-top: 25px;
	margin-bottom: 20px;
	word-break: break-word;
	word-wrap: break-word;
}

.float-win > .text img {
	max-width: 90%;
	object-fit: contain;
	border-radius: 10px;
}

.float-win.click > .text {
	margin-bottom: 0;
}

.float-win > .exit {
	position: absolute;
	color: var(--text-highlight-color);
	right: 0;
	top: 0;
	width: 30px;
	height: 30px;
	transition: all 0.5s;
}

.float-win > .exit:hover {
	color: #00bfff;
	transform: rotate(90deg);
}

.float-win > .exit i {
	font-size: 1em;
}

.float-win > .select {
	position: relative;
	text-align: right;
	margin-bottom: 10px;
	height: 30px;
}

.float-win > .select > .descr {
	position: relative;
	margin-top: 0;
	margin-right: 6px;
	display: inline-block;
	height: 30px;
	overflow: hidden;
}

.float-win > .select > .descr > p {
	position: relative;
	margin: 0;
	height: 30px;
	z-index: 121;
	transition: all 1s;
}

.float-win > .select > .descr > p:not(.open) {
	left: 100px;
	opacity: 0;
}

.float-win > .select > .action {
	display: inline-block;
	position: relative;
	float: right;
	z-index: 121;
	height: 30px;
	margin-right: 10px;
	background-color: var(--km-button-dark-bg);
	color: var(--km-button-font);
	box-shadow: 1px 1px 2px var(--km-button-shadow);
	padding: 10px;
	border-radius: 7px;
	transition: all 0.5s;
}

.float-win > .select > .action > .text {
	display: inline;
	position: relative;
	bottom: 4px;
	font-weight: bold;
}

.float-win > .select > .action > i {
	position: relative;
	bottom: 4px;
	margin-right: 5px;
}

.float-win > .select > .action:hover {
	background-color: var(--km-button-dark-hover);
}

.float-win > .select > .action:hover + .descr > p {
	left: 0;
	opacity: 1;
}

[data-theme='light'] .float-win {
	box-shadow: 3px 4px 6px 5px var(--km-button-shadow);
}
