/* Amura cart upsell - follows the client's Flashy popup "הצעה חצאית" (300px, #64175E). */
.amura-up {
	--amura-up-purple: #64175e;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	direction: rtl;
	font-family: inherit;
}
/* Woodmart styles every button through :is(.btn, .button, button, [type="button"]) - including
   :hover/:focus variants - and loads after us. So every rule here is scoped under .amura-up, the
   theme's button extras are reset below, and the colours of our buttons carry !important. */
.amura-up button {
	min-height: 0;
	margin: 0;
	border: 0;
	box-shadow: none;
	text-shadow: none;
	letter-spacing: 0;
	text-transform: none;
	font-family: inherit;
	line-height: 1;
	transition: none;
}

.amura-up .amura-up__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 8, 20, .55);
	opacity: 0;
	transition: opacity .2s ease;
}
.amura-up .amura-up__box {
	position: relative;
	box-sizing: border-box;
	/* The creative is 600x1100. Everything that is not the image (padding, button, sizes, message,
	   "no thanks", a margin above and below) takes ~190px, so the image gets the rest of the screen
	   height and the box width follows from its ratio. */
	width: min(300px, 92vw, calc((100vh - 190px) * .5455 + 24px));
	width: min(300px, 92vw, calc((100dvh - 190px) * .5455 + 24px));
	background: #fff;
	padding: 12px 12px 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	text-align: center;
	opacity: 0;
	transform: translateY(12px) scale(.98);
	transition: opacity .2s ease, transform .2s ease;
}
.amura-up.is-in .amura-up__backdrop { opacity: 1; }
.amura-up.is-in .amura-up__box { opacity: 1; transform: none; }
.amura-up .amura-up__close {
	position: absolute;
	top: -14px;
	left: -14px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #111 !important;
	color: #fff !important;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.amura-up .amura-up__pic,
.amura-up .amura-up__pic img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 600 / 1100;
}
.amura-up .amura-up__cta {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	height: 40px;
	border: 0;
	border-radius: 0;
	background: var(--amura-up-purple) !important;
	color: #fff !important;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}
.amura-up .amura-up__sizes {
	/* S -> XXXL left to right, as in her Flashy design */
	direction: ltr;
	display: flex;
	flex-wrap: nowrap; /* one row; the circles shrink with the box instead */
	justify-content: center;
	gap: 6px;
	padding: 12px 0 4px;
}
.amura-up .amura-up__size {
	flex: 0 1 40px;
	width: auto;
	height: auto;
	aspect-ratio: 1 / 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--amura-up-purple) !important;
	color: #fff !important;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
	unicode-bidi: plaintext;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}
.amura-up .amura-up__size:not(.is-oos):hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(100, 23, 94, .35); }
.amura-up .amura-up__size:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.amura-up .amura-up__size.is-picked { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--amura-up-purple); }
.amura-up .amura-up__size.is-oos {
	background:
		linear-gradient(to top right, transparent calc(50% - .75px), rgba(100, 23, 94, .45) calc(50% - .75px), rgba(100, 23, 94, .45) calc(50% + .75px), transparent calc(50% + .75px)),
		#efe4ee !important;
	color: rgba(100, 23, 94, .45) !important;
	cursor: default;
	transform: none;
	box-shadow: none;
}
.amura-up .amura-up__sizes.is-pulse { animation: amura-up-pulse .5s ease 2; }
@keyframes amura-up-pulse {
	50% { transform: scale(1.06); }
}
.amura-up .amura-up__msg {
	min-height: 18px;
	margin: 2px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--amura-up-purple);
}
.amura-up .amura-up__msg.is-error { color: #c62828; }
.amura-up .amura-up__no {
	margin: 0;
	padding: 4px 8px;
	border: 0;
	background: none !important;
	color: #777 !important;
	font: inherit;
	font-size: 12px;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.amura-up.is-busy .amura-up__size { pointer-events: none; opacity: .75; }
.amura-up.is-done .amura-up__sizes,
.amura-up.is-done .amura-up__cta { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
.amura-up .amura-up__box,
.amura-up .amura-up__backdrop,
.amura-up .amura-up__size { transition: none; }
.amura-up .amura-up__sizes.is-pulse { animation: none; }
}
