/* ============================================================
   search-select.css — searchable country dropdown
   Shared by the front-end (about.html) and the admin pages.
   Uses literal colors (no CSS vars) so it works in both contexts.
   ============================================================ */
.ss { position: relative; width: 100%; max-width: 640px; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
.ss-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border: 1.5px solid #e7e1d4; border-radius: 8px;
  background: #fff; cursor: pointer; font-size: 15px; color: #26241f; box-sizing: border-box;
}
.ss-trigger:hover { border-color: #8a5a3b; }
.ss-trigger:focus { outline: none; border-color: #8a5a3b; }
.ss-flag { flex: none; line-height: 0; }
.ss-flag img.flag-img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); display: block; }
.ss-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #26241f; }
.ss-caret { color: #999; font-size: 12px; flex: none; }
.ss-panel {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 300;
  background: #fff; border: 1px solid #e7e1d4; border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .14); max-height: 340px;
  flex-direction: column; overflow: hidden;
}
.ss-panel.open { display: flex; }
.ss-input {
  width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid #eee;
  font-size: 15px; outline: none; box-sizing: border-box; font-family: inherit; color: #26241f;
}
.ss-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.ss-list li { display: flex; align-items: center; gap: 9px; padding: 8px 12px; cursor: pointer; font-size: 15px; }
.ss-list li:hover, .ss-list li.on { background: #f3e9df; }
.ss-zh { color: #26241f; }
.ss-en { color: #999; font-size: 13px; margin-left: auto; }
/* front-end rows: English left, localized name right (hidden when English UI) */
.ss-main { color: #26241f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-alt { color: #999; font-size: 13px; margin-left: auto; padding-left: 12px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
