@charset "UTF-8";

section#window {
	z-index: 1500;
	position: fixed;
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	/* backdrop-filter: brightness(40%) contrast(120%) grayscale(60%) blur(1.2px); */
}

section#window:before {
	content: '';
	z-index: -100;
	position: absolute;
	width: 100vw;
	height: 100vh;
	opacity: 0.7;
	background: #000;
	filter: brightness(50%);
}

section#window>div.card {
	width: 85vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	border-radius: 0.75rem;
	overflow: clip;
	background-color: var(--tg-theme-bg-color);
}

section#window>div.card>h3 {
	margin: 0 0 0.5rem 0;
	height: 23px;
	padding: 1rem 0;
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	white-space: nowrap;
	background-color: var(--tg-theme-header-bg-color);
}

section#window>div.card>h3>span.name {
	margin-left: 1.5rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* section#window>div.card>h3>small.brand {
	margin-left: auto;
	font-size: 0.8rem;
	font-weight: normal;
	color: var(--tg-theme-section-header-text-color);
} */

section#window>div.card>h3>a.exit[type="button"] {
	margin-left: auto;
	margin-right: 0.5rem;
	padding: 0.6rem;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	color: var(--tg-theme-section-header-text-color);
	background-color: unset;
}

section#window>div.card>div.images {
	height: 10rem;
	min-height: 10rem;
	max-height: 10rem;
	display: flex;
	overflow: hidden;
	cursor: zoom-in;
	transition: 0s;
}

section#window>div.card>div.images:has(> img:last-child:nth-child(2)) {
	padding: 0rem 1rem;
}

section#window>div.card>div.images.extend {
	z-index: 9999999;
	left: 10vw;
	top: 10vh;
	margin: unset !important;
	position: absolute;
	width: 100vw;
	max-width: unset;
	height: 80vh;
	min-height: 80vh;
	max-height: 80vh;
	align-items: center;
	cursor: default;
	overflow: unset;
	transition: 0s;
}

section#window>div.card:has(>div.images.extend)>:not(div.images.extend) {
	filter: brightness(50%);
}

section#window>div.card>div.images>img {
	margin-right: 0.5rem;
	min-width: 150px;
	width: auto;
	height: 10rem;
	flex-shrink: 0;
	flex-grow: 0;
	object-fit: cover;
	image-rendering: auto;
	border-radius: 0.5rem;
	transition: 0s;
}

section#window>div.card>div.images.extend>img {
	margin-right: 3vw;
	width: 80vw;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	border-radius: 0.75rem;
}

section#window>div.card>div.images>img:last-child {
	margin-right: unset;
}

section#window>div.card>div.images>img.extend {
	z-index: 9999999;
	left: 0;
	top: 0;
	margin: unset !important;
	position: absolute;
	width: 100vw;
	max-width: unset;
	height: 100vh;
	object-fit: contain;
	border-radius: unset;
	transition: 0s;
	cursor: zoom-out;
}

section#window>div.card>p {
	margin-bottom: unset;
	min-height: 1rem;
	padding: 0 1rem;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

section#window>div.card>p:last-of-type {
	margin-bottom: revert;
}

section#window>div.card>div.footer {
	container-type: inline-size;
	container-name: window-footer;
	padding: 0.8rem 2.3rem;
	display: flex;
	flex-flow: row wrap;
	align-items: baseline;
	gap: 0.8rem;
	background-color: var(--tg-theme-header-bg-color);
}

section#window>div.card>div.footer>small.dimensions {
	color: var(--tg-theme-section-header-text-color);
}

section#window>div.card>div.footer>small.weight {
	color: var(--tg-theme-section-header-text-color);
}

section#window>div.card>div.footer>p.cost {
	margin-left: auto;
	font-weight: bold;
}

section#window>div.card>div.footer>button.buy {
	width: 100%;
	height: 3.5rem;
}

@container window-footer (max-width: 350px) {
	section#window>div.card>div.footer>small:first-of-type {
		margin-left: auto;
	}

	section#window>div.card>div.footer>small:last-of-type {
		margin-right: auto;
	}

	section#window>div.card>div.footer>p.cost {
		margin: unset;
		width: 100%;
		text-align: center;
	}
}
