/* HiRizzi Translate — language switcher */
.hrzt-switcher { --hrzt-bg: #fff; --hrzt-fg: #1f2328; --hrzt-border: rgba(0,0,0,.14); --hrzt-hover: rgba(0,0,0,.06); --hrzt-accent: #c2185b;
	font-size: 14px; line-height: 1.3; color: var(--hrzt-fg); }
.hrzt-switcher, .hrzt-switcher ul { list-style: none; margin: 0; padding: 0; }
.hrzt-switcher a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.hrzt-flag { font-size: 1.15em; line-height: 1; }

/* Dropdown */
.hrzt-sw-dropdown { position: relative; display: inline-block; }
.hrzt-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
	background: var(--hrzt-bg); border: 1px solid var(--hrzt-border); border-radius: 999px; user-select: none; white-space: nowrap; }
.hrzt-dd > summary::-webkit-details-marker { display: none; }
.hrzt-dd > summary:focus-visible { outline: 2px solid var(--hrzt-accent); outline-offset: 2px; }
.hrzt-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .6; transition: transform .15s; }
.hrzt-dd[open] .hrzt-caret { transform: rotate(180deg); }
.hrzt-dd > ul { position: absolute; z-index: 100000; top: calc(100% + 6px); left: 0; min-width: 190px; max-height: 60vh; overflow: auto;
	background: var(--hrzt-bg); border: 1px solid var(--hrzt-border); border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.hrzt-dd > ul a { padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.hrzt-dd > ul a:hover, .hrzt-dd > ul a:focus-visible { background: var(--hrzt-hover); }
.hrzt-dd > ul .hrzt-current a { font-weight: 600; color: var(--hrzt-accent); }
.hrzt-up .hrzt-dd > ul { top: auto; bottom: calc(100% + 6px); }

/* List / inline */
.hrzt-sw-list li a { padding: 6px 0; }
.hrzt-sw-inline { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hrzt-sw-list .hrzt-current a, .hrzt-sw-inline .hrzt-current a { font-weight: 600; color: var(--hrzt-accent); }

/* Floating */
.hrzt-floating { position: fixed; bottom: 18px; z-index: 99999; }
.hrzt-pos-bottom-right { right: 18px; }
.hrzt-pos-bottom-left { left: 18px; }
.hrzt-pos-bottom-right .hrzt-dd > ul { left: auto; right: 0; }
.hrzt-floating .hrzt-dd > summary { box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* Inside menus */
.hrzt-menu-item .hrzt-dd > summary { border: 0; background: transparent; padding: 0; }

@media (prefers-color-scheme: dark) {
	.hrzt-floating .hrzt-switcher { --hrzt-bg: #1f2328; --hrzt-fg: #f2f2f2; --hrzt-border: rgba(255,255,255,.18); --hrzt-hover: rgba(255,255,255,.08); --hrzt-accent: #f48fb1; }
}
@media (max-width: 600px) {
	.hrzt-floating { bottom: 12px; }
	.hrzt-pos-bottom-right { right: 12px; }
	.hrzt-pos-bottom-left { left: 12px; }
}
[dir="rtl"] .hrzt-dd > ul { left: auto; right: 0; }

/* Google attribution (shown only where Google translations appear) */
.hrzt-attrib { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 12px/1.3 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #5f6368; }
.hrzt-attrib[hidden] { display: none; }
.hrzt-attrib a { color: inherit; text-decoration: underline; }
.hrzt-attrib .hrzt-attrib-badge { display: inline-flex; text-decoration: none; }
.hrzt-attrib img { display: block; height: 16px; width: auto; max-width: none; border: 0; }
.hrzt-floating .hrzt-attrib { margin-top: 6px; justify-content: flex-end; background: rgba(255,255,255,.92); padding: 3px 8px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.hrzt-pos-bottom-left .hrzt-attrib { justify-content: flex-start; }
.hrzt-floating { display: flex; flex-direction: column; align-items: flex-end; }
.hrzt-pos-bottom-left { align-items: flex-start; }
.hrzt-attrib-footer { clear: both; display: flex; justify-content: center; padding: 10px 16px 14px; background: #fff; }
.hrzt-sw-dropdown + .hrzt-attrib, .hrzt-sw-list + .hrzt-attrib, .hrzt-sw-inline + .hrzt-attrib { margin-top: 6px; }
