html, body {
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif, -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif !important;
}

.ascp-content {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: min(720px, 80vh);
	padding: 0;
	overflow-y: auto;
}

.ascp-header {
	display: flex;
	flex-direction: column;
	padding: 0;
	z-index: 2;
}

.ascp-title {
	margin: 0;
	padding: 22px;
	font-weight: 500;
	font-size: 16px!important;
	line-height: 1.2;
}

.ascp-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 11111;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.ascp-is-open {
	overflow: hidden;
}

.ascp-overlay[hidden] {
	display: none !important;
}

.asc-popup-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 22px;
	overflow: auto;
	background-color: #f5f2ec;
}

.ascp-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 26px;
	border-top: 1px solid #ededed;
	background: #fff;
}

.ascp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.ascp-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(920px, 100%);
	max-height: min(820px, 92vh);
	overflow: hidden;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.ascp-dialog :focus-visible {
	outline: 3px solid #0066cc;
	outline-offset: 2px;
}

.ascp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	border-radius: 10px;
	border: 1px solid currentColor;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	width: 47%;
}

.ascp-button-primary {
	background: #111;
	color: #fff;
	border-radius: 999px;
}

.ascp-button-secondary {
	background: #fff;
	color: #111;
	border: none!important;
	font-weight: normal;
}

html.ascp-suppress-drawers .aomeda-cart-drawer,
html.ascp-suppress-drawers [data-aomeda-cart-drawer],
html.ascp-suppress-drawers .acd-drawer,
html.ascp-suppress-drawers .acd-overlay,
html.ascp-suppress-drawers .cart-widget-side,
html.ascp-suppress-drawers .woodmart-cart-side,
html.ascp-suppress-drawers .wd-side-hidden,
html.ascp-suppress-drawers .xoo-wsc-modal,
html.ascp-suppress-drawers .xoo-wsc-container,
html.ascp-suppress-drawers .woocommerce-mini-cart__drawer,
html.ascp-suppress-drawers .site-header-cart-side {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* BEGIN Product badges tweaks */

.ascp-dialog .apc-product-badges {
	position: static;
	margin: 6px 0 0 0;
}
.ascp-dialog .apc-product-badge {
	padding: 3px;
	border-radius: 3px;
	font-size: 10px;
}

/* END Product badges tweaks */

.ascp-dialog .asc-popup-content .apc-product-card,
.ascp-dialog .asc-popup-content .acd-product-card {
	flex: 0 0 calc((100% - 12px) / 2.43);
}

@media (max-width: 768px) {
	.ascp-overlay {
		align-items: center;
		padding: 10px;
	}

	.ascp-dialog {
		max-height: 90vh;
		border-radius: 18px;
	}
	
	.ascp-dialog .asc-popup-content .apc-product-card,
	.ascp-dialog .asc-popup-content .acd-product-card {
		flex: 0 0 calc((100% - 12px) / 1.43);
		display: flex;
		flex-direction: column;
	}

	.ascp-content {
		padding: 20px;
	}

	.ascp-product {
		flex-basis: 145px;
	}

	.ascp-actions {
		grid-template-columns: 1fr;
		margin: 22px -20px 0;
		padding: 14px 20px;
	}
	
}
