/* Certificate Manager - Frontend Styles */

body.zc-cert-modal-open {
	overflow: hidden;
}

.zc-cert-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	margin: 20px 0;
}

.zc-cert-item {
	text-align: center;
	width: 140px;
}

.zc-cert-logo-btn {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 12px;
	cursor: pointer;
	width: 120px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.zc-cert-logo-btn:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

.zc-cert-logo-btn img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.zc-cert-title {
	margin-top: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #333;
}

/* Modal */
.zc-cert-modal {
	display: none;
	position: fixed;
	z-index: 2147483000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.75);
	align-items: center;
	justify-content: center;
}

.zc-cert-modal.zc-open {
	display: flex;
}

.zc-cert-modal-content {
	background: #fff;
	border-radius: 8px;
	padding: 20px;
	max-width: 90%;
	max-height: 90vh;
	position: relative;
	text-align: center;
	overflow: auto;
}

.zc-cert-modal-img-wrap {
	overflow: auto;
	max-height: 75vh;
	display: flex;
	justify-content: center;
}

.zc-cert-modal-content img {
	max-width: 100%;
	max-height: 75vh;
	display: block;
	margin: 0 auto;
	cursor: zoom-in;
	transition: transform 0.2s ease;
	transform-origin: center top;
}

.zc-cert-modal-content img.zc-zoomed {
	max-width: none;
	max-height: none;
	width: 200%;
	cursor: zoom-out;
}

.zc-cert-zoom-controls {
	margin-top: 10px;
}

.zc-cert-zoom-controls button {
	border: 1px solid #ccc;
	background: #f7f7f7;
	border-radius: 4px;
	padding: 4px 12px;
	margin: 0 4px;
	cursor: pointer;
	font-size: 16px;
}

.zc-cert-zoom-controls button:hover {
	background: #eee;
}

.zc-cert-modal-close {
	position: absolute;
	top: 8px;
	right: 16px;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	color: #333;
	line-height: 1;
}

.zc-cert-modal-close:hover {
	color: #b32d2e;
}

#zc-cert-modal-title {
	margin-top: 14px;
	font-weight: 600;
	font-size: 16px;
	color: #333;
}
