
/*モーダルを開くボタン*/
/*モーダル本体の指定 + モーダル外側の背景の指定*/
.modal_container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 50%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}

/*モーダル本体の擬似要素の指定*/
.modal_container:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}

/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal_container.active {
  opacity: 1;
  visibility: visible;
}

/*モーダル枠の指定*/
.modal_body {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 500px;
  width: 90%;
}

/*モーダルを閉じるボタンの指定*/
.modal_close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -40px;
  right: -40px;
  width: 40px;
  height: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/*モーダル内のコンテンツの指定*/
.modal_content {
  background: #fff;
  text-align: left;
  padding: 30px;
}

/* CVV表示/非表示切替 */
.cvv_toggle_wrap {
  position: relative;
  display: block;
  width: 100%;
}

.cvv_toggle_input {
  padding-right: 48px;
  box-sizing: border-box;
}

.cvv_toggle_button {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  width: 38px;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cvv_toggle_icon_show {
  display: inline-flex;
}

.cvv_toggle_icon_hide {
  display: none;
}

/*Edgeでは input[type="password"] に既定で表示切替ボタンが表示されるため、*/
/*以下の設定でEdge標準の表示制御ボタンを非表示にする*/
input[type="password"].cvv_toggle_input::-ms-reveal {
    display: none;
}
