.imp-push, .imp-push-bell {
	--imp-push-accent: #0284c7;
	--imp-push-accent-2: #0369a1;
	--imp-push-accent-soft: #e0f2fe;
	--imp-push-on: #0369a1;
	--imp-push-card: #ffffff;
	--imp-push-sunk: #f2f4f7;
	--imp-push-line: #e7eaef;
	--imp-push-text: #1c2027;
	--imp-push-muted: #6b7280;
	--imp-push-shadow: 0 1px 2px rgba(17, 24, 39, .06), 0 22px 48px -18px rgba(17, 24, 39, .35);
	--imp-push-radius: 24px;
	--imp-push-font: inherit;
}

:root[data-theme="dark"] .imp-push, :root[data-theme="dark"] .imp-push-bell,
body.dle_theme_dark .imp-push, body.dle_theme_dark .imp-push-bell,
.imp-push.is-dark, .imp-push-bell.is-dark {
	--imp-push-accent: #0ea5e9;
	--imp-push-accent-2: #0284c7;
	--imp-push-on: #7dd3fc;
	--imp-push-accent-soft: rgba(56, 189, 248, .14);
	--imp-push-card: #1d2229;
	--imp-push-sunk: #262c35;
	--imp-push-line: #313844;
	--imp-push-text: #eef1f5;
	--imp-push-muted: #a3acb9;
	--imp-push-shadow: 0 22px 48px -18px rgba(0, 0, 0, .7);
}

.imp-push, .imp-push * { box-sizing: border-box; }
.imp-push { position: fixed; z-index: 2147483000; direction: rtl; color: var(--imp-push-text); font-family: var(--imp-push-font); font-size: 14px; line-height: 1.8; text-align: right; }
.imp-push [hidden] { display: none !important; }

/* Card: icon, text, buttons */
.imp-push-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 18px; border: 1px solid var(--imp-push-line); border-radius: var(--imp-push-radius); background: var(--imp-push-card); box-shadow: var(--imp-push-shadow); }
.imp-push-icon { display: block; grid-row: span 2; width: 44px; height: 44px; overflow: hidden; border-radius: 14px; background: var(--imp-push-accent-soft); }
.imp-push-icon img { display: block; width: 44px; height: 44px; max-width: none; margin: 0; border: 0; object-fit: cover; }
.imp-push-text { min-width: 0; }
.imp-push-text b { display: block; margin: 0; color: var(--imp-push-text); font-size: 15px; font-weight: 700; line-height: 1.6; }
.imp-push-text p { margin: 2px 0 0; padding: 0; color: var(--imp-push-muted); font-size: 13px; line-height: 1.8; }
.imp-push-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; margin-top: 10px; }

/* Buttons (styled fully here: the skin's own button styles must not leak in) */
.imp-push .imp-push-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; margin: 0; padding: 0 18px; border: 0; border-radius: 999px; background: var(--imp-push-sunk); color: var(--imp-push-text); font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1; text-transform: none; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background .2s, color .2s, transform .15s; }
.imp-push .imp-push-btn:hover { background: var(--imp-push-line); }
.imp-push .imp-push-btn:active { transform: translateY(1px); }
.imp-push .imp-push-btn:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--imp-push-accent-soft); }
.imp-push .imp-push-btn.is-primary { background: linear-gradient(180deg, var(--imp-push-accent), var(--imp-push-accent-2)); color: #fff; }
.imp-push .imp-push-btn.is-primary:hover { filter: brightness(1.06); }
.imp-push .imp-push-btn:disabled { opacity: .6; cursor: default; }

/* The invitation box: slides in at the bottom, the top or the middle of the window */
.imp-push-invite { inset-inline: 16px; width: auto; max-width: 420px; margin-inline: auto; opacity: 0; transition: opacity .25s, transform .25s; }
.imp-push-invite.is-bottom { bottom: 16px; transform: translateY(16px); }
.imp-push-invite.is-top { top: 16px; transform: translateY(-16px); }
.imp-push-invite.is-center { top: 50%; transform: translateY(-50%) scale(.96); }
.imp-push-invite.is-open { opacity: 1; transform: none; }
.imp-push-invite.is-center.is-open { transform: translateY(-50%); }

/* Topics */
.imp-push-topics { grid-column: 1 / -1; margin-top: 8px; }
.imp-push-topics-title { display: block; margin-bottom: 8px; color: var(--imp-push-text); font-size: 13.5px; font-weight: 700; }
.imp-push-topics-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; }
.imp-push .imp-push-topic { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px; border: 1px solid transparent; border-radius: 14px; background: var(--imp-push-sunk); color: var(--imp-push-text); font-size: 13px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s; }
.imp-push .imp-push-topic input { width: 16px; height: 16px; margin: 0; accent-color: var(--imp-push-accent); }
.imp-push .imp-push-topic:has(input:checked) { border-color: var(--imp-push-accent); background: var(--imp-push-accent-soft); }

/* The menu of the bell (placed by push.js next to the bell) */
.imp-push-menu { max-width: calc(100vw - 24px); }
.imp-push-menu .imp-push-card { animation: imp-push-pop .18s ease-out; }
@keyframes imp-push-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The bell: the template's {imp-push-bell} and the floating one */
.imp-push-bell { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--imp-push-sunk); color: var(--imp-push-text); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.imp-push-bell[hidden] { display: none; }
.imp-push-bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.imp-push-bell:hover { transform: translateY(-1px); }
.imp-push-bell:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--imp-push-accent-soft); }
.imp-push-bell[data-state="on"] { background: var(--imp-push-accent-soft); color: var(--imp-push-on); }
.imp-push-bell[data-state="on"] svg { fill: currentColor; fill-opacity: .18; }
.imp-push-bell[data-state="blocked"] { color: var(--imp-push-muted); }
.imp-push-float { position: fixed; bottom: 18px; z-index: 2147482999; width: 50px; height: 50px; background: var(--imp-push-card); box-shadow: var(--imp-push-shadow); }
.imp-push-float.is-left { left: 18px; }
.imp-push-float.is-right { right: 18px; }
.imp-push-float[data-state="off"] { background: linear-gradient(180deg, var(--imp-push-accent), var(--imp-push-accent-2)); color: #fff; }

@media (max-width: 480px) {
	.imp-push-invite { inset-inline: 10px; }
	.imp-push-invite.is-bottom { bottom: 10px; }
	.imp-push-card { padding: 16px; }
	.imp-push .imp-push-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.imp-push-invite, .imp-push-menu .imp-push-card { transition: none; animation: none; }
}

/* Squircle corners where the browser supports them; pills and circles stay round */
@supports (corner-shape: squircle) {
	.imp-push-card, .imp-push-icon, .imp-push .imp-push-topic { corner-shape: squircle; }
	.imp-push-card { border-radius: 34px; }
	.imp-push-icon { border-radius: 20px; }
	.imp-push .imp-push-topic { border-radius: 18px; }
}
