.aura-promotion {
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body, inherit);
}

.aura-promotion[hidden],
html.aura-promotion-is-dismissed [data-aura-promotion] {
	display: none !important;
}

.aura-promotion--topbar {
	position: relative;
	background: var(--wp--preset--color--pine, #163029);
	color: var(--wp--preset--color--cloud, #e4e1e5);
	padding: 10px 58px 10px 20px;
}

.aura-promotion--topbar .aura-promotion__content {
	box-sizing: border-box;
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	justify-content: center;
	margin-inline: auto;
	max-width: 1240px;
	width: 100%;
}

.aura-promotion--topbar .aura-promotion__content > * {
	margin-block: 0;
}

.aura-promotion--topbar .aura-promotion__content > .wp-block-heading {
	color: inherit;
	font-size: clamp(15px, 1.15vw, 18px);
	line-height: 1.35;
}

.aura-promotion--topbar .aura-promotion__content > .wp-block-buttons {
	margin-block: 0;
}

.aura-promotion__close {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 40px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
	width: 40px;
}

.aura-promotion__close > span {
	font-size: 27px;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-1px);
}

.aura-promotion__close:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--cloud, #e4e1e5);
	border-color: var(--wp--preset--color--cloud, #e4e1e5);
	color: var(--wp--preset--color--chocolate, #5e3d32);
}

.aura-promotion__close:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.aura-promotion--bottom-left {
	background: var(--wp--preset--color--cloud, #e4e1e5);
	border: 1px solid rgb(94 61 50 / 20%);
	border-radius: 16px;
	box-shadow: 0 14px 36px rgb(22 48 41 / 22%);
	color: var(--wp--preset--color--pine, #163029);
	left: max(12px, env(safe-area-inset-left, 0px));
	max-width: min(370px, calc(100vw - 24px));
	padding: 24px 56px 24px 24px;
	position: fixed;
	width: 100%;
	z-index: 1100;
}

.aura-promotion--bottom-left .aura-promotion__content > * {
	margin-block: 0;
}

.aura-promotion--bottom-left .aura-promotion__content > * + * {
	margin-block-start: 12px;
}

.aura-promotion--bottom-left .aura-promotion__content > .wp-block-heading {
	color: inherit;
	font-size: clamp(20px, 2vw, 24px);
	line-height: 1.25;
}

.aura-promotion--bottom-left .aura-promotion__content > .wp-block-buttons {
	margin-block-start: 18px;
}

.aura-promotion--bottom-left .aura-promotion__close {
	right: 10px;
	top: 10px;
	transform: none;
}

.aura-promotion--bottom-left .aura-promotion__close:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--chocolate, #5e3d32);
	border-color: var(--wp--preset--color--chocolate, #5e3d32);
	color: var(--wp--preset--color--cloud, #e4e1e5);
}

@media (min-width: 782px) {
	.aura-promotion--bottom-left {
		bottom: 24px;
		left: max(24px, env(safe-area-inset-left, 0px));
	}
}

@media (max-width: 781px) {
	.aura-promotion--bottom-left {
		bottom: calc(var(--aura-mobile-actions-offset, 84px) + env(safe-area-inset-bottom, 0px));
		left: max(12px, env(safe-area-inset-left, 0px));
		max-width: min(360px, calc(100% - 24px));
	}

	.aura-promotion--topbar {
		padding-left: 14px;
		padding-right: 56px;
	}

	.aura-promotion--topbar .aura-promotion__content {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html.aura-promotion-motion-enabled [data-aura-promotion-mode="bottom-left"]:not(.aura-promotion--visible) {
		opacity: 0;
		transform: translate3d(-14px, 16px, 0);
		visibility: hidden;
	}

	.aura-promotion--bottom-left {
		transition: opacity 360ms ease, transform 360ms cubic-bezier(.2, .75, .25, 1), visibility 0s linear 360ms;
	}

	.aura-promotion--bottom-left.aura-promotion--visible {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		visibility: visible;
		transition-delay: 0s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aura-promotion,
	.aura-promotion__close {
		transition: none !important;
	}

	.aura-promotion--bottom-left {
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
	}
}

.editor-styles-wrapper .aura-promotion-editor-preview {
	border: 1px dashed rgb(94 61 50 / 30%);
	border-radius: 10px;
	color: var(--wp--preset--color--pine, #163029);
	padding: 16px;
}

.editor-styles-wrapper .aura-promotion-editor-preview .components-notice {
	margin: 0 0 16px;
}
