.haneef-reels {
	--haneef-reels-teal: #6f9296;
	--haneef-reels-gold: #dbc78f;
	position: relative;
	z-index: 999999;
}

.haneef-reels__launcher {
	position: fixed;
	right: 24px;
	bottom: 176px;
	display: block;
	width: 76px;
	height: 76px;
	padding: 0;
	overflow: hidden;
	border: 4px solid #f9f6ec;
	border-radius: 50%;
	background: var(--haneef-reels-teal);
	box-shadow: 0 12px 30px rgba(51, 78, 82, .24), 0 0 0 3px var(--haneef-reels-gold);
	cursor: grab;
	touch-action: none;
	animation: haneef-reels-float 3.4s ease-in-out infinite;
	transition: box-shadow .2s ease, transform .2s ease;
}

.haneef-reels__launcher:hover,
.haneef-reels__launcher:focus-visible {
	box-shadow: 0 16px 38px rgba(27, 42, 45, .36), 0 0 0 4px var(--haneef-reels-gold);
}

.haneef-reels__launcher.is-dragging {
	cursor: grabbing;
	animation: none;
	transform: scale(.94);
	box-shadow: 0 7px 18px rgba(27, 42, 45, .42), 0 0 0 4px var(--haneef-reels-gold);
}

.haneef-reels__launcher-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.haneef-reels__launcher::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(137, 174, 177, .18);
	pointer-events: none;
}

.haneef-reels__launcher-icon {
	position: absolute;
	inset: 50% auto auto 50%;
	z-index: 2;
	width: 38px;
	height: 38px;
	margin: -19px 0 0 -19px;
	border-radius: 50%;
	background: rgba(249, 246, 236, .92);
	font-size: 30px;
	line-height: 38px;
	color: #49686d;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .22));
	pointer-events: none;
}

.haneef-reels__viewer {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: grid;
	place-items: center;
	padding: 16px;
}

.haneef-reels__viewer[hidden] {
	display: none;
}

.haneef-reels__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 20, 22, .82);
	backdrop-filter: blur(4px);
}

.haneef-reels__dialog {
	position: relative;
	width: min(420px, calc(100vw - 32px));
	height: min(780px, calc(100dvh - 32px));
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 8px;
	background: #101516;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
	color: #fff;
	isolation: isolate;
	touch-action: none;
}

.haneef-reels__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #101516;
	transition: transform .2s ease, opacity .2s ease;
}

.haneef-reels__shade {
	position: absolute;
	inset: 40% 0 0;
	background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .88));
	pointer-events: none;
	transition: transform .2s ease, opacity .2s ease;
}

.haneef-reels__progress {
	position: absolute;
	top: 12px;
	left: 14px;
	right: 14px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 5px;
	z-index: 3;
}

.haneef-reels__progress span {
	height: 3px;
	border-radius: 3px;
	background: rgba(255, 255, 255, .38);
}

.haneef-reels__progress span.is-active,
.haneef-reels__progress span.is-complete {
	background: #fff;
}

.haneef-reels__icon-button,
.haneef-reels__nav {
	position: absolute;
	z-index: 4;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .45);
	background: rgba(14, 20, 21, .68);
	color: #fff;
	box-shadow: none;
	cursor: pointer;
	backdrop-filter: blur(6px);
}

.haneef-reels__icon-button {
	top: 28px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
}

.haneef-reels__close {
	left: 18px;
}

.haneef-reels__mute {
	right: 18px;
}

.haneef-reels__icon-button .dashicons {
	width: 27px;
	height: 27px;
	font-size: 27px;
}

.haneef-reels__nav {
	inset-inline-end: 14px;
	width: 48px;
	height: 48px;
	margin: 0;
	border-color: rgba(255, 255, 255, .62);
	border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	opacity: 1;
}

.haneef-reels__previous {
	top: calc(50% - 54px);
}

.haneef-reels__next {
	top: calc(50% + 6px);
}

.haneef-reels__nav:hover,
.haneef-reels__nav:focus-visible {
	background: rgba(255, 255, 255, .34);
}

.haneef-reels__nav .dashicons {
	width: 26px;
	height: 26px;
	font-size: 26px;
}

.haneef-reels__love {
	position: absolute;
	inset-inline-end: 18px;
	bottom: 164px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 56px;
	min-height: 64px;
	padding: 7px 5px;
	border: 1px solid rgba(255, 255, 255, .62);
	border-radius: 28px;
	background: rgba(255, 255, 255, .2);
	color: #fff;
	box-shadow: none;
	backdrop-filter: blur(6px);
	cursor: pointer;
}

.haneef-reels__love:hover,
.haneef-reels__love:focus-visible {
	background: rgba(255, 255, 255, .34);
}

.haneef-reels__love .dashicons {
	width: 27px;
	height: 27px;
	font-size: 27px;
	transition: color .18s ease, transform .18s ease;
}

.haneef-reels__love-count {
	min-width: 1ch;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.haneef-reels__love.is-liked .dashicons {
	color: #ff6b82;
	transform: scale(1.12);
}

.haneef-reels__love:disabled {
	cursor: wait;
	opacity: .65;
}

.haneef-reels__content {
	position: absolute;
	right: 24px;
	bottom: 26px;
	left: 24px;
	z-index: 3;
	transition: transform .2s ease, opacity .2s ease;
}

.haneef-reels__dialog.is-leaving-up .haneef-reels__video,
.haneef-reels__dialog.is-leaving-up .haneef-reels__shade,
.haneef-reels__dialog.is-leaving-up .haneef-reels__content {
	transform: translateY(-100%);
	opacity: 0;
}

.haneef-reels__dialog.is-leaving-down .haneef-reels__video,
.haneef-reels__dialog.is-leaving-down .haneef-reels__shade,
.haneef-reels__dialog.is-leaving-down .haneef-reels__content {
	transform: translateY(100%);
	opacity: 0;
}

.haneef-reels__dialog.is-entering-up .haneef-reels__video,
.haneef-reels__dialog.is-entering-up .haneef-reels__shade,
.haneef-reels__dialog.is-entering-up .haneef-reels__content {
	transform: translateY(100%);
	opacity: 0;
	transition: none;
}

.haneef-reels__dialog.is-entering-down .haneef-reels__video,
.haneef-reels__dialog.is-entering-down .haneef-reels__shade,
.haneef-reels__dialog.is-entering-down .haneef-reels__content {
	transform: translateY(-100%);
	opacity: 0;
	transition: none;
}

.haneef-reels__title {
	margin: 0 0 20px;
	color: #fff;
	font-family: inherit;
	font-size: clamp(25px, 5vh, 42px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}

.haneef-reels__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.haneef-reels__action {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 8px 12px;
	border-radius: 7px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	letter-spacing: 0;
}

.haneef-reels__action:hover,
.haneef-reels__action:focus {
	transform: translateY(-1px);
	text-decoration: none;
}

.haneef-reels__whatsapp,
.haneef-reels__whatsapp:hover,
.haneef-reels__whatsapp:focus {
	background: #25d366;
	color: #102719;
}

.haneef-reels__details,
.haneef-reels__details:hover,
.haneef-reels__details:focus {
	background: #fff;
	color: #1d292b;
}

body.haneef-reels-open {
	overflow: hidden;
}

@keyframes haneef-reels-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-7px); }
}

@media (max-width: 600px) {
	.haneef-reels__launcher {
		right: 18px;
		bottom: 168px;
		width: 68px;
		height: 68px;
	}

	.haneef-reels__viewer {
		padding: 0;
	}

	.haneef-reels__dialog {
		width: 100vw;
		height: 100dvh;
		border: 0;
		border-radius: 0;
	}

	.haneef-reels__content {
		right: 18px;
		bottom: max(20px, env(safe-area-inset-bottom));
		left: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.haneef-reels__launcher {
		animation: none;
		transition: none;
	}

	.haneef-reels__action {
		transition: none;
	}

	.haneef-reels__video,
	.haneef-reels__shade,
	.haneef-reels__content {
		transition: none;
	}
}
