.evida-shop-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.evida-shop-popup[aria-hidden="false"] {
	display: flex;
}

.evida-shop-popup__overlay {
	position: absolute;
	inset: 0;
	background: transparent;
}

.evida-shop-popup__dialog {
	position: relative;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(8px);
	border-radius: 0;
	box-sizing: border-box;
	padding: 2.5em;
	max-width: var(--wp--style--global--wide-size, 1190px);
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
}

.evida-shop-popup__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 3.333em;
}

.evida-shop-popup__title {
	color: var(--wp--preset--color--primary, #007F86);
	margin: 0;
	font-size: 2.333em;
	font-weight: 500;
	line-height: 1.111em;
	font-feature-settings: 'liga' off, 'clig' off;
}

.evida-shop-popup__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	width: 2rem;
	height: auto;
	transition: opacity 0.2s ease;
}

.evida-shop-popup__close svg {
	width: 100%;
	height: auto;
	display: block;
}

.evida-shop-popup__close:hover {
	opacity: 0.7;
}

.evida-shop-popup__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 3.333em;
}

.evida-shop-popup__item {
	position: relative;
	background: #ffffff;
	border: 2px solid var(--wp--preset--color--primary, #008B7F);
	border-radius: 0.5em;
	padding: 1em;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	text-decoration: none;
	overflow: hidden;
}

.evida-shop-popup__item::after {
	content: attr(data-label);
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--primary, #008B7F);
	color: #ffffff;
	font-weight: 600;
	font-size: 0.889em;
	border-radius: 0.35em;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.evida-shop-popup__item:hover::after {
	opacity: 1;
}

.evida-shop-popup__item img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

@media (max-width: 768px) {
	.evida-shop-popup__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.evida-shop-popup__dialog {
		padding: 1.5em;
	}
}
