/* Jen's Translate */
.jtr {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.jtr[hidden] { display: none; }

.jtr-fab {
	display: flex; align-items: center; gap: 7px;
	background: #23282d; color: #fff;
	border: 0; border-radius: 24px;
	padding: 9px 15px 9px 13px;
	font-size: 13px; font-weight: 600; line-height: 1;
	cursor: pointer;
	box-shadow: 0 3px 14px rgba(0,0,0,.28);
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.jtr-fab:hover, .jtr-fab:focus-visible {
	background: #000; transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0,0,0,.34);
}
.jtr-fab svg { flex: none; }
.jtr-busy .jtr-fab { opacity: .7; pointer-events: none; }
.jtr-busy .jtr-fab svg { animation: jtr-spin 1s linear infinite; }
@keyframes jtr-spin { to { transform: rotate(360deg); } }

.jtr-panel {
	position: absolute; bottom: calc(100% + 10px); left: 0;
	width: 330px; max-width: calc(100vw - 36px);
	background: #fff; color: #23282d;
	border: 1px solid #e2e0dc; border-radius: 12px;
	box-shadow: 0 14px 44px rgba(0,0,0,.22);
	overflow: hidden;
	display: flex; flex-direction: column;
	max-height: min(70vh, 520px);
}
.jtr-panel[hidden] { display: none; }

.jtr-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 14px 8px;
}
.jtr-title { font-size: 13.5px; }
.jtr-x {
	background: none; border: 0; font-size: 24px; line-height: 1;
	cursor: pointer; color: #787c82; padding: 0 2px;
}
.jtr-x:hover { color: #23282d; }

.jtr-search {
	margin: 0 14px 10px; padding: 8px 11px;
	border: 1px solid #dcdad6; border-radius: 8px;
	font-size: 13px; width: calc(100% - 28px); box-sizing: border-box;
}
.jtr-search:focus { outline: 2px solid #2271b1; outline-offset: -1px; border-color: #2271b1; }

.jtr-list { overflow-y: auto; padding: 0 8px 6px; flex: 1; }
.jtr-opt {
	display: flex; align-items: baseline; gap: 8px;
	width: 100%; text-align: left;
	background: none; border: 0; border-radius: 7px;
	padding: 8px 10px; cursor: pointer; font-size: 13.5px;
	color: #23282d;
}
.jtr-opt:hover, .jtr-opt:focus-visible { background: #f3f1ed; }
.jtr-native { font-weight: 600; }
.jtr-eng { font-size: 11.5px; color: #787c82; }
.jtr-none { padding: 14px 10px; font-size: 13px; color: #787c82; margin: 0; }

.jtr-foot { border-top: 1px solid #f0eeea; padding: 10px 14px 12px; }
.jtr-reset {
	background: none; border: 1px solid #dcdad6; border-radius: 7px;
	padding: 6px 11px; font-size: 12.5px; cursor: pointer; margin-bottom: 7px;
	color: #23282d;
}
.jtr-reset:hover { background: #f3f1ed; }
.jtr-note { font-size: 11px; color: #8a8f94; margin: 0; line-height: 1.45; }

/* the first entry is Filipino — give it a quiet marker so it's easy to spot */
.jtr-opt[lang="tl"] { box-shadow: inset 2px 0 0 #d9b23a; }

@media (max-width: 600px) {
	.jtr { left: 12px; bottom: 12px; }
	.jtr-fab-txt { display: none; }
	.jtr-fab { padding: 11px; border-radius: 50%; }
	.jtr-panel { width: calc(100vw - 24px); }
}

@media print { .jtr { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.jtr-fab { transition: none; }
	.jtr-busy .jtr-fab svg { animation: none; }
}
