[hidden].cwt-switcher, .cwt-switcher [hidden] { display: none !important; }
/* CW Translate — 語言切換器 */
.cwt-switcher { position: relative; display: inline-block; font-size: 15px; line-height: 1.4; }
.cwt-switcher ul { list-style: none; margin: 0; padding: 0; }
.cwt-switcher a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; white-space: nowrap; }
.cwt-flag { font-size: 1.1em; line-height: 1; }
.cwt-code { font-weight: 600; letter-spacing: .02em; }

.cwt-dd summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 6px 4px; white-space: nowrap; }
.cwt-dd summary::-webkit-details-marker { display: none; }
.cwt-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-inline-start: 2px; opacity: .7; }
.cwt-dd[open] .cwt-caret { transform: translateY(1px) rotate(-135deg); }
.cwt-dd ul { position: absolute; top: 100%; inset-inline-end: 0; z-index: 9999; min-width: 170px; padding: 6px; background: #fff; color: #1d2330; border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06); }
.cwt-dd li a { padding: 8px 10px; border-radius: 6px; }
.cwt-dd li a:hover, .cwt-dd li a:focus-visible { background: #f1f3f5; }
.cwt-dd li.is-current a { font-weight: 600; }

.cwt-switcher--list ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cwt-switcher--list li.is-current a { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.cwt-menu-item { display: flex; align-items: center; }
.cwt-in-menu .cwt-dd summary { padding: 0 1em; min-height: 100%; }

.cwt-floating { position: fixed; bottom: 20px; z-index: 9998; background: #fff; color: #1d2330; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.16); padding: 2px 12px; }
.cwt-floating--bottom-right { right: 20px; }
.cwt-floating--bottom-left { left: 20px; }
.cwt-floating .cwt-dd ul { top: auto; bottom: calc(100% + 8px); }
.cwt-floating--bottom-left .cwt-dd ul { inset-inline-end: auto; inset-inline-start: 0; }

/* 瀏覽器語言提示條 */
.cwt-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px 48px; background: #1d2330; color: #fff; font-size: 15px; line-height: 1.4; }
.cwt-bar[hidden] { display: none !important; }
.admin-bar .cwt-bar { top: 32px; }
.cwt-bar-go { display: inline-block; padding: 5px 14px; border-radius: 999px; background: #fff; color: #1d2330 !important; text-decoration: none !important; font-weight: 600; white-space: nowrap; }
.cwt-bar-go:hover, .cwt-bar-go:focus-visible { background: #e8eefd; }
.cwt-bar-close { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; padding: 0; }
.cwt-bar-close:hover, .cwt-bar-close:focus-visible { background: rgba(255,255,255,.15); }
@media (max-width: 782px) { .admin-bar .cwt-bar { top: 46px; } }
