#pokemonchampions_damage_calculator select>option[disabled],
.select2-container--default .select2-results__option[aria-disabled=true] {
    display: none;
}
.select2-container{
    width: 100% !important;
}
.select2-container .select2-selection--single .select2-selection__rendered{
    position: relative;
    text-align: left;
}
.select2-container--default .select2-selection--single .select2-selection__clear{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    opacity: 0;
}

#pokemonchampions_damage_calculator * {
    box-sizing: border-box;
}

#pokemonchampions_damage_calculator .select2-container {
    width: 100% !important;
}

#pokemonchampions_damage_calculator .select2-container--default .select2-selection--single,
.select2-dropdown {
    border-radius: 7px;
    overflow: hidden;
}

#pokemonchampions_damage_calculator .select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

#pokemonchampions_damage_calculator .single_pokemon_input,
#pokemonchampions_damage_calculator .env_input {
    border: 1px solid #ccc;
}

#pokemonchampions_damage_calculator .single_pokemon_input>div,
#pokemonchampions_damage_calculator .env_input>div {
    border-top: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
}

#pokemonchampions_damage_calculator .single_pokemon_input>div.waza_addtional,
#pokemonchampions_damage_calculator .single_pokemon_input>div.ability_addtional {
    display: none;
    max-height: 53px;
}

#pokemonchampions_damage_calculator .waza_addtional>div[data-addtional_count="1"],
#pokemonchampions_damage_calculator .ability_addtional>div[data-addtional_count="1"] {
    width: 100%;
}

#pokemonchampions_damage_calculator .waza_addtional>div[data-addtional_count="2"],
#pokemonchampions_damage_calculator .ability_addtional>div[data-addtional_count="2"] {
    width: 50%;
}

#pokemonchampions_damage_calculator .single_pokemon_input>div:first-child,
#pokemonchampions_damage_calculator .env_input>div:first-child {
    border-top: none;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .pokemon_container,
#pokemonchampions_damage_calculator .result_container .pokemon_container {
    width: 110px;
    height: 110px;
    border-right: none;
    padding: 5px
}

#pokemonchampions_damage_calculator .pokemon_input_dom .pokemon_container .img_container,
#pokemonchampions_damage_calculator .result_container .pokemon_container .img_container {
    width: 100px;
    height: 100px;
    background: url(/wp-content/themes/appmedia/lib/pokemon_sv/images/icon_noImage.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .pokemon_container .img_container img,
#pokemonchampions_damage_calculator .result_container .pokemon_container .img_container img {
    width: 100px;
    height: 100px;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom {
    width: calc(100% - 110px);
    border-left: 1px solid #ccc;
    padding: 0;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div {
    border-top: 1px solid #ccc;
    padding: 4px;
    width: 100%;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div:first-child {
    border-top: none;
    height: 36px;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div:first-child:before {
    display: none;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div[data-th_replace='種族値'] {
    display: flex;
    justify-content: left;
    align-items: center;
    font-weight: bold;
    height: 30px;
    font-size: 12px;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div[data-th_replace='タイプ'] {
    height: 44px;
    position: relative;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div[data-th_replace='タイプ'] img {
    height: 20px;
    margin-left: 4px;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div[data-th_replace='タイプ'] img:first-child {
    margin-left: 0;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div[data-th_replace='タイプ']>.change_class {
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 4px;
    font-size: 12px;
    border: 2px solid #342a27;
    background: #fdd23e;
    padding: 0 6px;
    font-weight: bold;
    border-radius: 7px;
    line-height: 1;
    cursor: pointer;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div.change_type_container {
    border-top: none;
    padding-top: 0;
    display: none;
}

#pokemonchampions_damage_calculator div.th_light:before {
    content: attr(data-th_replace);
    line-height: 1;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #aaa;
    width: 100%;
}

#pokemonchampions_damage_calculator .status:has(div.th_light[data-th_replace="相手の攻撃(努力値)"]) div.th_light:before {
    color: red;
}

#pokemonchampions_damage_calculator div.th_light[data-th_replace="種族値"]:before {
    width: fit-content;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .info_dom>div[data-th_replace='種族値']:before {
    margin-right: 4px;
    margin-bottom: 0px;
}

#pokemonchampions_damage_calculator .env_input>div>div,
#pokemonchampions_damage_calculator .single_pokemon_input>div>div {
    width: 65%;
    border-right: 1px solid #ccc;
    padding: 4px;
    display: flex;
    flex-wrap: wrap;
}
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="やけど"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="性格補正"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="テラスタル"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="特殊ルールわざ"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="残HP"]{
    width: 35%;
}
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="ランク"]{
    width: 30%;
}
#pokemonchampions_damage_calculator .env_input>div>div,
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="特性"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="持ち物"]{
    width: 50%;
}

/* #pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="残HP"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="性格補正"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="やけど"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="テラスタル"],
#pokemonchampions_damage_calculator .single_pokemon_input div[data-th_replace="ランク"] {
    width: 40%;
} */


#pokemonchampions_damage_calculator .env_input>div>div:last-child,
#pokemonchampions_damage_calculator .single_pokemon_input>div>div:last-child {
    border-right: none;
}

#pokemonchampions_damage_calculator .env_input>div>div[data-th_replace="その他"] {
    width: 100%;
}

#pokemonchampions_damage_calculator .hp > div > .real_value,
#pokemonchampions_damage_calculator .status > div > .real_value{
  width: calc((100% - 100px) / 2 - 2px);
  background: #f6f6f6;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}
#pokemonchampions_damage_calculator .single_pokemon_input .th_light[data-th_replace$="(努力値)"] > .min_max{
  height: 28px;
  width: 46px;
  cursor: pointer;
  border: 2px solid #342a27;
  background: #fdd23e;
  color: #342a27;
  border-radius: 7px;
  line-height: 1;
  font-weight: bold;
  margin-left: 4px;
  font-size: 12px;
}
#pokemonchampions_damage_calculator .single_pokemon_input .th_light[data-th_replace$="(努力値)"] > input{
  width: calc((100% - 100px) / 2 - 2px);
  margin-left: 4px;
}

#pokemonchampions_damage_calculator .single_pokemon_input input,
#pokemonchampions_damage_calculator .single_pokemon_input select,
#pokemonchampions_damage_calculator .env_input input,
#pokemonchampions_damage_calculator .env_input select {
    width: 100%;
    font-size: 13px;
    height: 28px;
    border-radius: 7px;
    padding: 0 3px;
    line-height: 1;
    border: 1px solid #aaa;
}

#pokemonchampions_damage_calculator .pokemon_input_dom .change_type_container>select {
    width: 80px;
}

#pokemonchampions_damage_calculator ul[data-type="radio_replace"] {
    display: flex;
    justify-content: center;
    border: 2px solid #342a27;
    border-radius: 7px;
    overflow: hidden;
    width: 100%;
}

#pokemonchampions_damage_calculator ul[data-type="radio_replace"]>li {
    width: 50%;
    text-align: center;
    line-height: 1;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 0;
    background: #fdd23e;
    filter: grayscale(1);
    color: white;
    cursor: pointer;
}

#pokemonchampions_damage_calculator ul[data-type="radio_replace"]>li[data-check="1"] {
    filter: none;
    color: #342a27;
}

#pokemonchampions_damage_calculator ul[data-type="checkbox_replace"] {
    display: flex;
    justify-content: left;
    overflow: hidden;
    flex-wrap: wrap;
    margin: -2px;
    width: 100%;
}

#pokemonchampions_damage_calculator ul[data-type="checkbox_replace"]>li {
    border-radius: 7px;
    text-align: center;
    line-height: 1;
    font-size: 12px;
    font-weight: bold;
    padding: 6px;
    background: #fdd23e;
    filter: grayscale(1);
    color: white;
    cursor: pointer;
    border: 2px solid #342a27;
    margin: 2px;
}

#pokemonchampions_damage_calculator ul[data-type="checkbox_replace"]>li[data-check="1"] {
    filter: none;
    color: #342a27;
}

#pokemonchampions_damage_calculator .result_container>div {
    border: 1px solid #ccc;
}

#pokemonchampions_damage_calculator .result_container .result_header {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-bottom: 1px solid #ccc;
}

#pokemonchampions_damage_calculator .result_container .result_header>.vs {
    font-size: 30px;
    font-weight: bold;
    background: #fdd23e;
    color: #342a27;
    border: 3px solid #342a27;
    border-radius: 7px;
    line-height: 1;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pokemonchampions_damage_calculator .result_container .result_body {
    padding-left: 50px;
    position: relative;
}

#pokemonchampions_damage_calculator .result_container .result_body>div {
    border-bottom: 1px solid #ccc;
}

#pokemonchampions_damage_calculator .result_container .result_body>div:last-child {
    border-bottom: none;
}

#pokemonchampions_damage_calculator .result_container .result_body:before,
#pokemonchampions_damage_calculator .result_container .result_body:after {
    width: 50px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
}

#pokemonchampions_damage_calculator .result_container .result_body:has(> div[data-bool="false"]):before {
    content: "普通";
    top: calc(25% - 0.5em);
}

#pokemonchampions_damage_calculator .result_container .result_body:not(:has(> div[data-bool="true"])):before {
    top: calc(50% - 0.5em);
}

#pokemonchampions_damage_calculator .result_container .result_body:has(> div[data-bool="true"]):after {
    content: "急所";
    bottom: calc(25% - 0.5em);
}

#pokemonchampions_damage_calculator .result_container .result_body:not(:has(> div[data-bool="false"])):after {
    bottom: calc(50% - 0.5em);
}

#pokemonchampions_damage_calculator .result_container .result_body>div>div {
    padding: 4px;
}

#pokemonchampions_damage_calculator .result_container .result_body>div>div:before {
    content: attr(data-th_replace);
    line-height: 1;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: #aaa;
    width: 100%;
}

#pokemonchampions_damage_calculator .result_container .result_body .progress_bar {
    height: 12px;
    background: #14bf19;
    position: relative;
    border-radius: 3px;
}

#pokemonchampions_damage_calculator .result_container .result_body .progress_bar>div {
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0px 3px 3px 0px;
    max-width: 100%;
}

#pokemonchampions_damage_calculator .result_container .result_body .progress_bar>div:first-child {
    background: #4dfb52;
}

#pokemonchampions_damage_calculator .result_container .result_body .progress_bar>div:nth-child(2) {
    background: #cccccc;
}

#pokemonchampions_damage_calculator .result_container .result_body>div>div[data-th_replace="ダメージ"] {
    font-size: 13px;
    font-weight: bold;
}

#pokemonchampions_damage_calculator .button_container {
    margin: 10px 0 20px;
    display: flex;
    justify-content: space-between;
}

#pokemonchampions_damage_calculator .button_container button {
    font-weight: bold;
    cursor: pointer;
    border-radius: 7px;
    line-height: 1;
    padding: 10px 0;
    font-size: 15px;
}

#pokemonchampions_damage_calculator .button_container button.calc_trigger {
    width: 65%;
    background: #fdd23e;
    color: #342a27;
    border: 2px solid #000000;
}

#pokemonchampions_damage_calculator .button_container button.reset_trigger {
    width: 32%;
    background: #fdfdfd;
    color: #ff6555;
    border: 2px solid #ff6555;
}