/* General Texts.
-------------------------------------------------------------- */

.psupsellmaster-text-ellipsis {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


/* General Modal.
-------------------------------------------------------------- */

.psupsellmaster-modal {
	display: none;
	height: 100%;
	left: 0;
	outline: 0;
	overflow-x: hidden;
	overflow-y: auto;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 999999;
}

.psupsellmaster-modal-open {
	overflow: hidden;
}

.psupsellmaster-modal-dialog {
	margin: 0.5rem;
	pointer-events: none;
	position: relative;
	width: auto;
}

.psupsellmaster-modal.psupsellmaster-fade .psupsellmaster-modal-dialog {
	transform: translate( 0, -50px );
	transition: transform 0.3s ease-out;
}

.psupsellmaster-modal.psupsellmaster-show .psupsellmaster-modal-dialog {
	transform: none;
}

.psupsellmaster-modal.psupsellmaster-modal-static .psupsellmaster-modal-dialog {
	transform: scale( 1.02 );
}

.psupsellmaster-modal-dialog-scrollable {
	height: calc( 100% - 1rem );
}

.psupsellmaster-modal-dialog-scrollable .psupsellmaster-modal-content {
	max-height: 100%;
	overflow: hidden;
}

.psupsellmaster-modal-dialog-scrollable .psupsellmaster-modal-body {
	overflow-y: auto;
}

.psupsellmaster-modal-dialog-centered {
	align-items: center;
	display: flex;
	min-height: calc( 100% - 1rem );
}

.psupsellmaster-modal-content {
	background-clip: padding-box;
	background-color: #fff;
	border: 1px solid rgba( 0, 0, 0, 0.2 );
	border-radius: 0.3rem;
	display: flex;
	flex-direction: column;
	outline: 0;
	pointer-events: auto;
	position: relative;
	width: 100%;
}

.psupsellmaster-modal-backdrop {
	background-color: #000;
	height: 100vh;
	left: 0;
	position: fixed;
	top: 0;
	width: 100vw;
	z-index: 999995;
}

.psupsellmaster-modal-backdrop.psupsellmaster-fade {
	opacity: 0;
}

.psupsellmaster-modal-backdrop.psupsellmaster-show {
	opacity: 0.5;
}

.psupsellmaster-modal-header {
	align-items: center;
	border-bottom: 1px solid #dee2e6;
	border-top-left-radius: calc( 0.3rem - 1px );
	border-top-right-radius: calc( 0.3rem - 1px );
	display: flex;
	flex-shrink: 0;
	justify-content: space-between;
	padding: 1rem 1rem;
}

.psupsellmaster-modal-header .psupsellmaster-modal-btn-close {
	margin: -0.5rem -0.5rem -0.5rem auto;
	padding: 0.5rem 0.5rem;
}

.psupsellmaster-modal-header .psupsellmaster-modal-title {
	line-height: 1.5;
	margin-bottom: 0;
}

.psupsellmaster-modal-body {
	flex: 1 1 auto;
	padding: 1rem;
	position: relative;
}

.psupsellmaster-modal-footer {
	align-items: center;
	border-bottom-left-radius: calc( 0.3rem - 1px );
	border-bottom-right-radius: calc( 0.3rem - 1px );
	border-top: 1px solid #dee2e6;
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
	padding: 0.75rem;
}

.psupsellmaster-modal-footer > * {
	margin: 0.25rem;
}

@media (min-width: 576px) {
	.psupsellmaster-modal-dialog {
		margin: 1.75rem auto;
		max-width: 500px;
	}

	.psupsellmaster-modal-dialog-scrollable {
		height: calc( 100% - 3.5rem );
	}

	.psupsellmaster-modal-dialog-centered {
		min-height: calc( 100% - 3.5rem );
	}

	.psupsellmaster-modal-sm {
		max-width: 300px;
	}
}

@media (min-width: 992px) {
	.psupsellmaster-modal-lg,
	.psupsellmaster-modal-xl {
		max-width: 800px;
	}
}

@media (min-width: 1200px) {
	.psupsellmaster-modal-xl {
		max-width: 1140px;
	}
}

.psupsellmaster-modal-fullscreen {
	height: 100%;
	margin: 0;
	max-width: none;
	width: 100vw;
}

.psupsellmaster-modal-fullscreen .psupsellmaster-modal-content {
	border: 0;
	border-radius: 0;
	height: 100%;
}

.psupsellmaster-modal-fullscreen .psupsellmaster-modal-header {
	border-radius: 0;
}

.psupsellmaster-modal-fullscreen .psupsellmaster-modal-body {
	overflow-y: auto;
}

.psupsellmaster-modal-fullscreen .psupsellmaster-modal-footer {
	border-radius: 0;
}

@media (max-width: 575.98px) {
	.psupsellmaster-modal-fullscreen-sm-down {
		height: 100%;
		margin: 0;
		max-width: none;
		width: 100vw;
	}

	.psupsellmaster-modal-fullscreen-sm-down .psupsellmaster-modal-content {
		border: 0;
		border-radius: 0;
		height: 100%;
	}

	.psupsellmaster-modal-fullscreen-sm-down .psupsellmaster-modal-header {
		border-radius: 0;
	}

	.psupsellmaster-modal-fullscreen-sm-down .psupsellmaster-modal-body {
		overflow-y: auto;
	}

	.psupsellmaster-modal-fullscreen-sm-down .psupsellmaster-modal-footer {
		border-radius: 0;
	}
}

@media (max-width: 767.98px) {
	.psupsellmaster-modal-fullscreen-md-down {
		height: 100%;
		margin: 0;
		max-width: none;
		width: 100vw;
	}

	.psupsellmaster-modal-fullscreen-md-down .psupsellmaster-modal-content {
		border: 0;
		border-radius: 0;
		height: 100%;
	}

	.psupsellmaster-modal-fullscreen-md-down .psupsellmaster-modal-header {
		border-radius: 0;
	}

	.psupsellmaster-modal-fullscreen-md-down .psupsellmaster-modal-body {
		overflow-y: auto;
	}

	.psupsellmaster-modal-fullscreen-md-down .psupsellmaster-modal-footer {
		border-radius: 0;
	}
}

@media (max-width: 991.98px) {
	.psupsellmaster-modal-fullscreen-lg-down {
		height: 100%;
		margin: 0;
		max-width: none;
		width: 100vw;
	}

	.psupsellmaster-modal-fullscreen-lg-down .psupsellmaster-modal-content {
		border: 0;
		border-radius: 0;
		height: 100%;
	}

	.psupsellmaster-modal-fullscreen-lg-down .psupsellmaster-modal-header {
		border-radius: 0;
	}

	.psupsellmaster-modal-fullscreen-lg-down .psupsellmaster-modal-body {
		overflow-y: auto;
	}

	.psupsellmaster-modal-fullscreen-lg-down .psupsellmaster-modal-footer {
		border-radius: 0;
	}
}

@media (max-width: 1199.98px) {
	.psupsellmaster-modal-fullscreen-xl-down {
		height: 100%;
		margin: 0;
		max-width: none;
		width: 100vw;
	}

	.psupsellmaster-modal-fullscreen-xl-down .psupsellmaster-modal-content {
		border: 0;
		border-radius: 0;
		height: 100%;
	}

	.psupsellmaster-modal-fullscreen-xl-down .psupsellmaster-modal-header {
		border-radius: 0;
	}

	.psupsellmaster-modal-fullscreen-xl-down .psupsellmaster-modal-body {
		overflow-y: auto;
	}

	.psupsellmaster-modal-fullscreen-xl-down .psupsellmaster-modal-footer {
		border-radius: 0;
	}
}

@media (max-width: 1399.98px) {
	.psupsellmaster-modal-fullscreen-xxl-down {
		height: 100%;
		margin: 0;
		max-width: none;
		width: 100vw;
	}

	.psupsellmaster-modal-fullscreen-xxl-down .psupsellmaster-modal-content {
		border: 0;
		border-radius: 0;
		height: 100%;
	}

	.psupsellmaster-modal-fullscreen-xxl-down .psupsellmaster-modal-header {
		border-radius: 0;
	}

	.psupsellmaster-modal-fullscreen-xxl-down .psupsellmaster-modal-body {
		overflow-y: auto;
	}

	.psupsellmaster-modal-fullscreen-xxl-down .psupsellmaster-modal-footer {
		border-radius: 0;
	}
}


/* Specific modals:
 * Add to Cart.
 * Exit Intent.
-------------------------------------------------------------- */

#psupsellmaster-modal-add-to-cart .psupsellmaster-modal-header .psupsellmaster-modal-btn-close,
#psupsellmaster-modal-exit-intent .psupsellmaster-modal-header .psupsellmaster-modal-btn-close {
	background-color: transparent;
}

#psupsellmaster-modal-add-to-cart .psupsellmaster-modal-footer .psupsellmaster-btn-secondary,
#psupsellmaster-modal-exit-intent .psupsellmaster-modal-footer .psupsellmaster-btn-secondary {
	background-color: #999;
	margin-left: 10px;
}

#psupsellmaster-modal-add-to-cart .psupsellmaster-modal-footer .epv-mp-btn-remove-price-confirm,
#psupsellmaster-modal-exit-intent .psupsellmaster-modal-footer .epv-mp-btn-remove-price-confirm {
	background-color: #dc3545;
	margin-left: 10px;
}

#psupsellmaster-modal-add-to-cart .psupsellmaster-modal-header .psupsellmaster-modal-btn-close svg,
#psupsellmaster-modal-exit-intent .psupsellmaster-modal-header .psupsellmaster-modal-btn-close svg {
	display: block;
	height: 1em;
	margin: 0;
	padding: 0;
	width: 1em;
}


/* Campaigns.
-------------------------------------------------------------- */

.psupsellmaster-campaign-banners {
	margin-bottom: 1rem;
}

.psupsellmaster-campaign-banners .psupsellmaster-image {
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}

.psupsellmaster-campaign-banners .psupsellmaster-banner-desktop {
	display: none;
}

.psupsellmaster-campaign-banners .psupsellmaster-banner-mobile {
	display: block;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
	.psupsellmaster-campaign-banners .psupsellmaster-banner-desktop {
		display: block;
	}

	.psupsellmaster-campaign-banners .psupsellmaster-banner-mobile {
		display: none;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}


/* Campaigns - Prices.
-------------------------------------------------------------- */

.psupsellmaster-campaigns .psupsellmaster-product-prices {
	display: inline;
}

.psupsellmaster-campaigns .psupsellmaster-product-prices .psupsellmaster-product-discounted-price {
	background: transparent;
}

.psupsellmaster-campaigns .psupsellmaster-product-prices .psupsellmaster-product-price + .psupsellmaster-product-discounted-price {
	margin-left: 5px;
}

.psupsellmaster-campaigns .psupsellmaster-product-prices .psupsellmaster-product-price {
	color: red;
}

.psupsellmaster-campaigns .psupsellmaster-product-prices .psupsellmaster-product-discounted-price {
	color: green;
	text-decoration: none;
}


/* Campaigns - Checkout.
-------------------------------------------------------------- */

.psupsellmaster-campaigns #edd_checkout_cart .psupsellmaster-cart-col:last-child {
	text-align: left;
}

.psupsellmaster-campaigns .psupsellmaster-cart-notices {
	list-style: none;
	margin: 0;
}

.psupsellmaster-campaigns .psupsellmaster-cart-notice:last-child {
	margin-bottom: 0;
}
