/* Sangeet Jagat — push notifications UI (N1, Core 0.26.0). Theme tokens → light + dark; art panel keeps the brand's
   night-stage maroon + gold in both modes (decorative, like the Play & Learn card). Opacity/transform only → no layout shift. */
.sj-pushcard {
	position: fixed;
	z-index: 105; /* same layer as the install card: above the bottom bar (100), below header menus (110) */
	left: 12px;
	right: 12px;
	bottom: calc(var(--wp--custom--chrome--bottom-nav, 72px) + env(safe-area-inset-bottom, 0px) + 8px);
	max-width: 460px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 64px 1fr;
	/* 0.26.1: never taller than the free screen (short phones, landscape, zoom) — the text scrolls inside instead of being cut */
	max-height: calc(100vh - var(--wp--custom--chrome--bottom-nav, 72px) - env(safe-area-inset-bottom, 0px) - 96px);
	max-height: calc(100dvh - var(--wp--custom--chrome--bottom-nav, 72px) - env(safe-area-inset-bottom, 0px) - 96px);
	background: var(--sj-surface, #fff);
	color: var(--sj-text, #2a2119);
	border: 1px solid var(--sj-border-strong, rgba(0, 0, 0, .18));
	border-radius: var(--sj-radius-card, 16px);
	box-shadow: 0 12px 36px rgba(42, 33, 25, .22);
	font-family: var(--sj-font-ui, system-ui, sans-serif);
	font-size: .9rem;
	line-height: 1.45;
	overflow: hidden;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
	visibility: hidden;
}
.sj-pushcard.is-in { opacity: 1; transform: none; visibility: visible; transition: opacity .22s ease, transform .22s ease; }
.sj-pushcard.is-in.is-away { opacity: 0; visibility: hidden; pointer-events: none; transform: none; }
@media (min-width: 1024px) {
	.sj-pushcard { left: auto; right: 24px; bottom: 24px; margin: 0; width: 420px; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); }
}
.sj-pushcard__art {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 16px;
	background: radial-gradient(120% 80% at 50% 0%, #8A2A31 0%, #6B1E23 45%, #3E0F13 100%);
}
.sj-pushcard__art svg { width: 44px; height: 44px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.sj-pushcard__bell { transform-origin: 32px 14px; }
.sj-pushcard__wave { opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
	.sj-pushcard.is-in .sj-pushcard__bell { animation: sj-ring 1.4s ease-in-out .5s 1; }
	.sj-pushcard.is-in .sj-pushcard__wave { animation: sj-wave 1.4s ease-in-out .5s 1; }
}
@media (prefers-reduced-motion: reduce) {
	.sj-pushcard, .sj-pushcard.is-in { transition: none; transform: none; }
}
@keyframes sj-ring {
	0%, 100% { transform: rotate(0); }
	15% { transform: rotate(14deg); }
	30% { transform: rotate(-12deg); }
	45% { transform: rotate(8deg); }
	60% { transform: rotate(-5deg); }
	75% { transform: rotate(2deg); }
}
@keyframes sj-wave { 0%, 100% { opacity: .9; } 30% { opacity: .2; } 60% { opacity: 1; } }
.sj-pushcard__body { padding: 12px 40px 12px 12px; min-width: 0; overflow-y: auto; overscroll-behavior: contain; }
.sj-pushcard__kicker { margin: 0 0 2px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sj-text-2, #6b5d50); }
.sj-pushcard__kicker .sj-push__en::before { content: " · "; }
.sj-pushcard__title { margin: 0 0 4px; font-weight: 800; font-size: 1.02rem; line-height: 1.25; color: var(--sj-primary, #6B1E23); }
.sj-pushcard__title span { display: block; }
.sj-pushcard__title .sj-push__en { font-size: .86rem; font-weight: 600; color: var(--sj-text-2, #6b5d50); }
.sj-pushcard p { margin: 0 0 6px; }
.sj-pushcard__close {
	position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--sj-text-2, #6b5d50); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.sj-pushcard__close:hover, .sj-pushcard__close:focus-visible { background: var(--wp--preset--color--tint-primary, rgba(107, 30, 35, .08)); color: var(--sj-primary, #6B1E23); }
.sj-push__en { color: var(--sj-text-2, #6b5d50); font-size: .86em; }
p.sj-push__en, .sj-pushcard p .sj-push__en, .sj-pushpanel p .sj-push__en { display: block; }
.sj-pushcard p span[lang="hi"], .sj-pushpanel p span[lang="hi"] { display: block; }

/* topic chips (real checkboxes, keyboard + screen-reader friendly) */
.sj-push__topics { border: 0; margin: 8px 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sj-push__legend { padding: 0; margin: 0 0 4px; font-size: .78rem; font-weight: 700; color: var(--sj-text-2, #6b5d50); width: 100%; }
.sj-push__legend .sj-push__en::before { content: " · "; }
.sj-push__chip { position: relative; display: inline-flex; align-items: flex-start; gap: 6px; padding: 6px 10px 6px 8px; border: 1px solid var(--sj-border-strong, rgba(0, 0, 0, .18));
	border-radius: 999px; cursor: pointer; font-size: .8rem; line-height: 1.25; background: var(--sj-surface, #fff); max-width: 100%; }
.sj-push__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sj-push__chipbox { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.6px solid var(--sj-text-2, #6b5d50); }
.sj-push__chiptext span { display: block; }
.sj-push__chiptext .sj-push__en { font-size: .72rem; }
.sj-push__chip:has(input:checked) { border-color: var(--sj-primary, #6B1E23); background: var(--wp--preset--color--tint-primary, rgba(107, 30, 35, .08)); }
.sj-push__chip input:checked + .sj-push__chipbox { border-color: var(--sj-primary, #6B1E23); background: var(--sj-primary, #6B1E23)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2 6.8 11 12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sj-push__chip input:focus-visible + .sj-push__chipbox { outline: 2px solid var(--sj-primary, #6B1E23); outline-offset: 2px; }
.sj-push__hint { font-size: .74rem; width: 100%; margin: 2px 0 0 !important; color: var(--sj-text-2, #6b5d50); }
.sj-push__hint a { color: var(--sj-primary, #6B1E23); }

.sj-push__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.sj-push__btn { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 .35em; min-height: 44px; padding: 8px 16px; border-radius: 999px;
	font: inherit; font-weight: 700; font-size: .86rem; line-height: 1.2; cursor: pointer; border: 1.5px solid var(--sj-primary, #6B1E23); }
.sj-push__btn span { display: inline; }
.sj-push__btn .sj-push__en { font-size: .78rem; color: inherit; opacity: .85; }
.sj-push__btn .sj-push__en::before { content: "· "; }
.sj-push__btn--main { background: var(--sj-primary, #6B1E23); color: var(--sj-surface, #fff); }
.sj-push__btn--main:hover, .sj-push__btn--main:focus-visible { filter: brightness(1.08); }
.sj-push__btn--ghost { background: transparent; color: var(--sj-primary, #6B1E23); }
.sj-push__btn--ghost:hover, .sj-push__btn--ghost:focus-visible { background: var(--wp--preset--color--tint-primary, rgba(107, 30, 35, .08)); }
.sj-push__btn:disabled { opacity: .6; cursor: progress; }
.sj-push__fine { font-size: .72rem; color: var(--sj-text-2, #6b5d50); }
.sj-push__fine span { display: inline !important; }
.sj-push__fine .sj-push__en::before { content: " · "; }
.sj-push__msg { font-weight: 600; color: var(--sj-primary, #6B1E23); min-height: 0; }
.sj-push__msg:empty { display: none; }

/* header bell */
button.sj-pushbtn { position: relative; }
button.sj-pushbtn[hidden] { display: none !important; }
.sj-pushbtn__dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--sj-accent, #D9A441);
	box-shadow: 0 0 0 2px var(--sj-surface, #fff); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.sj-pushbtn.is-on .sj-pushbtn__dot { opacity: 1; transform: none; }

/* settings panel: popover under the bell, or inline on /you/ */
.sj-pushpanel { font-family: var(--sj-font-ui, system-ui, sans-serif); font-size: .9rem; line-height: 1.45; color: var(--sj-text, #2a2119); }
.sj-pushpanel--pop { position: fixed; z-index: 112; right: 12px; width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; padding: 14px;
	background: var(--sj-surface, #fff); border: 1px solid var(--sj-border-strong, rgba(0, 0, 0, .18)); border-radius: var(--sj-radius-card, 16px);
	box-shadow: 0 12px 36px rgba(42, 33, 25, .22); }
.sj-pushpanel--inline { padding: 14px; border: 1px solid var(--sj-border-strong, rgba(0, 0, 0, .18)); border-radius: var(--sj-radius-card, 16px); background: var(--sj-surface, #fff); }
.sj-pushpanel__status { margin: 0 0 6px; font-weight: 800; color: var(--sj-text, #2a2119); }
.sj-pushpanel__status.is-on { color: var(--sj-primary, #6B1E23); }
.sj-pushpanel__status .sj-push__en::before { content: " · "; }
.sj-pushpanel__status span { display: inline !important; }
.sj-pushpanel__note { font-size: .8rem; color: var(--sj-text-2, #6b5d50); margin-top: 6px; }

/* 0.26.1 compact card: buttons side by side, one line each */
.sj-pushcard .sj-push__actions { flex-wrap: nowrap; margin: 8px 0 2px; }
.sj-pushcard .sj-push__btn { min-height: 40px; padding: 6px 14px; white-space: nowrap; flex-wrap: nowrap; font-size: .84rem; }
.sj-pushcard .sj-push__btn--ghost { border-color: var(--sj-border-strong, rgba(0, 0, 0, .18)); }
.sj-pushcard p.sj-push__en, .sj-pushcard #sj-pushcard-d .sj-push__en { font-size: .8rem; }
@media (max-width: 359px) {
	.sj-pushcard { grid-template-columns: 48px 1fr; }
	.sj-pushcard__art svg { width: 36px; height: 36px; }
	.sj-pushcard .sj-push__btn .sj-push__en { display: none; } /* very narrow phones: Hindi label only, English stays in the text */
}
