.lp-block {
	--lp-accent: #f5a623;
	--lp-price: #ff5c82;
	--lp-card: #252525;
	--lp-card-back: #202020;
	--lp-visual: #292929;
	--lp-face: #fff;
	--lp-face-soft: rgba(255, 255, 255, 0.56);
	--lp-name-bg: rgba(255, 255, 255, 0.035);
	margin: 0 0 20px;
	width: 100%;
	box-sizing: border-box;
	font-family: 'Furore';
}

.lp-block *,
.lp-block *::before,
.lp-block *::after {
	box-sizing: border-box;
}

.lp-box {
	padding: 16px;
}

.lp-block[data-lp-skin="light"] .lp-box {
	background: #fff;
	border: 1px solid #e6ebf2;
	box-shadow: 0 8px 24px rgba(28, 36, 48, 0.06);
}

.lp-block[data-lp-skin="dark"] .lp-box {
	background: #141414;
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
}

.lp-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
}

.lp-head__icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #8c69fb 0%, #58389b 100%);
    text-shadow: #000000d4 1px 0 12px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}

.lp-head__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.lp-head__text {
	min-width: 0;
}

.lp-head__title {
	display: block;
	font-size: 16px;
	font-weight: 100;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.lp-head__sub {
	display: block;
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.3;
    font-weight: 100;
    letter-spacing: 1.3px;
}

.lp-block[data-lp-skin="light"] .lp-head__title {
	color: #1c2430;
}

.lp-block[data-lp-skin="light"] .lp-head__sub {
	color: #7b8796;
}

.lp-block[data-lp-skin="dark"] .lp-head__title {
	color: #f4f4f5;
}

.lp-block[data-lp-skin="dark"] .lp-head__sub {
	color: #898989;
}

.lp-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.lp-card {
	min-width: 0;
	height: 112px;
	perspective: 900px;
}

.lp-flip {
	position: relative;
    height: 112px;
    overflow: hidden;
    background: #232323;
    transition: box-shadow 0.25s, transform 0.25s;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.lp-card:hover .lp-flip,
.lp-card:focus-within .lp-flip {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lp-face {
	position: absolute;
	inset: 1px;
	overflow: hidden;
	backface-visibility: hidden;
}

.lp-face--front {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	transform: translateY(0);
	transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.22s;
}

.lp-face--back {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	background: radial-gradient(circle at 50% 0%, rgb(115 45 219 / 12%), transparent 60%), #202020;
	transform: translateY(115px);
	transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.22s;
}

.lp-card:hover .lp-face--front,
.lp-card:focus-within .lp-face--front {
	transform: translateY(-115px);
}

.lp-card:hover .lp-face--back,
.lp-card:focus-within .lp-face--back {
	transform: translateY(0);
}

.lp-type {
	position: absolute;
	top: 7px;
	left: 7px;
	z-index: 2;
	max-width: calc(100% - 14px);
	padding: 3px 6px;
	clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
	background: rgba(0, 0, 0, 0.28);
	color: var(--lp-face-soft);
    font-size: 7px;
    font-weight: 400;
    line-height: 11px;
    letter-spacing: 0.35px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 1.5px;
}

.lp-visual {
	position: relative;
	width: 100%;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1c1c1c;
	overflow: hidden;
}

.cdm-frame-wrap--sm > img:not(.cdm-frame-overlay) {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 1px !important;
    object-fit: cover !important;
}

.lp-emoji {
	width: 55px;
	height: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 38px;
	line-height: 1;
}

.lp-photo {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	transform: translate(-50%, -50%);
	object-fit: contain;
	clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
	z-index: 1;
}

.lp-name {
	width: 100%;
    min-height: 30px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    background: var(--lp-name-bg);
    color: rgba(255, 255, 255, 0.83);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    overflow: hidden;
    word-break: break-word;
    letter-spacing: 1.5px;
    font-family: 'Montserrat';
}

.lp-back {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.lp-back__top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lp-ava {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
}

.lp-ava img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lp-buyer {
	min-width: 0;
}

.lp-user {
	display: block;
	color: #f3f3f3;
	font-size: 11px;
	font-weight: 400;
	line-height: 16px;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: 1px;
}

.lp-user:hover,
.lp-user:focus {
	color: #8e59ff;
}

.lp-act {
	display: block;
	color: rgba(255, 255, 255, 0.38);
	font-size: 8px;
	font-weight: 400;
	line-height: 11px;
	letter-spacing: 0.45px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.lp-back__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    margin-top: 10px;
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, .06);
	font-family: 'Montserrat';
}

.lp-price {
	color: #ff5c5c;
	font-size: 12px;
	font-weight: 800;
	line-height: 16px;
	white-space: nowrap;
}

.lp-time {
	color: rgba(255, 255, 255, 0.37);
	font-size: 8px;
	font-weight: 800;
	line-height: 12px;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	letter-spacing: 1px;
}

.lp-empty {
	padding: 18px 8px;
	text-align: center;
	font-size: 13px;
}

.lp-block[data-lp-skin="light"] .lp-empty {
	color: #7b8796;
}

.lp-block[data-lp-skin="dark"] .lp-empty {
	color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 768px) {
	.lp-box {
		padding: 18px 20px;
	}

	.lp-head__title {
		font-size: 12px;
	}

	.lp-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.lp-flip,
	.lp-face--front,
	.lp-face--back {
		transition: none;
	}

	.lp-card:hover .lp-face--front,
	.lp-card:focus-within .lp-face--front,
	.lp-card:hover .lp-face--back,
	.lp-card:focus-within .lp-face--back {
		transform: none;
	}

	.lp-face--back {
		position: static;
		transform: none;
		margin-top: 8px;
	}

	.lp-card,
	.lp-flip {
		height: auto;
	}

	.lp-flip {
		overflow: visible;
	}
}
