/* Keep existing language controls; feedback lives outside flex-based page headers. */
.language-panel a.is-current-language,
.menu-link-english.is-current-language {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-i18n-loading {
  position: fixed;
  z-index: 2147483000;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  margin: 0;
  padding: 34px 28px;
  transform: translate(-50%, -50%);
  border: 2px solid #8f2437;
  border-radius: 12px;
  color: #2f4356;
  background: #fff;
  box-shadow: 0 16px 56px rgba(24, 39, 52, 0.24);
  font-family: "Noto Sans SKB", "Noto Sans", sans-serif;
  line-height: 1.45;
  text-align: center;
  writing-mode: horizontal-tb;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.site-i18n-loading .site-i18n-loading-close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #2f4356;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.site-i18n-loading .site-i18n-loading-close:hover {
  background: #f5f1e8;
}

.site-i18n-loading .site-i18n-loading-close:focus-visible {
  outline: 2px solid #8f2437;
  outline-offset: 2px;
}

.site-i18n-loading-spinner {
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  margin: 0 0 4px;
  border: 7px solid #e8edf0;
  border-top-color: #8f2437;
  border-radius: 50%;
  animation: skb-language-loading 0.85s linear infinite;
}

.site-i18n-loading-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-i18n-loading-copy {
  display: block;
  font-size: 1.05rem;
}

.site-i18n-status {
  position: fixed;
  z-index: 2147482999;
  bottom: 20px;
  left: 50%;
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 18px;
  transform: translateX(-50%);
  border: 1px solid #8f2437;
  border-radius: 8px;
  color: #2f4356;
  background: #fff;
  box-shadow: 0 6px 24px rgba(24, 39, 52, 0.18);
  font-family: "Noto Sans SKB", "Noto Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  writing-mode: horizontal-tb;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.site-i18n-status[hidden],
.site-i18n-loading[hidden] {
  display: none !important;
}

@keyframes skb-language-loading {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .site-i18n-loading { padding: 28px 22px; }
  .site-i18n-loading-title { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-i18n-loading-spinner { animation: none; }
}
