/* ShelleyWeb Store Helpers - preview lightbox modal. */

.swsh-preview-button {
	display: inline-block;
	cursor: pointer;
}

.swsh-pv-modal[hidden] {
	display: none;
}

.swsh-pv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.swsh-pv-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.65 );
}

.swsh-pv-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.35 );
	outline: none;
	overflow: hidden;
}

.swsh-pv-close {
	position: absolute;
	top: 6px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 26px;
	line-height: 1;
	color: #333;
	background: rgba( 255, 255, 255, 0.9 );
	border: none;
	border-radius: 50%;
	cursor: pointer;
}

.swsh-pv-close:hover,
.swsh-pv-close:focus {
	background: #eee;
}

.swsh-pv-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 44px 10px 10px;
}

.swsh-pv-body .swsh-pdf-preview {
	height: auto;
	border: none;
	overflow: visible;
}

body.swsh-pv-lock {
	overflow: hidden;
}

@media ( max-width: 600px ) {
	.swsh-pv-modal {
		padding: 0;
	}

	.swsh-pv-dialog {
		max-width: none;
		max-height: 100vh;
		height: 100vh;
		border-radius: 0;
	}
}
