#size-guide-modal,
#size-guide-modal-footer{
	border-radius: 8px;
	overflow: hidden;
}


.size-guide-content{
    padding: 44px 58px;
}

.size-guide-content table{
	margin-bottom: 0;
}

.size-guide__wrapper td:first-child, .size-guide__wrapper th:first-child {
	padding: 0.5em;
	position: sticky;
	left: 0;
}

#size-guide-modal .mfp-close {
    right: 30px;
    top: 50% !important;
    transform: translateY(-50%);
}

.size-guide__image {
	max-height: 312px;
	border: 1px solid #E0E0E0;
	border-radius: 9px;
	padding: 20px;
	aspect-ratio: 1 / 1;
	margin-bottom: 12px;
	object-fit: contain;
}


.size-guide__wrapper {
	display: flex;
	gap: 30px;
	align-items: center;
    padding-bottom: 50px;
}

.size-guide__wrapper + .size-guide__wrapper{
    padding-top: 50px;
}

.open-size-guide{
	color: #929292;
	text-decoration: underline;
	margin-bottom: 10px !important;
	margin-top: -10px !important;
}


.all-size-guides .size-guide__wrapper {
	width: 100%;
}

.size-guide__description{
	font-size: 15px;
	line-height: 177%;
	color: #373A3F;
	margin-bottom: 0;
}

.size-guide__title{
	font-weight: 700;
	font-size: 24px;
	line-height: 177%;
	margin-bottom: 0;
}

.size-guide-navigation {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.size-guide-nav-link {
	display: inline-block;
	padding: 12px 30px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 600;
	color: white;
	background: #303E54;
	transition: background 0.3s;
}

.size-guide-nav-link:hover {
	background: #1e2a3b;
	color: white;
}

.size-guide__wrapper .size-guide__table-wrapper{
	width: 100%;
}

.size-guide__wrapper table{
	border-collapse: collapse;
}

.size-guide__wrapper table thead:before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url(/wp-content/themes/fly-athletics/assets/size-guide/table-bg.png);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center;
	z-index: -1;
}

.size-guide__wrapper table thead{
	position: relative;
}

.size-guide__wrapper table th,
.size-guide__wrapper table td{
	text-align: center;
	border: none;
	font-weight: 600;
	font-size: 16px;
	line-height: 177%;
	color: #17191B;
	white-space: nowrap;
    padding-left: 25px;
    padding-right: 25px;
}

.size-guide__wrapper table th:first-child{
	white-space: unset;
}

.size-guide__wrapper table td:first-child{
	font-weight: 700;
	font-size: 18px;
	line-height: 177%;
	position: sticky;
	background: #FFF;
	width: 100px;
}

.size-guide__wrapper table td:first-child:before{
	content: '';
	position: absolute;
	top: 6px;
	left: 6px;
	right: 6px;
	bottom: 6px;
	background: #ECEEF3;
	border-radius: 6px;
	z-index: -1;
}

.size-guide__wrapper table th{
	color: white;
	font-weight: 700;
	font-size: 16px;
	line-height: 177%;
}

.size-guide__wrapper table tr + tr td{
	border-top: 1px solid #DEDEDE;
}

.size-guide__wrapper table th + th:before{
	content: '';
	width: 12px;
	height: 12px;
	border-radius: 12px;
	margin-right: 6px;
	background: #ccc;
	display: inline-block;
}

.size-guide__wrapper table th:nth-child(2){
	color: #FF6C6C;
}

.size-guide__wrapper table th:nth-child(2):before{
	background: #FF6C6C;
}

.size-guide__wrapper table th:nth-child(3){
	color: #FF9F4B;
}

.size-guide__wrapper table th:nth-child(3):before{
	background: #FF9F4B;
}

.size-guide__wrapper table th:nth-child(4){
	color: #5E8EF5;
}

.size-guide__wrapper table th:nth-child(4):before{
	background: #5E8EF5;
}

.size-guide__wrapper table th:nth-child(5){
	color: #51E2C0;
}

.size-guide__wrapper table th:nth-child(5):before{
	background: #51E2C0;
}

@media screen and (max-width: 849px){
	.size-guide__wrapper{
		flex-direction: column;
	}
	
	.size-guide__wrapper .size-guide__title-wrapper{
		display: flex;
		gap: 20px;
		align-items: end;
		width: 100%;
	}
	
	.size-guide__wrapper .size-guide__table-wrapper{
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin-left: -15px;
		margin-right: -15px;
		width: calc(100% + 30px);
	}
	
	.size-guide-content{
		padding: 15px;
	}
	
	#size-guide-modal .mfp-close{
		right: 10px;
	}
	
	.size-guide-nav-link{
		font-size: 14px;
		padding: 6px 15px;
	}

	.size-guide-navigation {
		gap: 10px;
	}
	
	.size-guide__image{
		max-height: 214px;
	}

	.size-guide__description{
		font-size: 13px;
	}

	.size-guide__title{
		font-size: 18px;
		line-height: 112%;
	}
	
	.size-guide__wrapper table thead:before{
		background: #17191B;
	}
}