/* Language flag dropdown */
.cw-lang-wrap { list-style: none; position: relative; z-index: 50; }
.cw-lang { position: relative; display: inline-block; font-family: Arial, Helvetica, sans-serif; }
.cw-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.45);
  border: 1px solid #af7c41;
  color: #f2cf5c;
  padding: 6px 10px;
  cursor: pointer;
  min-width: 140px;
}
.cw-lang-btn img, .cw-lang-menu img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,.2);
}
.cw-lang-btn span { font-size: 12px; }
.cw-lang-caret {
  margin-left: auto;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #f2cf5c;
}
.cw-lang-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 180px;
  background: #0a1624;
  border: 1px solid #af7c41;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
  max-height: 320px;
  overflow-y: auto;
}
.cw-lang.is-open .cw-lang-menu { display: block; }
.cw-lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #e8e2d4 !important;
  text-decoration: none !important;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cw-lang-menu a:hover, .cw-lang-menu a.is-active {
  background: rgba(242,207,92,.12);
  color: #f2cf5c !important;
}
#flags { overflow: visible !important; }

@media screen and (max-width: 600px) {
  .cw-lang {
    width: 100%;
  }
  .cw-lang-btn {
    width: 100%;
    box-sizing: border-box;
  }
  .cw-lang-menu {
    width: 100%;
    min-width: 0;
    left: 0;
    right: 0;
  }
}
