@font-face {
	font-family: 'YekanBakh';
	src: url('../font/YekanBakhFaNum-VF.woff2') format('woff2-variations'),
		url('../font/YekanBakhFaNum-VF.woff2') format('woff2');
	font-weight: 100 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--jwm-banner-height: 0px;
	--jwm-motion-duration: 300ms;
	--jwm-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 768px) {
	:root {
		--jwm-motion-duration: 150ms;
	}
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--jwm-motion-duration: 0ms;
	}
}

.jwm-topbar-wrapper {
	position: relative;
	width: 100%;
	z-index: 999999;
	contain: layout style;
	box-sizing: border-box;
}

.jwm-topbar-wrapper.is-dismissed {
	display: none;
}

.jwm-topbar {
	position: relative;
	width: 100%;
	z-index: 999999;
	font-family: 'YekanBakh', sans-serif;
	font-weight: 500;
	direction: rtl;
	color: var(--jwm-topbar-color, #ffffff);
	background: var(--jwm-topbar-bg, #0f172a);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.jwm-topbar.is-hidden {
	display: none;
}

.jwm-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1280px;
	height: 42px;
	margin: 0 auto;
	padding: 0 16px;
}

.jwm-topbar-promo {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
	color: var(--jwm-topbar-color, #ffffff);
	text-decoration: none;
	transition: opacity var(--jwm-motion-duration) var(--jwm-motion-ease);
}

.jwm-topbar-promo:hover,
.jwm-topbar-promo:focus {
	color: var(--jwm-topbar-color, #ffffff);
	opacity: 0.92;
	text-decoration: none;
}

.jwm-topbar-promo-static {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--jwm-topbar-color, #ffffff);
}

a.jwm-topbar-promo.jwm-topbar-promo-link {
	cursor: pointer;
	text-decoration: none;
	color: var(--jwm-topbar-color, #ffffff);
}

a.jwm-topbar-promo.jwm-topbar-promo-link:hover,
a.jwm-topbar-promo.jwm-topbar-promo-link:focus,
a.jwm-topbar-promo.jwm-topbar-promo-link:focus-visible {
	color: var(--jwm-topbar-color, #ffffff);
	text-decoration: none;
	opacity: 0.92;
	outline: none;
}

.jwm-topbar-btn-visual {
	pointer-events: none;
	user-select: none;
}

.jwm-banner-socials {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	flex-shrink: 0;
}

.jwm-banner-socials[hidden] {
	display: none !important;
}

.jwm-social-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	color: var(--jwm-social-icon-color, #ffffff);
	background-color: var(--jwm-social-bg-color, rgba(255, 255, 255, 0.15));
	text-decoration: none;
	transition: opacity var(--jwm-motion-duration) var(--jwm-motion-ease), transform var(--jwm-motion-duration) var(--jwm-motion-ease), background-color var(--jwm-motion-duration) var(--jwm-motion-ease);
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.jwm-social-icon-btn:hover,
.jwm-social-icon-btn:focus-visible {
	opacity: 0.88;
	outline: none;
}

.jwm-social-icon-btn:active {
	transform: scale(0.94);
}

.jwm-social-icon-btn svg {
	display: block;
	width: 17px;
	height: 17px;
	max-width: 17px;
	max-height: 17px;
	flex-shrink: 0;
}

.jwm-topbar-text,
.jwm-banner-text {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	color: var(--jwm-topbar-color, #ffffff);
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	text-align: right;
}

#jwm-banner-cta {
	flex-shrink: 0;
}

.jwm-banner-timer-host {
	flex-shrink: 0;
}

.jwm-topbar-btn,
button.jwm-topbar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: var(--jwm-topbar-btn-bg, #10b981);
	color: var(--jwm-topbar-btn-color, #ffffff);
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	text-decoration: none;
	transition: opacity var(--jwm-motion-duration) var(--jwm-motion-ease), transform var(--jwm-motion-duration) var(--jwm-motion-ease);
}

.jwm-topbar-btn-link {
	text-decoration: none;
}

.jwm-topbar-copy-btn.is-copied,
.jwm-topbar-modal-coupon.is-copied {
	opacity: 0.95;
}

.jwm-copy-icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.jwm-topbar-promo:hover .jwm-topbar-btn,
.jwm-topbar-promo:focus .jwm-topbar-btn,
.jwm-topbar-btn:hover,
.jwm-topbar-btn:focus {
	opacity: 0.92;
	transform: translateY(-1px);
	color: var(--jwm-topbar-btn-color, #ffffff);
}

.jwm-topbar-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: 'YekanBakh', sans-serif;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--jwm-motion-duration) var(--jwm-motion-ease);
}

.jwm-topbar-modal.is-open {
	display: flex;
	opacity: 1;
	pointer-events: auto;
	will-change: opacity;
}

.jwm-topbar-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity var(--jwm-motion-duration) var(--jwm-motion-ease);
}

.jwm-topbar-modal.is-open .jwm-topbar-modal-overlay {
	opacity: 1;
}

.jwm-topbar-modal-dialog {
	position: relative;
	width: min(100%, 420px);
	padding: 24px 22px 22px;
	border-radius: 16px;
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
	text-align: right;
	transform: translateY(12px) scale(0.98);
	opacity: 0;
	transition: transform var(--jwm-motion-duration) var(--jwm-motion-ease), opacity var(--jwm-motion-duration) var(--jwm-motion-ease);
}

.jwm-topbar-modal.is-open .jwm-topbar-modal-dialog {
	transform: translateY(0) scale(1);
	opacity: 1;
	will-change: transform, opacity;
}

.jwm-topbar-modal-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.jwm-topbar-modal-close:hover,
.jwm-topbar-modal-close:focus {
	background: #e2e8f0;
	color: #0f172a;
}

.jwm-topbar-modal-title {
	margin: 0 0 12px;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.5;
	color: #0f172a;
}

.jwm-topbar-modal-desc {
	margin: 0 0 16px;
	font-size: 0.9375rem;
	line-height: 1.8;
	color: #475569;
}

.jwm-topbar-modal-desc p {
	margin: 0 0 10px;
}

.jwm-topbar-modal-desc p:last-child {
	margin-bottom: 0;
}

.jwm-topbar-modal-coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	color: #0f172a;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: opacity var(--jwm-motion-duration) var(--jwm-motion-ease);
}

.jwm-topbar-modal-coupon:hover,
.jwm-topbar-modal-coupon:focus {
	border-color: #970a2a;
	background: #fff1f2;
	outline: none;
}

.jwm-topbar-modal-coupon-code {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

body.jwm-topbar-modal-open {
	overflow: hidden;
}

.jwm-topbar-meta {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 12px;
	flex-shrink: 0;
}

.jwm-topbar-timer {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.jwm-topbar-timer.is-expired {
	opacity: 0.65;
}

.jwm-topbar-timer-box {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-width: 28px;
	padding: 2px 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	text-align: center;
	line-height: 1.1;
}

.jwm-topbar-timer-num {
	font-size: 13px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--jwm-topbar-color, #ffffff);
	line-height: 1.1;
}

.jwm-topbar-timer-lbl {
	font-size: 10px;
	font-weight: 500;
	color: var(--jwm-topbar-color, #ffffff);
	opacity: 0.82;
	line-height: 1;
}

.jwm-topbar-timer-sep {
	font-size: 12px;
	font-weight: 500;
	color: var(--jwm-topbar-color, #ffffff);
	opacity: 0.55;
	user-select: none;
	line-height: 1;
}

.jwm-topbar-close {
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: var(--jwm-topbar-color, #ffffff);
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: opacity var(--jwm-motion-duration) var(--jwm-motion-ease);
}

.jwm-topbar-close svg {
	display: block;
	width: 18px;
	height: 18px;
}

.jwm-topbar-close:hover,
.jwm-topbar-close:focus {
	background: rgba(255, 255, 255, 0.28);
	color: var(--jwm-topbar-color, #ffffff);
}

@media (max-width: 640px) {
	.jwm-topbar-inner {
		gap: 10px;
		padding: 0 12px;
	}

	.jwm-topbar-text {
		font-size: 0.8125rem;
	}

	.jwm-topbar-btn {
		height: 26px;
		padding: 0 10px;
		font-size: 0.6875rem;
	}

	.jwm-topbar-meta {
		gap: 8px;
	}

	.jwm-banner-socials {
		gap: 6px;
	}

	.jwm-topbar-timer-box-secs,
	.jwm-topbar-timer-sep-secs {
		display: none;
	}

	.jwm-topbar-timer-num {
		font-size: 12px;
	}

	.jwm-topbar-timer-lbl {
		font-size: 9px;
	}
}

@media (max-width: 480px) {
	.jwm-topbar-inner {
		height: auto;
		min-height: 42px;
		padding: 6px 10px;
	}

	.jwm-topbar-promo {
		gap: 8px;
	}

	.jwm-topbar-text {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 1;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

.jwm-topbar-wrapper button,
.jwm-topbar-wrapper a,
.jwm-topbar-btn,
button.jwm-topbar-btn,
a.jwm-topbar-btn-link,
.jwm-topbar-close,
.jwm-topbar-open-modal,
.jwm-topbar-copy-btn,
.jwm-banner-copy-btn,
.jwm-social-icon-btn,
.jwm-topbar-modal,
.jwm-topbar-modal-overlay,
.jwm-topbar-modal-close,
.jwm-topbar-modal-coupon,
.jwm-topbar-modal-coupon .jwm-copy-icon {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.jwm-topbar-wrapper {
	backface-visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.jwm-topbar-btn,
	.jwm-topbar-modal,
	.jwm-topbar-modal-overlay,
	.jwm-topbar-modal-dialog,
	.jwm-topbar-close,
	.jwm-topbar-modal-coupon {
		transition: none;
	}

	.jwm-topbar-modal.is-open,
	.jwm-topbar-modal.is-open .jwm-topbar-modal-dialog {
		will-change: auto;
	}
}
