#nbp-bar {
	background: var(--nbp-bg, #0f172a);
	color: var(--nbp-text, #fff);
	font-size: var(--nbp-font-size, 15px);
	width: 100%;
	z-index: 99999;
	box-sizing: border-box;
	font-family: inherit;
	direction: rtl;
	transition: transform .35s ease, opacity .35s ease;
}
#nbp-bar.nbp-sticky.nbp-position-top { position: sticky; top: 0; }
#nbp-bar.nbp-sticky.nbp-position-bottom { position: sticky; bottom: 0; }


body.admin-bar #nbp-bar.nbp-position-top.nbp-sticky {
	top: 32px;
	z-index: 99;
}
@media (max-width: 782px) {
	body.admin-bar #nbp-bar.nbp-position-top.nbp-sticky {
		top: 46px;
	}
}


#nbp-bar.nbp-closing {
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
}
#nbp-bar.nbp-position-bottom.nbp-closing { transform: translateY(100%); }



#nbp-bar.nbp-hidden {
	display: none !important;
}

#nbp-bar * { box-sizing: border-box; }


#nbp-popup-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .2);
	backdrop-filter: blur(5px);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .25s ease;
	box-sizing: border-box;
}
#nbp-popup-overlay.nbp-popup-visible { opacity: 1; }
#nbp-popup-overlay.nbp-closing { opacity: 0; pointer-events: none; }
#nbp-popup-overlay.nbp-hidden { display: none !important; }

#nbp-bar.nbp-is-popup {
	width: 100%;
	max-width: var(--nbp-popup-width, 420px);
	border-radius: 16px;
	box-shadow: 0 25px 70px -30px rgba(0, 0, 0, .4);
	position: relative;
	z-index: auto;
	transform: scale(.94);
	transition: transform .25s ease;
}
#nbp-popup-overlay.nbp-popup-visible #nbp-bar.nbp-is-popup {
	transform: scale(1);
}

.nbp-is-popup .nbp-inner {
	max-width: none !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	gap: 16px !important;
	padding: 50px 24px 26px !important;
}
.nbp-is-popup .nbp-messages {
	flex: none !important;
	width: 100% !important;
}


.nbp-is-popup .nbp-messages:not(.nbp-marquee-mode) {
	height: auto !important;
	overflow: visible !important;
}
.nbp-is-popup .nbp-messages.nbp-marquee-mode {
	height: 1.8em !important;
	overflow: hidden !important;
}
.nbp-is-popup .nbp-messages-track {
	position: static;
}
.nbp-is-popup .nbp-message-item {
	position: static;
	opacity: 1;
	visibility: visible;
	white-space: normal;
	display: none;
}
.nbp-is-popup .nbp-message-item.nbp-active { display: block; }
.nbp-is-popup .nbp-extras { flex-direction: column; width: 100%; align-items: center; gap: 14px; }
.nbp-is-popup .nbp-group { flex-direction: column; width: 100%; align-items: center; }
.nbp-is-popup .nbp-cta-btn { width: 100%; text-align: center; }
.nbp-is-popup .nbp-timer { justify-content: center; }
.nbp-is-popup .nbp-coupon { justify-content: center; }

.nbp-popup-close {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
}

@media (max-width: 480px) {
	#nbp-popup-overlay { padding: 14px; }
	.nbp-is-popup .nbp-inner { padding: 30px 18px 20px !important; gap: 12px !important; }
}

.nbp-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

/* پیام‌های متحرک */
.nbp-messages {
	flex: 1 1 260px;
	overflow: hidden;
	position: relative;
	height: 1.6em;
	min-width: 0;
}
.nbp-messages-track {
	position: relative;
	height: 100%;
}
.nbp-message-item {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	visibility: hidden;
}
.nbp-message-item.nbp-active {
	opacity: 1;
	visibility: visible;
}

.nbp-fade .nbp-message-item {
	transition: opacity .5s ease;
}

.nbp-slide .nbp-message-item {
	transition: transform .5s ease, opacity .5s ease;
	transform: translateY(15px);
}
.nbp-slide .nbp-message-item.nbp-active {
	transform: translateY(0);
}



.nbp-messages.nbp-marquee-mode {
	overflow: hidden;
	height: 1.8em;
}
.nbp-marquee-track {
	position: absolute;
	top: 0;
	white-space: nowrap;
	will-change: transform;
	animation-name: nbp-marquee-move;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.nbp-marquee-track .nbp-item-wrap {
	display: inline-block;
	margin-inline-end: var(--nbp-msg-gap, 40px);
}
@keyframes nbp-marquee-move {
	from { transform: translateX(-100%); }
	to   { transform: translateX(100%); }
}
.nbp-messages.nbp-marquee-mode:hover .nbp-marquee-track {
	animation-play-state: paused;
}


.nbp-extras {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.nbp-group {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}


.nbp-timer {
	display: flex;
	gap: 6px;
	align-items: center;
}
.nbp-timer-box {
	background: var(--nbp-timer-bg, rgba(255,255,255,.12));
	color: var(--nbp-timer-text);
	border-radius: 6px;
	padding: 5px 8px;
	text-align: center;
	min-width: 40px;
	line-height: 1.1;
}
.nbp-timer-box span {
	display: block;
	font-weight: 700;
	font-size: 1.05em;
}
.nbp-timer-box small {
	display: block;
	font-size: .65em;
	opacity: .8;
}


.nbp-coupon {
	display: flex;
	align-items: stretch;
	gap: 8px;
	background: rgba(255,255,255,.08);
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px dashed rgba(255,255,255,.4);
}
.nbp-coupon-label {
	display: flex;
	align-items: center;
	font-size: .85em;
	opacity: .9;
}
.nbp-coupon-code {
	display: flex;
	align-items: center;
	font-weight: 800;
	letter-spacing: 1px;
	background: var(--nbp-accent, #f59e0b);
	color: var(--nbp-accent-text, #111827);
	padding: 3px 10px;
	border-radius: 5px;
}
.nbp-copy-btn {
	border: none;
	cursor: pointer;
	background: var(--nbp-accent, #f59e0b);
	color: var(--nbp-accent-text, #111827);
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 5px;
	font-size: .85em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: filter .2s ease, transform .1s ease, background .2s ease;
}
.nbp-copy-btn .nbp-icon { flex-shrink: 0; }
.nbp-copy-btn:hover { filter: brightness(1.08); }
.nbp-copy-btn:active { transform: scale(.96); }
.nbp-copy-btn.nbp-copied { background: #16a34a; color: #fff; }


.nbp-copy-btn.nbp-icon-only {
	gap: 0;
	/* aspect-ratio: 1 / 1; */
	width: auto;
}


.nbp-cta-btn {
	background: var(--nbp-accent, #f59e0b);
	color: var(--nbp-accent-text, #111827) !important;
	text-decoration: none !important;
	font-weight: 700;
	padding: 7px 16px;
	border-radius: 6px;
	font-size: .9em;
	white-space: nowrap;
}


.nbp-remaining {
	display: flex;
	align-items: center;
	background: var(--nbp-remaining-bg);
	color: var(--nbp-remaining-text);
	font-size: .8em;
	font-weight: 700;
	padding: 0 10px;
	border-radius: 20px;
	white-space: nowrap;
	animation: nbp-remaining-pulse 1.8s ease-in-out infinite;
}
@keyframes nbp-remaining-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .6; }
}


.nbp-close-btn {
	background: rgba(255,255,255,.12);
	border: none;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: .85;
	padding: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .15s ease, background .15s ease;
	flex-shrink: 0;
}
.nbp-close-btn:hover { opacity: 1; background: rgba(255,255,255,.22); }


.nbp-simple-mode .nbp-inner { padding-top: 8px; padding-bottom: 8px; }
.nbp-simple-mode .nbp-messages { font-size: 1.02em; }



.nbp-bar.nbp-mobile-ua .nbp-inner { padding: 9px 14px; gap: 8px; }

.nbp-bar.nbp-mobile-ua { font-size: calc(var(--nbp-font-size, 15px) - 1px); }

.nbp-bar.nbp-mobile-ua .nbp-messages,
.nbp-bar.nbp-mobile-ua .nbp-marquee-track { font-size: .96em; }

.nbp-bar.nbp-mobile-ua .nbp-messages { flex: 1 1 100%; height: 1.5em; }

.nbp-bar.nbp-mobile-ua .nbp-extras {
	flex: 1 1 100%;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 2px;
}


.nbp-bar.nbp-mobile-ua .nbp-group-timer-coupon,
.nbp-bar.nbp-mobile-ua .nbp-group-cta-close {
	display: contents;
}
.nbp-bar.nbp-mobile-ua .nbp-close-btn { order: 4; }
.nbp-bar.nbp-mobile-ua .nbp-timer { order: 2; }
.nbp-bar.nbp-mobile-ua .nbp-coupon { order: 3; }
.nbp-bar.nbp-mobile-ua .nbp-remaining { order: 4; }
.nbp-bar.nbp-mobile-ua .nbp-cta-btn { order: 5; flex: 1 1 100%; text-align: center; }

.nbp-bar.nbp-mobile-ua .nbp-timer { gap: 4px; }
.nbp-bar.nbp-mobile-ua .nbp-timer-box { min-width: 34px; padding: 4px 6px; border-radius: 5px; }
.nbp-bar.nbp-mobile-ua .nbp-timer-box span { font-size: 1em; }
.nbp-bar.nbp-mobile-ua .nbp-timer-box small { font-size: .6em; }
.nbp-bar.nbp-mobile-ua .nbp-coupon { padding: 5px 10px; border-radius: 24px; }
.nbp-bar.nbp-mobile-ua .nbp-coupon-code { font-size: .92em; letter-spacing: .5px; }
.nbp-bar.nbp-mobile-ua .nbp-copy-btn { border-radius: 20px; font-size: .82em; }
.nbp-bar.nbp-mobile-ua .nbp-cta-btn { padding: 9px 16px; border-radius: 24px; }

@media (max-width: 782px) {
	#nbp-bar { font-size: calc(var(--nbp-font-size, 15px) - 1px); }
	.nbp-inner { padding: 9px 14px; gap: 8px; }

	.nbp-messages { flex: 1 1 100%; height: 1.5em; font-size: .96em; }
	.nbp-marquee-track { font-size: .96em; }

	.nbp-extras { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 2px; }
	.nbp-group-timer-coupon, .nbp-group-cta-close { display: contents; }
	.nbp-close-btn { order: 1; }
	.nbp-timer { order: 2; }
	.nbp-coupon { order: 3; }
	.nbp-remaining { order: 4; }
	.nbp-cta-btn { order: 5; flex: 1 1 100%; text-align: center; }

	.nbp-timer { gap: 4px; }
	.nbp-timer-box { min-width: 34px; padding: 4px 6px; border-radius: 5px; }
	.nbp-timer-box span { font-size: 1em; }
	.nbp-timer-box small { font-size: .6em; }

	.nbp-coupon { padding: 5px 10px; border-radius: 24px; }
	.nbp-coupon-code { font-size: .92em; letter-spacing: .5px; }
	.nbp-copy-btn { border-radius: 20px; font-size: .82em; }

	.nbp-cta-btn { padding: 9px 16px; border-radius: 24px; }
}

@media (max-width: 380px) {
	.nbp-coupon-label { display: none; }
}
.nbp-bar.nbp-mobile-ua .nbp-coupon-label { display: none; }
