.ciwi_container {
  min-width: 100px;
  right: auto;
  top: auto;
  position: fixed; /* 改为相对屏幕的位置 */
  height: auto;
  display: block;
  z-index: 9999999999;
}

.selector_box {
  flex-direction: column;
  position: absolute;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  gap: 10px;
  width: 100%;
}

.close_button_wrapper {
  display: flex; /* 居中对齐图标 */
  width: 100%;
  justify-content: flex-end;
}

.selector_box_close_button {
  width: 16px; /* 给按钮固定宽度 */
  height: 16px; /* 给按钮固定高度 */
  display: flex; /* 居中对齐图标 */
  align-items: center;
  justify-content: center;
  background: transparent; /* 背景透明 */
  border: none; /* 去掉边框 */
  padding: 0;
  cursor: pointer;
  font-size: 20px; /* 如果是文字 × */
  font-weight: bold;
  color: #000; /* 图标颜色 */
}

.ciwi_main_box {
  min-width: 150px;
  position: relative;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  gap: 8px;
  height: 40px; /* 明确设置高度 */
  text-align: center; /* 文本居中 */
}

.main_box_text {
  display: inline-block;
  line-height: 20px; /* 与图片高度一致 */
  vertical-align: middle;
  padding: 0;
  font-size: 14px; /* 明确设置字体大小 */
  /* overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; */
  text-align: center; /* 文本居中 */
  flex: 1; /* 让文本占据剩余空间 */
}

.mainarrow_icon {
  position: absolute;
  right: 10px; /* 改用右侧固定距离 */
  transition: transform 0.3s ease; /* 平滑过渡 */
  width: 10% !important;
  height: 25% !important;
  transform-origin: center center; /* 设置旋转中心点为图标中心 */
}

.button_wrapper {
  display: flex; /* 启用 Flexbox 布局 */
  align-items: center; /* 垂直居中按钮 */
  width: 100%; /* 使容器占满父元素的宽度 */
  flex-direction: column;
  gap: 8px;
}

.language_title,
.currency_title {
  margin-bottom: 5px;
  font: weight 600px;
}

/* 插件样式 */
/* .translate-float-btn {
  display: none;
  width: 30px;
  height: 140px;
  position: absolute;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  transition: opacity 0.3s, transform 0.3s;
  cursor: pointer;
}

.translate-float-btn-text {
  display: none;
  padding: 0 20px;
  font-size: 14px;
  line-height: 30px;
  height: 30px;
  font-weight: 700;
  overflow: hidden;
  transform: rotate(90deg);
  transform-origin: right top;
  position: absolute;
  white-space: nowrap;
  max-width: 400px;
  user-select: none;
}

.translate-float-btn-icon {
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: relative;
} */

/* 确认按钮 */
.ciwi_switcher_confirm_button,
.ciwi_switcher_cancel_button {
  height: 40px;
  width: 100%;
  border-radius: 6px; /* 边框圆角 */
  padding: 12px; /* 按钮内边距 */
  font-size: 14px; /* 字体大小 */
  background-color: #000; /* 按钮背景颜色 */
  color: white; /* 字体颜色 */
  border: none; /* 去掉默认边框 */
  cursor: pointer; /* 鼠标指针样式 */
  text-align: center;
  line-height: normal;
  transition:
    background-color 0.3s,
    transform 0.2s ease; /* 增加过渡效果 */
}

.ciwi_switcher_confirm_button:hover,
.ciwi_switcher_cancel_button:hover {
  background-color: #333;
}

.ciwi_switcher_confirm_button:active,
.ciwi_switcher_cancel_button:active {
  transform: scale(0.98); /* 点击时的反馈效果，按钮缩小 */
}

.select-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}

.arrow_icon {
  width: 25% !important;
  height: 25% !important;
  border: 0 !important;
  display: flex;
  position: absolute;
  right: 5%; /* 箭头图标右对齐 */
  pointer-events: none; /* 防止图标影响选择框的点击 */
  transition: transform 0.3s ease; /* 平滑过渡 */
}

/* @media (max-width: 768px) {
  .ciwi_container {
    position: fixed;
    width: 50px; 
    background-color: transparent;
    transition: width 0.3s ease; 
    z-index: 9999;
    display: block; 
    height: 50px; 
  }

  .ciwi_container.expanded {
    width: 200px;
  }

  .arrow_icon,
  .mainarrow_icon,
  .main_box_text,
  .main_box_flag {
    display: none;
  }

 
  .ciwi_container.expanded #selector-box {
    display: block; 
    position: absolute;
    top: -182px; 
    width: 100%;
  }

  .ciwi_main_box {
    padding: 0%;
    border: 0;
    background-color: transparent;
  }

  .mobile_trans_img {
    display: block;
  }
} */

body > .skiptranslate {
  display: none;
}
.goog-logo-link {
  display: none !important;
}
.goog-te-gadget {
  color: transparent !important;
}
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}
a[href="https://translate.google.com"]
{
  display: none !important;
}
.goog-te-gadget-simple {
  visibility: hidden !important;
}
[class^="VIpgJd-"], /* 匹配所有以 'VIpgJd-' 开头的类名 */
[class*="VIpgJd-"] {
  /* 匹配所有包含 'VIpgJd-' 的类名 */
  display: none !important;
}

.custom-selector {
  position: relative;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.language_selector_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  height: 40px;
}

.currency_selector_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  height: 40px;
}

.selected-text {
  font-size: 14px;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.country-flag {
  position: absolute;
  left: 10px;
  width: 20px;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  /* border: 1px solid #ddd; */
  opacity: 0; /* 初始状态完全透明 */
  transition: opacity 0.3s ease; /* 平滑过渡效果 */
}

.translate_float_btn_icon {
  position: absolute;
  left: 10px;
  width: 30px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #ddd;
  min-width: 30px; /* 保持最小宽度 */
  opacity: 0; /* 初始状态完全透明 */
  transition: opacity 0.3s ease; /* 平滑过渡效果 */
  bottom: 15px;
}

.option-country-flag {
  width: 20px;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #ddd;
  opacity: 0; /* 初始状态完全透明 */
  transition: opacity 0.3s ease; /* 平滑过渡效果 */
}

/* 当图片加载完成时显示 */
.country-flag[src]:not([src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"])
{
  opacity: 1;
}

.translate_float_btn_icon[src]:not([src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"])
{
  opacity: 1;
}

.option-country-flag[src]:not([src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"])
{
  opacity: 1;
}

.arrow-icon {
  font-size: 12px;
  transition: transform 0.2s;
}

.custom-selector.open .arrow-icon {
  transform: rotate(180deg);
}

.options-container {
  position: absolute;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1000;
}

.custom-selector.open .options-container {
  display: block;
}

.options-list {
  max-height: 135px;
  overflow-y: auto;
}

.option-item {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.option-item:hover {
  background-color: #f5f5f5;
}

/* 滚动条样式 */
.options-list::-webkit-scrollbar {
  width: 6px;
}

.options-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.options-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

.options-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}
