/* Photo Proofing frontend styles. */

body.wpzoom-proofing-page {
	margin: 0;
	padding: 0 0 90px;
	background: #f5f5f5;
	color: #222;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

.wpzoom-proofing-header {
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px 24px;
	text-align: center;
}

.wpzoom-proofing-header__title {
	margin: 0 0 12px;
	font-size: 32px;
	font-weight: 700;
}

.wpzoom-proofing-header__intro {
	margin: 0 auto;
	max-width: 640px;
	color: #555;
}

.wpzoom-proofing-empty {
	text-align: center;
	padding: 48px 24px;
	color: #555;
}

.wpzoom-proofing-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.wpzoom-proofing-item {
	position: relative;
	margin: 0;
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wpzoom-proofing-item__image {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.wpzoom-proofing-item.is-selectable .wpzoom-proofing-item__image {
	cursor: pointer;
}

.wpzoom-proofing-item.is-selected {
	outline: 3px solid #0000FF;
	box-shadow: none;
}

.wpzoom-proofing-item__checkbox {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 26px;
	height: 26px;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	border: 2px solid #fff;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wpzoom-proofing-item__checkbox:hover {
	background: rgba(255, 255, 255, 0.6);
}

.wpzoom-proofing-item__checkbox:checked {
	background: #0000FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M6.5 12.2 2.8 8.5l1.4-1.4 2.3 2.3 5.3-5.3 1.4 1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
	border-color: #0000FF;
}

.wpzoom-proofing-item__checkbox:disabled {
	cursor: default;
}

.wpzoom-proofing-item__checkbox:focus-visible {
	outline: 2px solid #0000FF;
	outline-offset: 2px;
}

.wpzoom-proofing-item__zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	transition: background 0.15s ease;
}

.wpzoom-proofing-item__zoom:hover {
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
}

.wpzoom-proofing-item__zoom svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.wpzoom-proofing-toolbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 14px 24px;
	background: #fff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.wpzoom-proofing-toolbar__count {
	font-size: 15px;
}

.wpzoom-proofing-toolbar__approve {
	cursor: pointer;
	border: 0;
	border-radius: 4px;
	background: #0000FF;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 24px;
	transition: background 0.15s ease;
}

.wpzoom-proofing-toolbar__approve:hover {
	background: #135e96;
}

.wpzoom-proofing-toolbar__approve:disabled {
	opacity: 0.6;
	cursor: default;
}

.wpzoom-proofing-toolbar__status {
	color: #00a32a;
	font-weight: 600;
}

/* Lightbox: keep the close button fixed at the top right of the viewport. */
.wpzoom-proofing-popup .mfp-close {
	position: fixed;
	display: flex;
    align-items: center;
    justify-content: center;
	top: 16px;
	right: 16px;
	padding: 0;
	line-height: 44px;
	text-align: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	opacity: 1;
	cursor: pointer;
	transition: background 0.15s ease;
}

.wpzoom-proofing-popup .mfp-close:hover {
	background: rgba(0, 0, 0, 0.55);
}

/* Cancel Magnific's ".mfp-close:active { top: 1px }" pressed effect, which yanks our fixed button up. */
.wpzoom-proofing-popup .mfp-close:active {
	top: 16px;
}

.wpzoom-proofing-popup .mfp-arrow:hover, 
.wpzoom-proofing-popup .mfp-arrow:focus{
	background: unset;
}

@media (max-width: 600px) {
	.wpzoom-proofing-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 10px;
		padding: 0 12px;
	}

	.wpzoom-proofing-item__image {
		height: 160px;
	}

	.wpzoom-proofing-header {
		padding: 32px 16px 16px;
	}

	.wpzoom-proofing-header__title {
		font-size: 24px;
	}
}
