/* =========================================================
   抽屉二级视图：语言选择
   按 matinkim.nbst.co.kr/front/Utility/languageSelect 移动端模板还原
   原站 rem 基准 1rem = 10px，这里全部换算成 px，
   避免 html{font-size:62.5%} 影响认证页
   ========================================================= */

/* ---------- 视图切换容器（由 style.css 定义骨架，这里补充语言视图） ---------- */

.drawer-view--lang {
  background: #fff;
  color: #202020;
  font-family: "Malgun Gothic", "돋움", "Apple SD Gothic Neo",
               "PingFang SC", "Microsoft YaHei", "Arial", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -.7px;
}

/* 二级视图的头部 */
.drawer-head--lang {
  justify-content: space-between;
  padding: 0 12px 0 8px;
}

.drawer-back {
  flex: 0 0 40px;
  width: 40px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.drawer-back:active { opacity: .5; }
.drawer-back svg { width: 20px; height: 20px; }

.drawer-lang-head {
  flex: 1 1 auto;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #9b9b9b;
  text-transform: uppercase;
}

.drawer-head-tail { flex: 0 0 40px; width: 40px; }

/* ---------- 滚动区 ---------- */

.drawer-view--lang .lang-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 标题（原站 .lang_title） ---------- */

.drawer-view--lang .lang_title {
  padding: 30px 0 26px;
  text-align: center;
  border-bottom: 1px solid #e3e3e3;
}

.drawer-view--lang .lang_title strong {
  display: block;
  font-size: 15px;
  color: #202020;
  line-height: 1.3;
  font-weight: 600;
}

.drawer-view--lang .lang_title p {
  font-size: 12px;
  color: #202020;
  font-weight: 600;
}

/* ---------- 语言网格（原站 .lang_select） ---------- */

.drawer-view--lang .lang_select {
  padding: 22px 10px 0;
  overflow: hidden;
}

.drawer-view--lang .form-group {
  margin-bottom: 7px;
  position: relative;
}

.drawer-view--lang .radio_box {
  display: block;
  float: left;
  text-align: center;
  width: 33.3%;
  padding-top: 46.5px;
  margin-bottom: 16px;
  overflow: hidden;
  background-image: url("lang/lang_img.png");
  background-repeat: no-repeat;
  background-size: 46.5px auto;
}

/* 国旗精灵图定位（逐一对应原站，每格 47.4px） */
.drawer-view--lang .lang_ch      { background-position: center 0; }
.drawer-view--lang .lang_en      { background-position: center -47px; }
.drawer-view--lang .lang_fr      { background-position: center -95px; }
.drawer-view--lang .lang_jp      { background-position: center -143px; }
.drawer-view--lang .lang_ko      { background-position: center -191px; }
.drawer-view--lang .lang_sp      { background-position: center -238px; }
.drawer-view--lang .lang_th      { background-position: center -286px; }
.drawer-view--lang .lang_vn      { background-position: center -333px; }
.drawer-view--lang .lang_ru      { background-position: center -380px; }
.drawer-view--lang .lang_default { background-position: center -428px; }

/* 单选框：原站隐藏 ::before，选中框用 ::after 方块图标放在文字下方 */
.drawer-view--lang .form-group input[type=radio] { display: none; }

.drawer-view--lang .form-group input[type=radio] + label:before {
  content: "";
  display: none;
}

.drawer-view--lang .form-group input[type=radio] + label:after {
  content: "";
  display: block;
  height: 18.5px;
  width: 17.5px;
  margin: 7px auto 0;
  background: url("lang/i_check02.png") no-repeat 0 0 #fff;
  background-size: 100% auto;
}

.drawer-view--lang .form-group input[type=radio]:checked + label:after {
  background: url("lang/i_check02_on.png") no-repeat 0 0 #fff;
  background-size: 100% auto;
}

.drawer-view--lang .form-group input[type=radio] + label {
  display: block;
  font-size: 11px;
  color: #202020;
  line-height: 1.4;
  font-weight: 600;
  padding-top: 7px;
  background: #fff;
  cursor: pointer;
  letter-spacing: -.7px;
  word-break: keep-all;
}

/* ---------- 底部按钮 ---------- */

.drawer-view--lang .lang-foot {
  flex: 0 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.drawer-view--lang .btn {
  padding: 0 12px;
  overflow: hidden;
  border-radius: 0;
  font-weight: 600;
  border: 0;
  display: block;
  width: 100%;
  height: 48px;
  font-size: 15px;
  line-height: 48px;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.drawer-view--lang .btn_blue,
.drawer-view--lang .btn_blue:hover,
.drawer-view--lang .btn_blue:active,
.drawer-view--lang .btn_blue:focus {
  background: #2844a3;
  color: #fff;
  border: 1px solid #2844a3;
}

.drawer-view--lang .btn_blue.arrow:after {
  content: "";
  display: inline-block;
  width: 17px;
  height: 6.8px;
  margin-left: 7px;
  vertical-align: middle;
  margin-top: -3px;
  background: url("lang/arrow_btn_w.png") no-repeat 0 0;
  background-size: 100% auto;
}
