:root {
	--pr-promotions-modal-color-default: #545963;
	--pr-promotions-modal-color-accent: #3bbfae;
	--pr-promotions-modal-color-borders: #d6dee7;
	--pr-promotions-modal-color-light: #f2f5f8;
	--pr-promotions-modal-color-success: #60b37b;
	--pr-promotions-modal-color-danger: #c04a4a;
}

.pr-promotions-modal * {
	box-sizing: border-box;
}

.pr-promotions-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
}

.pr-promotions-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(2px);
}

.pr-promotions-modal__container {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
}

/* Content */

.pr-promotions-modal__content {
	background: white;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
}

.pr-promotions-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pr-promotions-modal__close:hover {
	background: white;
	transform: scale(1.1);
}

.pr-promotions-modal__close span {
	color: var(--pr-promotions-modal-color-default);
	font-weight: bold;
}

/* Inline Image Variant */

.pr-promotions-modal--modal-image .pr-promotions-modal__content {
	max-width: 600px;
}

.pr-promotions-modal__image {
	text-align: center;
	padding: 0;
}

.pr-promotions-modal__image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.pr-promotions-modal__text {
	padding: 24px;
	text-align: center;
}

.pr-promotions-modal__title {
	margin: 0 0 16px 0;
	font-size: 24px;
	font-weight: 600;
	color: var(--pr-promotions-modal-color-default);
}

.pr-promotions-modal__description {
	color: var(--pr-promotions-modal-color-default);
	line-height: 1.6;
	margin-bottom: 20px;
	opacity: 0.9;
}

/* Background Image Variant */

.pr-promotions-modal--modal-background .pr-promotions-modal__content {
	max-width: 500px;
	min-height: 400px;
}

.pr-promotions-modal__background {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 400px;
	position: relative;
}

.pr-promotions-modal__overlay-content {
	background: rgba(0, 0, 0, 0.7);
	color: white;
	padding: 40px 24px;
	min-height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.pr-promotions-modal--modal-background .pr-promotions-modal__title {
	color: white;
	margin-bottom: 20px;
	font-size: 28px;
	font-weight: 700;
}

.pr-promotions-modal--modal-background .pr-promotions-modal__description {
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 24px;
	font-size: 16px;
}

/* Call to Action */

.pr-promotions-modal__actions {
	padding: 16px;
	text-align: center;
}

.pr-promotions-modal__button.nectar-button {
	margin-bottom: 0 !important;
	border: 0;
	cursor: pointer;
}

.pr-promotions-modal__button:not(.nectar-button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	background-color: var(--pr-promotions-modal-color-accent);
	border: none !important;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
	text-decoration: none !important;
}

.pr-promotions-modal__button:not(.nectar-button):hover {
	background-color: color-mix(in srgb, var(--pr-promotions-modal-color-accent) 80%, #000);
}

.pr-promotions-modal__button:not(.nectar-button):focus-visible {
	outline: 2px solid var(--pr-promotions-modal-color-accent);
	outline-offset: 2px;
}

/* Mobile Responsiveness */

@media (max-width: 768px) {
	.pr-promotions-modal__container {
		max-width: 95vw;
		max-height: 95vh;
	}

	.pr-promotions-modal--modal-image .pr-promotions-modal__content {
		max-width: 95vw;
	}

	.pr-promotions-modal--modal-background .pr-promotions-modal__content {
		max-width: 95vw;
	}

	.pr-promotions-modal__text,
	.pr-promotions-modal__overlay-content {
		padding: 20px;
	}

	.pr-promotions-modal__title {
		font-size: 20px;
	}

	.pr-promotions-modal__button {
		padding: 8px 24px;
		font-size: 14px;
	}
}

/* Animation */

.pr-promotions-modal {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pr-promotions-modal.is-visible {
	opacity: 1;
	visibility: visible;
}

.pr-promotions-modal__container {
	transform: translate(-50%, -50%) scale(0.8);
	transition: transform 0.3s ease;
}

.pr-promotions-modal.is-visible .pr-promotions-modal__container {
	transform: translate(-50%, -50%) scale(1);
}