/* TshirtOn: "Open a larger view" button and dialog for cards with the class "tson-expand". */
.tson-expand {
	position: relative;
}

.tson-xv-open {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: #111;
	cursor: pointer;
	box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.tson-xv-open:hover,
.tson-xv-open:focus-visible {
	transform: scale(1.08);
	background: #fa4f26;
	border-color: #fa4f26;
	color: #fff;
	outline: none;
}

.tson-xv-card--open .tson-xv-open {
	display: none;
}

.tson-xv-lock,
.tson-xv-lock body {
	overflow: hidden;
}

.tson-xv {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: Inter, system-ui, sans-serif;
}

.tson-xv[hidden] {
	display: none;
}

.tson-xv__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .25s ease;
}

.tson-xv__box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	width: min(1180px, 100%);
	max-height: calc(100vh - 48px);
	overflow: hidden;
	border-radius: 28px;
	background: #161616;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
	opacity: 0;
	transform: translateY(16px) scale(.98);
	transition: opacity .25s ease, transform .25s ease;
}

.tson-xv.is-open .tson-xv__backdrop,
.tson-xv.is-open .tson-xv__box {
	opacity: 1;
	transform: none;
}

.tson-xv__stage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 28px;
}

.tson-xv__stage > .tson-xv-card--open {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	--width: 100%;
}

.tson-xv__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 64px 32px 28px;
	color: #f5f5f5;
	overflow: auto;
}

.tson-xv__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.tson-xv__close:hover,
.tson-xv__close:focus-visible {
	border-color: #fa4f26;
	color: #fa4f26;
	outline: none;
}

.tson-xv__eyebrow {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, .7);
}

.tson-xv__eyebrow::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: #fa4f26;
	vertical-align: middle;
}

.tson-xv__title {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	color: #fff;
}

.tson-xv__body {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .75);
}

.tson-xv__shop {
	display: block;
	margin-top: 8px;
	padding: 14px 20px;
	border-radius: 999px;
	background: #fa4f26;
	color: #fff !important;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	transition: background-color .2s ease;
}

.tson-xv__shop:hover {
	background: #e0401a;
}

.tson-xv__nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.tson-xv__nav[hidden] {
	display: none;
}

.tson-xv__nav button {
	max-width: 50%;
	padding: 4px 0;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, .75);
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.tson-xv__nav button:hover,
.tson-xv__nav button:focus-visible {
	color: #fff;
	outline: none;
}

@media (max-width: 860px) {
	.tson-xv {
		align-items: flex-end;
		padding: 0;
	}

	.tson-xv__box {
		grid-template-columns: 1fr;
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
		overflow: auto;
	}

	.tson-xv__stage {
		max-height: none;
		overflow: visible;
		padding: 16px;
	}

	.tson-xv__panel {
		padding: 20px 20px 28px;
	}

	.tson-xv__close {
		position: fixed;
		top: 12px;
		right: 12px;
		z-index: 2;
		background: rgba(0, 0, 0, .6);
	}

	.tson-xv__title {
		font-size: 24px;
	}
}
