/* AEM Price List. Colors inherit from Elementor global colors or the block theme palette unless set in Settings. */
.aem-pl {
	--aem-pl-accent-auto: var(--e-global-color-primary, var(--wp--preset--color--primary, var(--wp--preset--color--contrast, #1f2937)));
	--aem-pl-header-bg: var(--aem-pl-accent, var(--aem-pl-accent-auto));
	--aem-pl-header-color: var(--aem-pl-header-text, #fff);
	--aem-pl-row-stripe: var(--aem-pl-stripe, rgba(127, 127, 127, 0.07));
	--aem-pl-row-border: var(--aem-pl-border, rgba(127, 127, 127, 0.22));
	--aem-pl-r: var(--aem-pl-radius, 6px);
	--aem-pl-img: var(--aem-pl-image-width, 90px);
	font: inherit;
	color: inherit;
	margin: 0 0 1.5em;
}

.aem-pl__wrap {
	overflow-x: auto;
	margin: 0 0 1.5em;
	border: 1px solid var(--aem-pl-row-border);
	border-radius: var(--aem-pl-r);
}

.aem-pl .aem-pl__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	font: inherit;
	background: transparent;
}

.aem-pl .aem-pl__table th,
.aem-pl .aem-pl__table td {
	padding: 0.75em 1em;
	border: 0;
	border-bottom: 1px solid var(--aem-pl-row-border);
	text-align: left;
	vertical-align: middle;
	font: inherit;
	background: transparent;
}

.aem-pl .aem-pl__table tbody tr:last-child > * {
	border-bottom: 0;
}

.aem-pl .aem-pl__table thead tr {
	background: var(--aem-pl-header-bg);
}

.aem-pl .aem-pl__table thead th {
	background: var(--aem-pl-header-bg);
	box-shadow: 1px 0 0 var(--aem-pl-header-bg); /* hides sub-pixel seams between header cells */
	color: var(--aem-pl-header-color);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.aem-pl .aem-pl__table tbody tr:nth-child(even) > * {
	background: var(--aem-pl-row-stripe);
}

.aem-pl .aem-pl__table .aem-pl__name {
	font-weight: inherit;
}

.aem-pl .aem-pl__table .aem-pl__price,
.aem-pl .aem-pl__table .aem-pl__th-price {
	text-align: right;
	white-space: nowrap;
	width: 1%;
}

.aem-pl .aem-pl__table .aem-pl__price {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.aem-pl .aem-pl__image {
	width: var(--aem-pl-img);
	padding-right: 0;
}

.aem-pl .aem-pl__image img {
	display: block;
	width: var(--aem-pl-img);
	max-width: none;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--aem-pl-r) / 2);
}

.aem-pl .aem-pl__zoom {
	display: block;
	cursor: zoom-in;
}

.aem-pl__updated {
	margin: 0;
	font-size: 0.875em;
	opacity: 0.75;
}

@media (max-width: 600px) {
	.aem-pl {
		--aem-pl-img: min(var(--aem-pl-image-width, 90px), 56px);
	}
	.aem-pl .aem-pl__table th,
	.aem-pl .aem-pl__table td {
		padding: 0.6em 0.65em;
	}
	/* Narrow screens: the unit may move under the amount; the amount itself never breaks. */
	.aem-pl .aem-pl__table .aem-pl__price {
		white-space: normal;
		width: auto;
	}
	.aem-pl__amount,
	.aem-pl__unit {
		white-space: nowrap;
	}
}

/* Lightbox */
.aem-pl-lightbox {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: 92vw;
	max-height: 92vh;
}

.aem-pl-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.8);
}

.aem-pl-lightbox img {
	display: block;
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
}

.aem-pl-lightbox button {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
