/* Heykama Migration Notice — running text + popup */

:root {
	--hkm-bar-bg: #0f172a;
	--hkm-bar-color: #ffffff;
	--hkm-bar-accent: #facc15;
	--hkm-bar-speed: 40s;
}

/* ---------------------------------------------- Running text bar */

.hkm-bar {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px 12px;
	background: var(--hkm-bar-bg);
	color: var(--hkm-bar-color);
	font-size: 14px;
	line-height: 1.4;
	padding: 9px 14px;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.hkm-bar--fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99990;
}

body.admin-bar .hkm-bar--fixed { top: 32px; }

@media screen and (max-width: 782px) {
	body.admin-bar .hkm-bar--fixed { top: 46px; }
}

.hkm-bar__viewport {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
	position: relative;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.hkm-bar__track {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: hkm-marquee var(--hkm-bar-speed) linear infinite;
}

.hkm-bar:hover .hkm-bar__track,
.hkm-bar__track:focus-within { animation-play-state: paused; }

.hkm-bar__item {
	white-space: nowrap;
	padding-right: 64px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	letter-spacing: .2px;
}

.hkm-bar__dot {
	color: var(--hkm-bar-accent);
	font-size: 9px;
	line-height: 1;
}

@keyframes hkm-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.hkm-bar__track { animation: none; width: 100%; }
	/* Tanpa animasi cukup satu salinan teks, ditampilkan penuh. */
	.hkm-bar__item ~ .hkm-bar__item { display: none; }
	.hkm-bar__item { white-space: normal; padding-right: 0; }
	.hkm-bar__viewport { -webkit-mask-image: none; mask-image: none; }
}

.hkm-bar__cta {
	flex: 0 0 auto;
	background: var(--hkm-bar-accent);
	color: #111827 !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 13px;
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
	box-shadow: none !important;
}

.hkm-bar__cta:hover,
.hkm-bar__cta:focus { filter: brightness(1.08); }

.hkm-bar__close {
	flex: 0 0 auto;
	background: transparent;
	border: 0;
	color: inherit;
	opacity: .7;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.hkm-bar__close:hover { opacity: 1; }

.hkm-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%); white-space: nowrap;
}

/* Di layar sempit, tombol CTA memakan terlalu banyak ruang teks berjalan.
   Teks dibuat satu baris penuh, tombol turun ke baris kedua. */
@media (max-width: 700px) {
	.hkm-bar {
		flex-wrap: wrap;
		font-size: 13px;
		padding: 8px 10px;
		justify-content: center;
		text-align: center;
	}
	.hkm-bar__viewport { flex: 0 0 100%; width: 100%; }
	.hkm-bar__cta { font-size: 12px; padding: 6px 14px; }
	.hkm-bar__item { padding-right: 40px; }
	.hkm-bar__close { position: absolute; top: 4px; right: 6px; }
	.hkm-bar--fixed { padding-right: 26px; }
}

@media (max-width: 700px) {
	.hkm-bar--static { position: relative; }
}

/* ---------------------------------------------- Popup */

.hkm-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.hkm-modal[hidden] { display: none; }

.hkm-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, .65);
	backdrop-filter: blur(2px);
	animation: hkm-fade .25s ease both;
}

.hkm-modal__box {
	position: relative;
	background: #fff;
	color: #0f172a;
	width: min(560px, 100%);
	max-height: 86vh;
	overflow-y: auto;
	border-radius: 16px;
	padding: 32px 28px 26px;
	box-shadow: 0 24px 60px rgba(2, 6, 23, .35);
	animation: hkm-pop .28s cubic-bezier(.16, 1, .3, 1) both;
	box-sizing: border-box;
	text-align: left;
}

@keyframes hkm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hkm-pop {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hkm-modal__overlay, .hkm-modal__box { animation: none; }
}

.hkm-modal__x {
	position: absolute;
	top: 10px; right: 12px;
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
}

.hkm-modal__x:hover { color: #0f172a; }

.hkm-modal__badge {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 5px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.hkm-modal__title {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.25;
	color: #0f172a;
}

.hkm-modal__body { font-size: 15px; line-height: 1.65; color: #334155; }
.hkm-modal__body p { margin: 0 0 10px; }
.hkm-modal__body ul { margin: 0 0 10px; padding-left: 20px; }
.hkm-modal__body li { margin-bottom: 6px; }
.hkm-modal__body strong { color: #0f172a; }

.hkm-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.hkm-btn {
	display: inline-block;
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none !important;
	line-height: 1.2;
}

.hkm-btn--primary { background: #0f172a; color: #fff !important; }
.hkm-btn--primary:hover { background: #1e293b; }
.hkm-btn--ghost { background: #f1f5f9; color: #475569 !important; }
.hkm-btn--ghost:hover { background: #e2e8f0; }

@media (max-width: 480px) {
	.hkm-modal__box { padding: 26px 20px 20px; border-radius: 14px; }
	.hkm-modal__title { font-size: 20px; }
	.hkm-btn { width: 100%; text-align: center; }
}

/* ---------------------------------------------- Blok read-only & shortcode */

.hkm-wc-banner {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #9a3412;
	padding: 12px 16px;
	border-radius: 10px;
	margin: 0 0 18px;
	font-size: 14px;
}

.hkm-wc-blocked {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
}

.hkm-inline {
	border: 1px solid #e2e8f0;
	border-left: 4px solid var(--hkm-bar-accent);
	background: #f8fafc;
	border-radius: 12px;
	padding: 20px 22px;
	margin: 24px 0;
}

.hkm-inline__title { margin: 0 0 10px; font-size: 20px; }
