/*
 * Kuch Sasta Ho Jaye? — compact slide-in teaser + premium offer drawer.
 * Loaded separately from the main stylesheet so the flow stays maintainable.
 */

.asb-offer-panel [hidden],
.asb-offer-overlay[hidden] { display: none !important; }

/* ------------------------------------------------------------ floating widget */
.asb-offer-teaser {
	position: fixed;
	right: 16px;
	top: 50%;
	bottom: auto;
	z-index: 80;
	width: min(320px, calc(100vw - 120px));
	transform: translateY(-50%) translateX(calc(100% + 120px));
	opacity: 0;
	visibility: hidden;
	transition: transform .62s cubic-bezier(.16, .9, .24, 1), opacity .4s ease, visibility .62s;
	font-family: inherit;
}
/* Resting state: 60% of the widget stays tucked off the right edge. */
.asb-offer-teaser.is-visible {
	transform: translateY(-50%) translateX(70%);
	opacity: 1;
	visibility: visible;
	animation: asb-teaser-float 4s ease-in-out infinite;
}
/* Click expands it fully into view. */
.asb-offer-teaser.is-visible.is-revealed {
	transform: translateY(-50%) translateX(0);
}
.asb-offer-teaser.is-hidden {
	transform: translateY(-50%) translateX(calc(100% + 120px));
	opacity: 0;
	visibility: hidden;
}

/* Attention loop while the widget is only peeking. */
.asb-offer-teaser.is-visible:not(.is-revealed) .asb-offer-teaser-main {
	animation: asb-widget-glow 2.4s ease-in-out infinite;
}
.asb-offer-teaser.is-visible:not(.is-revealed) .asb-offer-teaser-tab {
	animation: asb-widget-tab-bob 1.9s ease-in-out infinite;
}
.asb-offer-teaser-tab::after {
	content: "";
	position: absolute;
	inset: -7px;
	border: 2px solid rgba(252, 255, 0, .85);
	border-radius: inherit;
	opacity: 0;
	pointer-events: none;
}
.asb-offer-teaser.is-visible:not(.is-revealed) .asb-offer-teaser-tab::after {
	animation: asb-widget-halo 2.4s ease-out infinite;
}

.asb-offer-teaser-main {
	position: relative;
	display: block;
	width: 100%;
	padding: 12px 14px 12px 12px;
	border: 0;
	border-radius: 24px 16px 16px 24px;
	background: var(--asb-accent, #0877ff);
	color: #fff;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 18px 44px rgba(8, 119, 255, .34), inset 0 0 0 1px rgba(255, 255, 255, .18);
	transition: transform .25s ease, box-shadow .25s ease;
}
.asb-offer-teaser-main:hover { transform: translateY(-2px); box-shadow: 0 22px 52px rgba(8, 119, 255, .46); }
.asb-offer-teaser-main:focus-visible { outline: 3px solid #fcff00; outline-offset: 3px; }

/* Vertical yellow tab with icon + stacked label — the reveal affordance. */
.asb-offer-teaser-tab {
	position: absolute;
	left: -86px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 122px;
	border-radius: 46px 0 0 46px;
	background: var(--asb-accent, #0877ff);
	color: #fcff00;
	text-transform: uppercase;
	font-weight: 900;
	line-height: .86;
	letter-spacing: -.04em;
	text-align: center;
	box-shadow: -10px 6px 22px rgba(8, 119, 255, .28);
	cursor: pointer;
}
.asb-offer-tab-icon {
	display: grid;
	place-items: center;
	width: 28px; height: 28px;
	margin-bottom: 7px;
	border-radius: 50%;
	background: #fcff00;
	color: var(--asb-accent, #0877ff);
	box-shadow: 0 4px 12px rgba(8, 119, 255, .4);
}
.asb-offer-tab-icon .asb-icon { width: 15px; height: 15px; stroke-width: 2.2; }
.asb-offer-teaser-tab > span { font-size: 19px; }
.asb-offer-teaser-tab > span.asb-offer-tab-small { font-size: 14px; margin-top: 3px; letter-spacing: -.05em; }

/* White idle card inside the blue panel. */
.asb-offer-teaser-card {
	display: block;
	padding: 14px;
	border-radius: 14px;
	background: #fff;
	color: var(--asb-ink, #1d2738);
}
.asb-offer-idle-product {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 11px;
	margin-bottom: 11px;
	border-bottom: 1px solid var(--asb-line, #e4e9f0);
}
.asb-offer-idle-product img {
	flex: 0 0 42px;
	width: 42px; height: 42px;
	border-radius: 9px;
	object-fit: cover;
	background: #f3f7fc;
}
.asb-offer-idle-product-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.asb-offer-idle-product-info strong {
	font-size: 11.5px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--asb-ink, #1d2738);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.asb-offer-idle-price { font-size: 12px; font-weight: 900; color: var(--asb-accent, #0877ff); }
.asb-offer-idle-price del { color: var(--asb-muted, #6b7789); font-weight: 600; }
.asb-offer-idle-title {
	display: block;
	font-size: 15px;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--asb-accent, #0877ff);
}
.asb-offer-idle-copy { display: block; margin-top: 6px; font-size: 11.5px; line-height: 1.45; color: var(--asb-muted, #6b7789); }
.asb-offer-idle-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 11px;
	font-size: 11.5px;
	font-weight: 900;
	letter-spacing: .02em;
	color: var(--asb-accent, #0877ff);
}
.asb-offer-idle-cta .asb-icon { width: 14px; height: 14px; }

.asb-offer-teaser-dismiss {
	position: absolute;
	top: -9px;
	right: -9px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 24px; height: 24px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--asb-blue-dark, #082b5b);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(8, 28, 60, .3);
	transition: transform .2s ease, background .2s ease;
}
.asb-offer-teaser-dismiss:hover { transform: scale(1.12); background: #b3122e; }
.asb-offer-teaser-dismiss .asb-icon { width: 12px; height: 12px; }

@keyframes asb-teaser-float {
	0%, 100% { top: 50%; }
	50% { top: calc(50% - 8px); }
}
@keyframes asb-widget-glow {
	0%, 100% { box-shadow: 0 18px 44px rgba(8, 119, 255, .34), 0 0 0 0 rgba(252, 255, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .18); }
	50% { box-shadow: 0 20px 50px rgba(8, 119, 255, .5), 0 0 0 12px rgba(252, 255, 0, 0), inset 0 0 0 1px rgba(255, 255, 255, .28); }
}
@keyframes asb-widget-tab-bob {
	0%, 100% { transform: translateY(-50%); }
	50% { transform: translateY(calc(-50% - 7px)); }
}
@keyframes asb-widget-halo {
	0% { opacity: .9; transform: scale(.92); }
	70%, 100% { opacity: 0; transform: scale(1.28); }
}

/* ------------------------------------------------------------ overlay */
.asb-offer-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: radial-gradient(circle at 80% 20%, rgba(13, 59, 120, .35), rgba(6, 18, 38, .62));
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity .35s ease;
}
.asb-offer-overlay.is-visible { opacity: 1; }

/* ------------------------------------------------------------ premium drawer */
.asb-offer-panel {
	position: fixed;
	top: 14px;
	right: 14px;
	bottom: 14px;
	z-index: 100;
	display: flex;
	flex-direction: column;
	width: 430px;
	max-width: calc(100vw - 28px);
	background: #fff;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 24px;
	box-shadow: 0 28px 80px rgba(6, 18, 38, .38), 0 0 0 1px rgba(13, 59, 120, .06);
	transform: translateX(calc(100% + 30px));
	visibility: hidden;
	transition: transform .55s cubic-bezier(.16, .9, .24, 1), visibility .55s;
	font-family: inherit;
	overflow: hidden;
}
.asb-offer-panel.is-open { transform: translateX(0); visibility: visible; }

.asb-offer-panel-aura {
	position: absolute;
	top: -120px;
	right: -90px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245, 183, 0, .22), rgba(245, 183, 0, 0) 68%);
	pointer-events: none;
}
.asb-offer-panel::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--asb-blue, #0d3b78), var(--asb-gold, #f5b700), var(--asb-blue, #0d3b78));
}

.asb-offer-close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border: 1px solid rgba(13, 59, 120, .1);
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--asb-blue-dark, #082b5b);
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(13, 59, 120, .1);
	transition: background .2s ease, transform .25s ease, color .2s ease;
}
.asb-offer-close:hover { background: var(--asb-blue-dark); color: #fff; transform: rotate(90deg); }
.asb-offer-close .asb-icon { width: 17px; height: 17px; }

.asb-offer-panel-inner {
	position: relative;
	flex: 1;
	overflow-y: auto;
	padding: 26px 30px 34px;
	scrollbar-width: thin;
}

/* Brand strip */
.asb-offer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 18px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--asb-line, #e4e9f0);
}
.asb-offer-brand-mark {
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	border-radius: 10px;
	background: linear-gradient(145deg, var(--asb-blue, #0d3b78), var(--asb-blue-light, #1559a8));
	color: #fff;
}
.asb-offer-brand-mark .asb-icon { width: 17px; height: 17px; }
.asb-offer-brand-text strong { display: block; font-size: 12px; font-weight: 900; color: var(--asb-blue-dark); letter-spacing: .02em; }
.asb-offer-brand-text small { display: block; margin-top: 1px; font-size: 10px; color: var(--asb-muted); }

/* ------------------------------------------------------------ intro */
.asb-offer-intro { text-align: center; padding-top: 18px; }
.asb-offer-kicker {
	display: inline-block;
	padding: 6px 15px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(245, 183, 0, .22), rgba(255, 211, 77, .32));
	color: #8a6200;
	font-size: 10.5px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	box-shadow: inset 0 0 0 1px rgba(245, 183, 0, .28);
}
.asb-offer-intro h2 {
	margin: 16px 0 7px;
	font-size: clamp(24px, 5vw, 32px);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -.025em;
	background: linear-gradient(135deg, var(--asb-blue-dark, #082b5b), var(--asb-blue-light, #1559a8));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.asb-offer-subtitle { margin: 0; color: var(--asb-muted, #6b7789); font-size: 14px; }

/* ------------------------------------------------------------ countdown */
.asb-offer-countdown { margin-top: 28px; }
.asb-offer-count-ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 132px;
	height: 132px;
	margin: 0 auto;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--asb-gold, #f5b700) 0deg, var(--asb-blue-light, #1559a8) 220deg, rgba(13, 59, 120, .1) 220deg);
	box-shadow: 0 16px 40px rgba(13, 59, 120, .22);
}
.asb-offer-count-ring::before {
	content: "";
	position: absolute;
	inset: 7px;
	border-radius: 50%;
	background: #fff;
}
.asb-offer-count {
	position: relative;
	z-index: 1;
	font-size: 60px;
	font-weight: 900;
	line-height: 1;
	color: var(--asb-blue-dark, #082b5b);
}
.asb-offer-count.is-ticking { animation: asb-count-pop .55s cubic-bezier(.2, .8, .3, 1); }
@keyframes asb-count-pop {
	0% { transform: scale(.5); opacity: 0; }
	60% { transform: scale(1.14); opacity: 1; }
	100% { transform: scale(1); opacity: 1; }
}

.asb-offer-progress {
	height: 5px;
	margin: 24px 0 12px;
	border-radius: 99px;
	background: #edf1f6;
	overflow: hidden;
}
.asb-offer-progress-bar {
	display: block;
	width: 100%; height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--asb-gold, #f5b700), var(--asb-blue-light, #1559a8));
	transform-origin: left center;
	transition: transform .95s linear;
}
.asb-offer-progress-bar.is-running { transform: scaleX(0); }
.asb-offer-unlocking { margin: 0; font-size: 12px; font-weight: 600; color: var(--asb-muted, #6b7789); }
.asb-offer-unlocking::after {
	content: '';
	display: inline-block;
	width: 16px;
	text-align: left;
	animation: asb-dots 1.2s steps(4, end) infinite;
}
@keyframes asb-dots {
	0% { content: ''; }
	25% { content: '.'; }
	50% { content: '..'; }
	75%, 100% { content: '...'; }
}

/* ------------------------------------------------------------ revealed offer */
.asb-offer-result { text-align: center; }
.asb-offer-best {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--asb-gold, #f5b700), #ffd34d);
	color: #14284a;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .14em;
	box-shadow: 0 10px 22px rgba(245, 183, 0, .38);
	animation: asb-reveal-down .5s ease both;
}

.asb-offer-product {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0 16px;
	padding: 13px;
	border: 1px solid var(--asb-line, #e4e9f0);
	border-radius: 16px;
	background: linear-gradient(135deg, #fbfdff, #f3f7fc);
	text-align: left;
	animation: asb-reveal-up .55s .08s ease both;
}
.asb-offer-product-image {
	flex: 0 0 82px;
	width: 82px; height: 82px;
	border-radius: 13px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 12px rgba(13, 59, 120, .1);
}
.asb-offer-product-image img { width: 100%; height: 100%; object-fit: contain; }
.asb-offer-product-details { min-width: 0; }
.asb-offer-product-details h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--asb-ink, #1d2738);
}
.asb-offer-seller { font-size: 11.5px; color: var(--asb-muted, #6b7789); }
.asb-offer-seller strong { color: var(--asb-blue, #0d3b78); }

.asb-offer-pricing {
	position: relative;
	padding: 18px;
	border-radius: 16px;
	background: linear-gradient(145deg, #f4fcf7, #eaf8f0);
	border: 1px solid #cdebd8;
	overflow: hidden;
	animation: asb-reveal-up .55s .16s ease both;
}
.asb-offer-pricing::after {
	content: "";
	position: absolute;
	right: -30px; top: -30px;
	width: 110px; height: 110px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(16, 170, 94, .12), transparent 70%);
}
.asb-offer-original > span,
.asb-offer-special > span {
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--asb-muted, #6b7789);
}
.asb-offer-original del {
	display: inline-block;
	margin-top: 4px;
	color: #738196;
	font-size: 18px;
	font-weight: 700;
	text-decoration-color: #b94b55;
	text-decoration-thickness: 2px;
}
.asb-offer-special {
	margin: 10px auto 0;
	padding: 12px 10px;
	border: 1px solid rgba(16, 170, 94, .24);
	border-radius: 12px;
	background: rgba(255, 255, 255, .82);
}
.asb-offer-special > span { color: #38644a; font-size: 11px; }
.asb-offer-special strong {
	display: block;
	margin-top: 3px;
	font-size: clamp(42px, 10vw, 52px);
	font-weight: 900;
	line-height: 1.05;
	color: #0a7a45;
	animation: asb-price-pop .6s .3s cubic-bezier(.2, .8, .3, 1) both;
}
.asb-offer-special .woocommerce-Price-currencySymbol { font-size: .55em; vertical-align: .18em; }
.asb-offer-discount {
	display: inline-block;
	position: relative;
	z-index: 1;
	margin-top: 12px;
	padding: 7px 16px;
	border-radius: 999px;
	background: #d2f3df;
	color: #075b32;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.25;
	box-shadow: inset 0 0 0 1px rgba(16, 170, 94, .2);
}

.asb-offer-support { margin: 17px 0; color: var(--asb-muted, #6b7789); font-size: 13px; }

.asb-offer-accept {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--asb-gold, #f5b700), #ffcb33);
	color: #14284a;
	font-size: 15px;
	font-weight: 900;
	letter-spacing: .05em;
	cursor: pointer;
	box-shadow: 0 14px 30px rgba(245, 183, 0, .4);
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
	animation: asb-reveal-up .55s .24s ease both;
}
.asb-offer-accept::before {
	content: "";
	position: absolute;
	top: 0; left: -60%;
	width: 40%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: skewX(-20deg);
	animation: asb-shimmer 3s ease-in-out infinite;
}
.asb-offer-accept:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(245, 183, 0, .55); }
.asb-offer-accept:disabled { opacity: .65; cursor: wait; transform: none; }
.asb-offer-accept .asb-icon { width: 19px; height: 19px; }
.asb-offer-accept-note { margin: 11px 0 0; font-size: 10.5px; color: var(--asb-muted, #6b7789); }

@keyframes asb-shimmer {
	0%, 55% { left: -60%; }
	85%, 100% { left: 130%; }
}
@keyframes asb-reveal-up {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes asb-reveal-down {
	from { opacity: 0; transform: translateY(-18px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes asb-price-pop {
	0% { opacity: 0; transform: scale(.6); }
	70% { opacity: 1; transform: scale(1.08); }
	100% { transform: scale(1); }
}

/* ------------------------------------------------------------ empty state */
.asb-offer-empty { text-align: center; padding: 46px 10px; }
.asb-offer-empty-icon {
	display: inline-grid;
	place-items: center;
	width: 64px; height: 64px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: linear-gradient(145deg, #eaf2fb, #f6f9fd);
	color: var(--asb-blue, #0d3b78);
}
.asb-offer-empty-icon .asb-icon { width: 30px; height: 30px; }
.asb-offer-empty h3 { font-size: 20px; margin-bottom: 8px; }
.asb-offer-empty p { color: var(--asb-muted, #6b7789); font-size: 14px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
	.asb-offer-panel { width: 400px; }
}
@media (max-width: 600px) {
	.asb-offer-teaser { right: 12px; top: 50%; bottom: auto; width: calc(100vw - 24px); }
	.asb-offer-teaser-tab { display: block; }
	.asb-offer-panel {
		top: 10px; right: 10px; bottom: 10px;
		width: auto;
		max-width: none;
		border-radius: 20px;
	}
	.asb-offer-panel-inner { padding: 22px 20px 28px; }
	.asb-offer-count-ring { width: 118px; height: 118px; }
	.asb-offer-count { font-size: 54px; }
	.asb-offer-special strong { font-size: clamp(40px, 11vw, 48px); }
}

@media (prefers-reduced-motion: reduce) {
	.asb-offer-teaser.is-visible,
	.asb-offer-teaser.is-visible:not(.is-revealed) .asb-offer-teaser-main,
	.asb-offer-teaser.is-visible:not(.is-revealed) .asb-offer-teaser-tab,
	.asb-offer-teaser.is-visible:not(.is-revealed) .asb-offer-teaser-tab::after,
	.asb-offer-count.is-ticking,
	.asb-offer-best,
	.asb-offer-product,
	.asb-offer-pricing,
	.asb-offer-special strong,
	.asb-offer-accept,
	.asb-offer-accept::before { animation: none !important; }
	.asb-offer-panel, .asb-offer-teaser, .asb-offer-overlay { transition-duration: .01ms; }
}
