/* TAI BOGO Progress Popup — Hush branding
 * Palette: cream #fffcf5, ink/indigo #1c1340, blue #0554ff, pink #ff3ea5,
 *          lilac #b79cf5, green #8fd14f, gold #ffb800, lime CTA #c6ff4f
 * Fonts: Fraunces (display), Plus Jakarta Sans (body), Cairo (Arabic)
 */

.tai-bogo-toast,
.tai-bogo-bar {
	--hush-cream:  #fffcf5;
	--hush-ink:    #1c1340;
	--hush-blue:   #0554ff;
	--hush-pink:   #ff3ea5;
	--hush-lilac:  #b79cf5;
	--hush-green:  #8fd14f;
	--hush-gold:   #ffb800;
	--hush-lime:   #c6ff4f;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Arabic gets Cairo. */
.tai-bogo--rtl {
	font-family: 'Cairo', 'Plus Jakarta Sans', -apple-system, sans-serif;
	direction: rtl;
	text-align: right;
}

/* ---------- Toast ---------- */
.tai-bogo-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	width: 350px;
	max-width: calc( 100vw - 40px );
	transform: translateY( 24px );
	opacity: 0;
	pointer-events: none;
	transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.tai-bogo-toast.is-visible {
	transform: translateY( 0 );
	opacity: 1;
	pointer-events: auto;
}
/* RTL toast anchors to the left. */
.tai-bogo-toast:has( .tai-bogo--rtl ) {
	right: auto;
	left: 20px;
}

.tai-bogo-toast__inner {
	position: relative;
	padding: 18px 22px 20px;
	border-radius: 16px;
	color: var(--hush-cream);
	box-shadow: 0 14px 40px rgba( 28, 19, 64, .32 );
	overflow: hidden;
}

/* Progress state — Hush blue -> pink */
.tai-bogo-toast--progress {
	background: linear-gradient( 135deg, var(--hush-blue) 0%, var(--hush-pink) 100% );
}
/* Unlocked / success — ink base with lime CTA accent for the reward moment */
.tai-bogo-toast--unlocked {
	background: linear-gradient( 135deg, var(--hush-ink) 0%, #2e2270 100% );
	color: var(--hush-lime);
	animation: tai-bogo-pop .45s ease;
}
.tai-bogo-toast--unlocked .tai-bogo-toast__line { color: var(--hush-cream); }

@keyframes tai-bogo-pop {
	0%   { transform: scale( .92 ); }
	60%  { transform: scale( 1.03 ); }
	100% { transform: scale( 1 ); }
}

.tai-bogo-toast__title {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 5px;
}
.tai-bogo--rtl .tai-bogo-toast__title {
	font-family: 'Cairo', sans-serif;
	font-weight: 800;
}
.tai-bogo-toast__line {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	opacity: .98;
}
.tai-bogo-toast__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: transparent;
	border: 0;
	color: rgba( 255, 255, 255, .8 );
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}
.tai-bogo--rtl .tai-bogo-toast__close {
	right: auto;
	left: 12px;
}
.tai-bogo-toast__close:hover { color: #fff; }

/* ---------- Progress bar (shared) ---------- */
.tai-bogo-progressbar {
	margin-top: 14px;
	height: 9px;
	border-radius: 20px;
	background: rgba( 255, 255, 255, .28 );
	overflow: hidden;
}
.tai-bogo-progressbar > span {
	display: block;
	height: 100%;
	border-radius: 20px;
	background: var(--hush-lime);
	box-shadow: 0 0 10px rgba( 198, 255, 79, .6 );
	transition: width .5s cubic-bezier(.2,.8,.2,1);
}
.tai-bogo--rtl .tai-bogo-progressbar {
	transform: scaleX( -1 ); /* fill grows from the right in RTL */
}

/* ---------- Persistent cart / checkout bar ---------- */
.tai-bogo-bar {
	margin: 0 0 18px;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .4s ease, opacity .35s ease, margin .4s ease;
}
.tai-bogo-bar.is-visible {
	max-height: 220px;
	opacity: 1;
}

.tai-bogo-bar__inner {
	padding: 16px 22px;
	border-radius: 14px;
	color: var(--hush-cream);
	box-shadow: 0 8px 22px rgba( 28, 19, 64, .16 );
}
.tai-bogo-bar--progress {
	background: linear-gradient( 135deg, var(--hush-blue) 0%, var(--hush-pink) 100% );
}
.tai-bogo-bar--unlocked {
	background: linear-gradient( 135deg, var(--hush-ink) 0%, #2e2270 100% );
	color: var(--hush-lime);
}
.tai-bogo-bar--unlocked .tai-bogo-bar__text span { color: var(--hush-cream); }
.tai-bogo-bar__text {
	font-size: 15px;
	line-height: 1.45;
}
.tai-bogo-bar__text strong {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 700;
	display: inline;
}
.tai-bogo--rtl .tai-bogo-bar__text strong {
	font-family: 'Cairo', sans-serif;
	font-weight: 800;
}

/* Small screens */
@media ( max-width: 480px ) {
	.tai-bogo-toast {
		left: 12px;
		right: 12px;
		width: auto;
	}
}
