/* Appelajar App — panel pasang & bilah kembali di halaman situs.
   Selektor diawali "html body .apa-ui" dan memakai all:unset supaya gaya tema/Elementor tidak ikut campur. */

html body .apa-ui,
html body .apa-ui * {
	box-sizing: border-box;
}

html body .apa-ui button,
html body .apa-ui a,
html body .apa-ui h2,
html body .apa-ui p,
html body .apa-ui ol,
html body .apa-ui li,
html body .apa-ui small,
html body .apa-ui img {
	all: unset;
	box-sizing: border-box;
}

/* ---------------- panel pasang ---------------- */

html body .apa-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: rgba(18, 53, 42, 0);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	transition: background 0.25s ease;
	font: 400 15px/1.45 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #12352a;
	-webkit-text-size-adjust: 100%;
}

html body .apa-overlay.apa-open {
	background: rgba(18, 53, 42, 0.5);
}

html body .apa-sheet {
	width: 100%;
	max-width: 480px;
	background: #ffffff;
	border-radius: 24px 24px 0 0;
	padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	display: flex;
	flex-direction: column;
	gap: 16px;
	transform: translateY(100%);
	transition: transform 0.25s ease;
	box-shadow: 0 -8px 32px rgba(18, 53, 42, 0.18);
}

html body .apa-open .apa-sheet {
	transform: translateY(0);
}

html body .apa-ui .apa-handle {
	width: 40px;
	height: 5px;
	border-radius: 3px;
	background: #cfe0bd;
	align-self: center;
}

html body .apa-ui .apa-head {
	display: flex;
	gap: 14px;
	align-items: center;
}

html body .apa-ui .apa-icon {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	overflow: hidden; /* all:unset mematikan pemotongan sudut gambar di Chrome */
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 0 0 1px #e3efd1;
}

html body .apa-ui .apa-title {
	display: block;
	margin: 0 0 4px;
	font: 800 20px/1.2 "Plus Jakarta Sans", Roboto, system-ui, sans-serif;
	color: #12352a;
}

html body .apa-ui .apa-sub {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	color: #4d6b5c;
}

html body .apa-ui .apa-steps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	list-style: none;
}

html body .apa-ui .apa-step {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border-radius: 14px;
	background: #f3f8ea;
	color: #2f6b4a;
}

html body .apa-ui .apa-num {
	width: 28px;
	height: 28px;
	border-radius: 14px;
	background: #2f6b4a;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

html body .apa-ui .apa-step-text {
	flex: 1;
	font-size: 15px;
	line-height: 1.4;
	color: #12352a;
}

html body .apa-ui .apa-step-text b {
	font-weight: 700;
}

/* label menu iPhone versi bahasa Inggris, di samping label bahasa Indonesia */
html body .apa-ui .apa-en {
	display: inline-block;
	padding: 0 6px;
	border-radius: 6px;
	background: #e3efd1;
	color: #4d6b5c;
	font: 500 12px/1.6 Roboto, system-ui, -apple-system, sans-serif;
	white-space: nowrap;
	vertical-align: 1px;
}

html body .apa-ui .apa-hint {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	line-height: 1.35;
	color: #4d6b5c;
}

html body .apa-ui .apa-hint b {
	font-weight: 700;
}

html body .apa-ui .apa-toggle {
	width: 40px;
	height: 24px;
	border-radius: 12px;
	background: #34a853;
	position: relative;
	flex-shrink: 0;
}

html body .apa-ui .apa-toggle span {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	border-radius: 10px;
	background: #ffffff;
}

html body .apa-ui .apa-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

html body .apa-ui .apa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: 14px;
	font: 700 16px/1 Roboto, system-ui, sans-serif;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

html body .apa-ui .apa-primary {
	background: #12352a;
	color: #ffffff;
}

html body .apa-ui .apa-ghost {
	color: #2f6b4a;
	min-height: 44px;
}

html body .apa-ui .apa-btn:focus-visible,
html body .apa-ui .apa-bb-btn:focus-visible {
	outline: 3px solid #a8d672;
	outline-offset: 2px;
}

/* ---------------- penunjuk tombol Safari (iPhone/iPad) ---------------- */

html body .apa-guide {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 12px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	font: 400 15px/1.4 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #ffffff;
	-webkit-text-size-adjust: 100%;
}

/* iPhone: di atas bilah alamat Safari, panah menunjuk ke bawah */
html body .apa-guide-bottom {
	bottom: calc(var(--apa-gb, 14px) + env(safe-area-inset-bottom, 0px));
	transform: translateY(12px);
}

/* iPad: bilah Safari ada di atas, panah menunjuk ke atas */
html body .apa-guide-top {
	top: calc(10px + env(safe-area-inset-top, 0px));
	flex-direction: column-reverse;
	align-items: flex-end;
	transform: translateY(-12px);
}

html body .apa-guide.apa-open {
	opacity: 1;
	transform: none;
}

html body .apa-ui .apa-guide-card {
	pointer-events: auto;
	position: relative;
	width: 100%;
	max-width: 380px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 44px 14px 16px;
	border-radius: 18px;
	background: #12352a;
	box-shadow: 0 10px 30px rgba(18, 53, 42, 0.35);
}

html body .apa-ui .apa-guide-main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font: 700 16px/1.3 "Plus Jakarta Sans", Roboto, system-ui, sans-serif;
	color: #ffffff;
}

html body .apa-ui .apa-guide-main svg {
	display: block;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: 8px;
	background: #ffffff;
	color: #12352a;
	box-sizing: content-box;
}

html body .apa-ui .apa-guide-path {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}

html body .apa-ui .apa-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font: 600 13px/1.4 Roboto, system-ui, -apple-system, sans-serif;
	white-space: nowrap;
}

html body .apa-ui .apa-sep {
	color: #a8d672;
	font-weight: 700;
}

html body .apa-ui .apa-guide-note {
	display: block;
	font-size: 12.5px;
	line-height: 1.35;
	color: #cfe0bd;
}

html body .apa-ui .apa-guide-note b {
	font-weight: 700;
	color: #ffffff;
}

html body .apa-ui .apa-guide-x {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	font: 400 24px/1 system-ui, -apple-system, sans-serif;
	color: #cfe0bd;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

html body .apa-ui .apa-guide-x:focus-visible {
	outline: 3px solid #a8d672;
	outline-offset: 2px;
}

html body .apa-ui .apa-guide-arrow {
	display: block;
	width: 0;
	height: 0;
	border-left: 18px solid transparent;
	border-right: 18px solid transparent;
	border-top: 22px solid #12352a;
	margin-top: -1px;
	animation: apa-nudge-down 1s ease-in-out infinite;
}

html body .apa-guide-top .apa-guide-arrow {
	border-top: 0;
	border-bottom: 22px solid #12352a;
	margin: 0 24px -1px 0;
	animation-name: apa-nudge-up;
}

@keyframes apa-nudge-down {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(7px); }
}

@keyframes apa-nudge-up {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-7px); }
}

/* ---------------- bilah kembali (halaman situs di dalam aplikasi) ---------------- */

html.apa-standalone body {
	padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

html body .apa-backbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147482000;
	display: flex;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
	background: #ffffff;
	border-top: 1px solid #cfe0bd;
	font: 500 15px/1 Roboto, system-ui, -apple-system, sans-serif;
}

html body .apa-ui .apa-bb-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	border-radius: 12px;
	background: #f3f8ea;
	color: #12352a;
	font: 700 15px/1 Roboto, system-ui, sans-serif;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
	html body .apa-overlay,
	html body .apa-sheet,
	html body .apa-guide {
		transition: none;
	}

	html body .apa-ui .apa-guide-arrow {
		animation: none;
	}
}
