@font-face {
	font-family: 'YekanBakh';
	src: url('../fonts/YekanBakh-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'YekanBakh';
	src: url('../fonts/YekanBakh-SemiBold.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'YekanBakh';
	src: url('../fonts/YekanBakh-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.cta-alert-overlay {
	position: fixed;
	inset: 0;
	background: rgba(22, 22, 26, 0.6);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	direction: rtl;
	font-family: 'YekanBakh', Tahoma, Arial, sans-serif;
	/* Brand palette (Toroobche). --cta-alert-color is the admin-configurable
	   accent, seeded from the brand red but left overridable per site. */
	--cta-alert-ink: #16161a;
	--cta-alert-danger: #8e2a3b;
	--cta-alert-success: #2e7d32;
	--cta-alert-color-hover: color-mix(in srgb, var(--cta-alert-color, #d6242f) 82%, black);
}

.cta-alert-hidden {
	display: none !important;
}

.cta-alert-box {
	background: #fff;
	border-radius: 20px;
	max-width: 380px;
	width: 100%;
	padding: 30px 26px;
	position: relative;
	text-align: center;
	box-shadow: 0 24px 60px -12px rgba(22, 22, 26, 0.35), 0 2px 8px rgba(22, 22, 26, 0.08);
	animation: cta-alert-pop 0.32s cubic-bezier(.22, 1, .36, 1);
}

.cta-alert-box.cta-alert-pos-bottom-right {
	position: fixed;
	bottom: 20px;
	left: auto;
	right: 20px;
	margin: 0;
}

.cta-alert-box.cta-alert-pos-bottom-left {
	position: fixed;
	bottom: 20px;
	right: auto;
	left: 20px;
	margin: 0;
}

@keyframes cta-alert-pop {
	from { transform: scale(0.94) translateY(6px); opacity: 0; }
	to { transform: scale(1) translateY(0); opacity: 1; }
}

/*
 * Host themes commonly reset every <button>/[type="submit"]/[type="button"]
 * element (e.g. `.btn, .button, [type="submit"], [type="button"], button {...}`)
 * via an attribute selector, which ties our own single-class selectors on
 * specificity - the tie is then broken by cascade/load order, which we don't
 * control on a third-party site. !important on the properties those resets
 * actually touch (position, background, color, border, padding, min-height,
 * box-shadow, display/flex) is the only reliable way to render the same on
 * every theme. Verified live against a real theme reset that otherwise turned
 * the close button into a normal-flow element (position: relative) and the
 * primary button grey (background: #f1f1f1).
 */
.cta-alert-close {
	position: absolute !important;
	top: 12px;
	left: 12px;
	width: 30px !important;
	height: 30px !important;
	min-height: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: none !important;
	background: #f4f4f5 !important;
	border: none !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #8a8a8f !important;
	transition: background 0.15s ease, color 0.15s ease;
}

.cta-alert-close:hover {
	background: #ececee !important;
	color: var(--cta-alert-ink) !important;
}

.cta-alert-image {
	max-width: 100%;
	max-height: 140px;
	object-fit: contain;
	margin-bottom: 14px;
	border-radius: 10px;
}

.cta-alert-title {
	margin: 0 0 8px;
	font-size: 21px;
	font-weight: 700;
	color: var(--cta-alert-ink);
	line-height: 1.4;
}

.cta-alert-desc {
	margin: 0 0 20px;
	color: #5c5c63;
	font-size: 14px;
	line-height: 1.8;
	font-weight: 400;
}

.cta-alert-field {
	position: relative;
	margin-bottom: 12px;
}

.cta-alert-field-icon {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	color: #a3a3aa;
	pointer-events: none;
}

.cta-alert-input {
	width: 100% !important;
	min-height: 0 !important;
	box-sizing: border-box !important;
	padding: 13px 42px 13px 14px !important;
	border: 1.5px solid #e4e4e7 !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 16px;
	background: #fafafa !important;
	color: var(--cta-alert-ink) !important;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cta-alert-field .cta-alert-input {
	text-align: right;
	padding-right: 42px !important;
}

.cta-alert-input:focus {
	outline: none;
	border-color: var(--cta-alert-color, #d6242f) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta-alert-color, #d6242f) 14%, transparent) !important;
}

.cta-alert-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	text-align: right;
	font-size: 12.5px;
	color: #6b6b72;
	line-height: 1.7;
	margin: 4px 0 14px;
	cursor: pointer;
}

.cta-alert-consent input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.cta-alert-checkbox-box {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1.5px solid #d4d4d8;
	border-radius: 5px;
	background: #fff;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.cta-alert-checkbox-box::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
	transition: opacity 0.1s ease;
}

.cta-alert-consent input:checked ~ .cta-alert-checkbox-box {
	background: var(--cta-alert-color, #d6242f);
	border-color: var(--cta-alert-color, #d6242f);
}

.cta-alert-consent input:checked ~ .cta-alert-checkbox-box::after {
	opacity: 1;
}

.cta-alert-error {
	color: var(--cta-alert-danger, #8e2a3b);
	font-size: 12.5px;
	font-weight: 600;
	min-height: 18px;
	margin: 0 0 8px;
}

.cta-alert-btn {
	display: block !important;
	width: 100% !important;
	min-height: 0 !important;
	flex: none !important;
	background: var(--cta-alert-color, #d6242f) !important;
	color: #fff !important;
	border: none !important;
	padding: 14px 18px !important;
	border-radius: 12px !important;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--cta-alert-color, #d6242f) 60%, transparent) !important;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.cta-alert-btn:hover {
	background: var(--cta-alert-color-hover) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px -6px color-mix(in srgb, var(--cta-alert-color, #d6242f) 65%, transparent) !important;
}

.cta-alert-btn:active {
	transform: translateY(0);
}

.cta-alert-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none !important;
}

.cta-alert-link-btn {
	display: block !important;
	width: 100% !important;
	min-height: 0 !important;
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	box-shadow: none !important;
	color: #8a8a8f !important;
	margin-top: 12px;
	cursor: pointer;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cta-alert-link-btn:hover {
	color: var(--cta-alert-color, #d6242f) !important;
}

.cta-alert-otp-boxes {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 14px;
}

.cta-alert-otp-box {
	width: 42px !important;
	height: 50px !important;
	min-height: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	font-family: inherit;
	border: 1.5px solid #e4e4e7 !important;
	border-radius: 10px !important;
	background: #fafafa !important;
	color: var(--cta-alert-ink) !important;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.cta-alert-otp-box:focus {
	outline: none;
	border-color: var(--cta-alert-color, #d6242f) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta-alert-color, #d6242f) 14%, transparent) !important;
}

.cta-alert-otp-box-filled {
	border-color: color-mix(in srgb, var(--cta-alert-color, #d6242f) 40%, #e4e4e7) !important;
	background: #fff !important;
}

.cta-alert-success-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--cta-alert-success, #2e7d32) 12%, white);
	color: var(--cta-alert-success, #2e7d32);
	border-radius: 50%;
	margin: 0 auto 16px;
	animation: cta-alert-success-pop 0.4s cubic-bezier(.22, 1, .36, 1);
}

@keyframes cta-alert-success-pop {
	from { transform: scale(0.6); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.cta-alert-coupon-box {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px;
	width: 100% !important;
	min-height: 0 !important;
	background: color-mix(in srgb, var(--cta-alert-color, #d6242f) 5%, white) !important;
	border: 2px dashed color-mix(in srgb, var(--cta-alert-color, #d6242f) 55%, transparent) !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	padding: 15px !important;
	font-family: inherit;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--cta-alert-ink) !important;
	margin-bottom: 14px;
	direction: ltr;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.cta-alert-coupon-box:hover {
	background: color-mix(in srgb, var(--cta-alert-color, #d6242f) 9%, white) !important;
	color: var(--cta-alert-ink) !important;
}

.cta-alert-coupon-box-copied {
	border-color: var(--cta-alert-success, #2e7d32);
	color: var(--cta-alert-success, #2e7d32);
}

.cta-alert-copy-icon {
	flex: none;
	color: var(--cta-alert-color, #d6242f);
	opacity: 0.7;
}

.cta-alert-countdown {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--cta-alert-danger, #8e2a3b);
	background: color-mix(in srgb, var(--cta-alert-danger, #8e2a3b) 8%, white);
	padding: 7px 14px;
	border-radius: 999px;
}

.cta-alert-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid #eee;
	border-top-color: var(--cta-alert-color, #d6242f);
	border-radius: 50%;
	margin: 10px auto 16px;
	animation: cta-alert-spin 0.8s linear infinite;
}

@keyframes cta-alert-spin {
	to { transform: rotate(360deg); }
}

.cta-alert-dice-row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 28px;
	margin: 10px 0 20px;
}

.cta-alert-dice-scene {
	width: 58px;
	height: 58px;
	perspective: 400px;
}

.cta-alert-dice-cube {
	position: relative;
	width: 58px;
	height: 58px;
	transform-style: preserve-3d;
	transform: rotateX(-18deg) rotateY(22deg);
	transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1);
}

.cta-alert-dice-cube.cta-alert-dice-rolling {
	animation: cta-alert-dice-roll 0.9s linear;
}

@keyframes cta-alert-dice-roll {
	0% { transform: rotateX(-18deg) rotateY(22deg); }
	100% { transform: rotateX(1098deg) rotateY(1462deg); }
}

.cta-alert-dice-face {
	position: absolute;
	inset: 0;
	width: 58px;
	height: 58px;
	background: #fefefe;
	border: 1px solid #e4e4e7;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02), 0 2px 6px rgba(22, 22, 26, .1);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	padding: 9px;
	box-sizing: border-box;
}

.cta-alert-dice-pip {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--cta-alert-color, #d6242f);
	justify-self: center;
	align-self: center;
	opacity: 0;
}

.cta-alert-face-1 { transform: rotateY(0deg) translateZ(29px); }
.cta-alert-face-2 { transform: rotateY(90deg) translateZ(29px); }
.cta-alert-face-3 { transform: rotateY(180deg) translateZ(29px); }
.cta-alert-face-4 { transform: rotateY(-90deg) translateZ(29px); }
.cta-alert-face-5 { transform: rotateX(90deg) translateZ(29px); }
.cta-alert-face-6 { transform: rotateX(-90deg) translateZ(29px); }

.cta-alert-face-1 .cta-alert-dice-pip:nth-child(5) { opacity: 1; }

.cta-alert-face-2 .cta-alert-dice-pip:nth-child(1),
.cta-alert-face-2 .cta-alert-dice-pip:nth-child(9) { opacity: 1; }

.cta-alert-face-3 .cta-alert-dice-pip:nth-child(1),
.cta-alert-face-3 .cta-alert-dice-pip:nth-child(5),
.cta-alert-face-3 .cta-alert-dice-pip:nth-child(9) { opacity: 1; }

.cta-alert-face-4 .cta-alert-dice-pip:nth-child(1),
.cta-alert-face-4 .cta-alert-dice-pip:nth-child(3),
.cta-alert-face-4 .cta-alert-dice-pip:nth-child(7),
.cta-alert-face-4 .cta-alert-dice-pip:nth-child(9) { opacity: 1; }

.cta-alert-face-5 .cta-alert-dice-pip:nth-child(1),
.cta-alert-face-5 .cta-alert-dice-pip:nth-child(3),
.cta-alert-face-5 .cta-alert-dice-pip:nth-child(5),
.cta-alert-face-5 .cta-alert-dice-pip:nth-child(7),
.cta-alert-face-5 .cta-alert-dice-pip:nth-child(9) { opacity: 1; }

.cta-alert-face-6 .cta-alert-dice-pip:nth-child(1),
.cta-alert-face-6 .cta-alert-dice-pip:nth-child(3),
.cta-alert-face-6 .cta-alert-dice-pip:nth-child(4),
.cta-alert-face-6 .cta-alert-dice-pip:nth-child(6),
.cta-alert-face-6 .cta-alert-dice-pip:nth-child(7),
.cta-alert-face-6 .cta-alert-dice-pip:nth-child(9) { opacity: 1; }

.cta-alert-wheel-wrap {
	position: relative;
	width: 210px;
	height: 210px;
	margin: 4px auto 18px;
}

.cta-alert-wheel-pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 30px;
	line-height: 1;
	color: var(--cta-alert-ink);
	z-index: 2;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}

.cta-alert-wheel {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	position: relative;
	border: 4px solid #fff;
	box-shadow: 0 0 0 3px var(--cta-alert-color, #d6242f), 0 6px 18px rgba(22, 22, 26, .25);
	transform: rotate(0deg);
}

.cta-alert-wheel.cta-alert-wheel-spinning {
	transition: transform 4s cubic-bezier(.17, .67, .16, .99);
}

.cta-alert-wheel-label {
	position: absolute;
	width: 50%;
	height: 50%;
	top: 0;
	left: 50%;
	transform-origin: 0% 100%;
	pointer-events: none;
}

.cta-alert-wheel-label span {
	display: block;
	margin-top: 10px;
	margin-right: -27px;
	width: 54px;
	text-align: center;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 700;
	transform: rotate(90deg);
	word-break: break-word;
}

.cta-alert-dice-result {
	background: color-mix(in srgb, var(--cta-alert-color, #d6242f) 5%, white);
	border: 2px dashed color-mix(in srgb, var(--cta-alert-color, #d6242f) 55%, transparent);
	border-radius: 12px;
	padding: 12px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 400;
	color: #5c5c63;
}

.cta-alert-dice-result strong {
	color: var(--cta-alert-color, #d6242f);
	font-size: 19px;
	font-weight: 700;
}

@media (max-width: 480px) {
	.cta-alert-box {
		padding: 24px 20px;
	}

	.cta-alert-otp-box {
		width: 38px;
	}
}
