/* Item popup base styles (from layout.css). */
.popup_w412_header_gold {
  width: 412px;
  padding-top: 14px;
  background: url(../images/popup_bg_top.png) no-repeat 0 0
}

.popup_w412_header_gold .popup_w412_footer_gold {
  padding-bottom: 18px;
  background: url(../images/popup_bg_bottom.png) no-repeat left bottom
}

.popup_w412_header_gold .popup_w412_body_gold {
  padding: 0 6px;
  background: url(../images/popup_bg.png) repeat-y 0 0
}

.popup_w412_header_gold .popup_w412_body_gold .popup_w412_body_inner {
  padding: 0 10px
}

.tooltip_content {
  display: table;
  max-width: 226px
}

.db-tooltip__wrapper {
  /* position: absolute; */
  top: 0;
  z-index: 10008;
  display: none;
  font-size: 15px;
  color: #ccc;
  font-family: "Noto Sans TC", sans-serif;
  line-height: 1.5;
}

.db-tooltip__l_main {
  width: 412px;
  position: relative;
  background: url(../images/popup_bg.png) repeat-y left top;
  padding: 0 6px;
  margin: 14px 0 18px;
  color: #ccc;
  font-family: "Noto Sans TC", sans-serif;
  box-sizing: border-box;
}

.db-tooltip__l_main:before {
  position: absolute;
  top: -14px;
  left: 0;
  content: "";
  width: 412px;
  height: 14px;
  background: url(../images/popup_bg_top.png) no-repeat left top
}

.db-tooltip__l_main:after {
  position: absolute;
  bottom: -18px;
  left: 0;
  content: "";
  width: 412px;
  height: 18px;
  background: url(../images/popup_bg_bottom.png) no-repeat left bottom
}

.db-tooltip__l_main__inner {
  padding: 0 13px
}

.db-tooltip__l_main__footer {
  padding: 10px 10px 0 0
}

.db-tooltip__l_main_faceaccessory {
  background: #333333;
  width: 408px;
  margin: 14px 3px 18px;
  border-radius: 8px;
  -moz-box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.5);
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden
}

.db-tooltip__header {
  width: 400px;
  margin-left: 0px;
  padding: 0 7px
}

.db-tooltip__header__inner {
  width: 376px;
  margin: 0 auto 7px
}

.db-tooltip__header_faceaccessory {
  background: #1b1b1b;
  padding: 13px 10px 7px;
  -moz-box-shadow: 0px 2px 0px 0px #262626 inset, 0px -1px 0px 0px #141414 inset;
  -webkit-box-shadow: 0px 2px 0px 0px #262626 inset, 0px -1px 0px 0px #141414 inset;
  box-shadow: 0px 2px 0px 0px #262626 inset, 0px -1px 0px 0px #141414 inset
}

.db-tooltip__item__icon {
  width: 76px;
  height: 76px;
  margin-right: 3px;
  position: relative;
  float: left
}

.db-tooltip__item__icon a {
  cursor: pointer;
}

.db-tooltip__item__icon .staining {
  width: 12px;
  height: 12px;
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 1;
  border: 1px solid #3f3f3f;
  border-radius: 6px;
  pointer-events: none;
  box-sizing: border-box
}

.db-tooltip__item__icon .stain2 {
  position: relative;
  top: 12px
}

.db-tooltip__item__icon .stain2-mirage {
  position: relative;
  top: 19px
}

.db-tooltip__item__icon .ic_masterpiece {
  position: absolute;
  display: block;
  bottom: 0;
  right: 4px;
  z-index: 1;
  font-size: 16px;
  pointer-events: none;
  color: #ffffff;
  text-shadow: 0px 0px 2px #000
}

.db-tooltip__item__icon__cover {
  width: 76px;
  height: 76px;
  background: url(../images/item_frame.png) no-repeat;
  position: absolute;
  top: 0;
  left: 0
}

.db-tooltip__item__icon img {
  position: absolute;
  top: 0px;
  left: 0px
}

.db-tooltip__item__icon__item_image {
  margin: 3px 0 0 6px
}

.db-tooltip__item__icon .mirage_staining {
  width: 19px;
  height: 19px;
  position: absolute;
  top: 2px;
  right: 6px;
  z-index: 2;
  background-repeat: no-repeat
}

.db-tooltip__item__icon .unpaitable {
  background-image: url(/h/S/C2BwsSmczNtlcaIs0iARprrCEQ.png)
}

.db-tooltip__item__icon .painted_cover {
  background-image: url(/h/f/VjFMrY9f5vkyk47_qsLRBKi_7w.png)
}

.db-tooltip__item__icon .no_paint {
  background-image: url(/h/K/iJJToKJTLKKjkeNy_QXtdQn7vc.png)
}

.db-tooltip__item__icon .error {
  background-image: url(/h/m/DZD0bDw0aPdnYePLkmG-hlkTFs.png);
  width: 20px;
  height: 20px;
  top: auto;
  bottom: 6px
}

.db-tooltip__item__name {
  font-size: 17px;
  font-weight: 500;
  padding-top: 2px;
  color: #f3f3f3;
}

.db-tooltip__item__name .icon {
  margin-left: 2px;
  font-weight: normal
}

.db-tooltip__item__name.white_item {
  color: #f3f3f3
}

.db-tooltip__item__name.aetherial_item {
  color: #d789b6
}

.db-tooltip__item__name.purple_item {
  color: #b38cff
}

.db-tooltip__item__name.blue_item {
  color: #5990ff
}

.db-tooltip__item__name.green_item {
  color: #c0ffc0
}

.db-tooltip__item__name img {
  position: static;
  margin-left: 3px;
  vertical-align: middle
}

.db-tooltip__item__level {
  width: 400px;
  padding: 3px 12px;
  background: url(../images/popup_lv_bg.png) repeat-x 0 0;
  position: relative;
  box-sizing: border-box;
  margin: 0 auto 10px
}

.db-tooltip__item__level:before {
  position: absolute;
  top: -1px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: url(../images/popup_lv_bg_be.png) no-repeat left top
}

.db-tooltip__item__level:after {
  position: absolute;
  bottom: -1px;
  left: 0;
  content: "";
  width: 100%;
  height: 1px;
  background: url(../images/popup_lv_bg_af.png) no-repeat left bottom
}

.db-tooltip__item__txt {
  float: right;
  width: 305px
}

.db-tooltip__item__element {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.db-tooltip__item__element .property {
  display: flex;
}

.db-tooltip__item__element span {
  padding-right: 10px
}

.db-tooltip__item__mirage {
  position: relative;
  left: -2px;
  margin-bottom: 4px
}

.db-tooltip__item__mirage__ic {
  display: table-cell;
  width: 41px;
  height: 38px;
  position: relative
}

.db-tooltip__item__mirage__frame {
  width: 38px;
  height: 38px;
  background: url(../images/popup_item_frame.png) no-repeat;
  position: absolute;
  top: 0;
  left: 0
}

.db-tooltip__item__mirage img {
  position: absolute;
  top: 0px;
  left: 0px
}

.db-tooltip__item__mirage img.ic_reflection {
  margin: 2px 0 0 3px
}

.db-tooltip__item__mirage p {
  display: table-cell;
  vertical-align: middle;
  font-size: 14px;
  font-weight: bold;
  color: #808080
}

.db-tooltip__item__mirage__btn {
  display: inline-block;
  margin-left: 3px;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  overflow: hidden;
  background: url(../images/popup_btn.png) no-repeat 0 -20px
}

.db-tooltip__item__mirage__btn:hover {
  background: url(../images/popup_btn.png) no-repeat 0 0
}

.db-tooltip__item__category {
  padding: 0
}

.db-tooltip__item__category_faceaccessory {
  padding: 0;
  color: #999999
}

.db-tooltip__item__storage {
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  margin: 0 0 0 auto
}

.db-tooltip__item__storage img {
  position: static
}

.db-tooltip__item__title {
  padding: 4px;
  margin: 10px 0;
  background: #2e2e2e;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  color: #ccc;
  font-weight: normal
}

.db-tooltip__item__flex {
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  align-items: center
}

.db-tooltip__item__icon40 {
  position: relative;
  width: 48px;
  height: 48px;
  margin-right: 4px
}

.db-tooltip__item__icon40 img {
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: -20px;
  display: block
}

.db-tooltip__item__icon40__image {
  margin-left: -20px
}

.db-tooltip__item__frame40 {
  background: url(../images/popup_item_frame2.png) no-repeat;
  width: 48px;
  height: 48px;
  display: block;
  position: absolute;
  top: 0;
  left: 0
}

.db-tooltip__bt_item_detail,
.db-tooltip__bt_content_detail {
  width: 300px;
  margin: 0 auto 10px
}

.db-tooltip__bt_item_detail a,
.db-tooltip__bt_content_detail a {
  width: 300px;
  height: 30px;
  display: block;
  overflow: hidden
}

.db-tooltip__bt_item_detail a img,
.db-tooltip__bt_content_detail a img {
  position: static;
  margin-top: 0
}

.db-tooltip__bt_item_detail a:hover img,
.db-tooltip__bt_content_detail a:hover img {
  margin-top: -30px
}

.db-view__item_level {
  background-color: none;
  box-sizing: border-box;
  border: none
}

.db-tooltip__recipe__text {
  float: left;
  width: 295px
}

.db-tooltip__recipe__book_name {
  margin-top: 4px
}

.db-tooltip__recipe__category {
  font-size: 12px
}

.db-tooltip__recipe__crafting_conditions {
  margin: 0 4px;
  padding-bottom: 4px;
  height: 1%
}

.db-tooltip__recipe__crafting_conditions dt {
  color: #bbac94;
  font-weight: normal
}

.db-tooltip__gathering__text {
  float: left;
  width: 295px
}

.db-tooltip__gathering__category {
  font-size: 12px
}

.db-tooltip__gathering__point {
  margin: 0 0 25px 1em
}

.db-tooltip__gathering__point:nth-last-child(1) {
  margin-bottom: 0
}

.db-tooltip__gathering__point dd {
  font-weight: bold
}

.db-tooltip__achievement__text {
  width: 212px;
  float: left
}

.db-tooltip__quest__reward__wrapper {
  padding: 0 4px
}

.db-tooltip__quest__general_annotation {
  border: 1px solid #3d6629;
  margin: 0;
  margin-bottom: 8px
}

.db-tooltip__quest__general_annotation__inner {
  background: #2e4d1f;
  border: 1px solid #5c993d;
  color: #99ff66;
  padding: 2px 8px
}

.db-tooltip__quest__past_season_event {
  background: url(/h/g/r5RAYxxHuAL_zLga11rJ_B-uOc.png) repeat-y center center;
  margin: 13px 0 19px;
  padding: 0 15px;
  color: #ffcc66;
  text-align: left;
  line-height: 1.2;
  position: relative
}

.db-tooltip__quest__past_season_event:before {
  position: absolute;
  top: -9px;
  left: 9px;
  content: "";
  width: 100%;
  height: 9px;
  background: url(/h/r/AWkfe2tPznpzdCKmb8P_eD2UMI.png) no-repeat left top
}

.db-tooltip__quest__past_season_event:after {
  position: absolute;
  bottom: -9px;
  left: 9px;
  content: "";
  width: 100%;
  height: 9px;
  background: url(/h/4/6JSrwEwCXLE0IBWstrbTSCyKuo.png) no-repeat left bottom
}

.db-tooltip__quest__wedding {
  background: url(/h/e/dOZlOqPGE5YiYpW04QjgfUsVOE.png) repeat-y center center;
  margin: 13px 0 19px;
  padding: 0 15px;
  color: #66ccff;
  text-align: left;
  line-height: 1.2;
  position: relative
}

.db-tooltip__quest__wedding:before {
  position: absolute;
  top: -9px;
  left: 9px;
  content: "";
  width: 100%;
  height: 9px;
  background: url(/h/p/9PWQ7dOnAOQjioLvqK85imcZjo.png) no-repeat left top
}

.db-tooltip__quest__wedding:after {
  position: absolute;
  bottom: -9px;
  left: 9px;
  content: "";
  width: 100%;
  height: 9px;
  background: url(/h/Q/Em6WiVlLLQW11fUWbrks-RXLk4.png) no-repeat left bottom
}

.db-popup__inner {
  padding: 0 10px;
  margin: 0 auto
}

.db-view__item_spec:not(.event) .clearfix {
  display: flex;
  justify-content: flex-end;
  gap: 1%;
}


.db-view__item_spec,
.db-tooltip__item_spec {
  margin-bottom: 10px
}

.db-view__item_spec__name,
.db-tooltip__item_spec__name {
  float: left;
  width: 122px;
  margin-left: 4px;
  margin-right: 0;
  color: #bbac94;
  text-align: right;
}

.db-view__item_spec__name--armor,
.db-tooltip__item_spec__name--armor,
.db-view__item_spec__name--shield,
.db-tooltip__item_spec__name--shield {
  /* margin-left: 126px */
}

.db-view__item_spec__name--last,
.db-tooltip__item_spec__name--last {
  margin-left: 0
}

.db-view__item_spec__value,
.db-tooltip__item_spec__value {
  float: left;
  /* width: 122px; */
  margin-left: 4px;
  margin-right: 0;
  line-height: 1;
  background: url(../images/popup_item_spec.png) no-repeat right bottom
}

/* .db-view__item_spec__value--armor,
.db-tooltip__item_spec__value--armor,
.db-view__item_spec__value--shield,
.db-tooltip__item_spec__value--shield {
  margin-left: 126px
} */

.db-view__item_spec__value strong,
.db-tooltip__item_spec__value strong {
  margin-top: 8px;
  padding-right: 3px;
  display: block;
  font-size: 18px;
  color: #ccc;
  text-align: right
}


.db-view__buyprice,
.db-view__sells,
.db-view__materia_requirements,
.db-view__desynthesizable,
.db-view__aetherial_reduction,
.db-tooltip__sells,
.db-tooltip__materia_requirements,
.db-tooltip__desynthesizable,
.db-tooltip__aetherial_reduction {
  color: #bbac94
}


.db-view__item_spec__name {
  width: 122px;
  margin-left: 4px;
  margin-right: 0
}

@media (max-width: 430px) {
  .db-view__item_spec__name,
  .db-view__item_spec__value {
    max-width: 48%;
  }
}

/* .db-view__item_spec__name--armor,
.db-view__item_spec__name--shield {
  margin-left: 126px
} */

.db-view__item_spec__name--last {
  margin-left: 0
}

.db-view__item_spec__value {
  width: 122px;
  margin-left: 4px;
  margin-right: 0;
  background: url(../images/popup_item_spec.png) no-repeat right bottom
}

/* .db-view__item_spec__value--armor,
.db-view__item_spec__value--shield {
  margin-left: 126px
} */

.db-view__item_equipment,
.db-tooltip__item_equipment {
  margin: 0 0 10px 1rem;
}

.db-tooltip__help_text {
  margin: 0 0 10px 12px
}

.db-tooltip__series_bonus {
  margin: 0 0 10px 12px
}

.db-tooltip__series_bonus--title {
  color: #a6d982;
  font-weight: normal;
  line-height: 1
}

.db-tooltip__materia_socket {
  margin: 0 0 10px 12px
}

.db-tooltip__materia_socket .socket {
  width: 24px;
  height: 24px;
  background: url(/h/B/riRWvxygfYNIDNw5CNErVGMiJU.png) no-repeat
}

.db-tooltip__materia {
  margin: 0 0 10px 12px
}

.db-tooltip__materia .socket {
  float: left;
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 4px
}

.db-tooltip__materia .socket:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px
}

.db-tooltip__materia__normal .socket {
  background: url(/h/B/riRWvxygfYNIDNw5CNErVGMiJU.png) no-repeat
}

.db-tooltip__materia__normal .materia:after {
  background: url(/h/5/bOlqwJRiNMusUqnwX7AilZYG0Q.png) no-repeat
}

.db-tooltip__materia__normal .materira:after {
  background: url(/h/w/OvzgGCE8TH5-rYfGfB8Tjk3DWQ.png) no-repeat
}

.db-tooltip__materia__normal .materida:after {
  background: url(/h/Z/BoWa8-sRvtLU6jbNOPCbZXaPmg.png) no-repeat
}

.db-tooltip__materia__normal .materiga:after {
  background: url(/h/m/pO13rr7C8ChN7S4k_R1hiQGmoA.png) no-repeat
}

.db-tooltip__materia__normal .materija:after {
  background: url(/h/q/g0HM9kjok8mR4PVJdraX0S7aRo.png) no-repeat
}

.db-tooltip__materia__normal .highmaterija:after {
  background: url(/h/0/7hWe7ViREKfvcJQ5JakKnMVOJo.png) no-repeat
}

.db-tooltip__materia__normal .materia7:after {
  background: url(/h/b/9x9f3O-XZZxGDLQgWQ1_V-QNg0.png) no-repeat
}

.db-tooltip__materia__normal .materia8:after {
  background: url(/h/E/EFk3yC7Md6EotG4cSE2fHkuwrQ.png) no-repeat
}

.db-tooltip__materia__normal .materia9:after {
  background: url(/h/p/4yePXlOiN9l1plZb_8DXFezJYQ.png) no-repeat
}

.db-tooltip__materia__normal .materia10:after {
  background: url(/h/9/tB5VrIjfI59mrK60B94sf6GWFE.png) no-repeat
}

.db-tooltip__materia__normal .materia11:after {
  background: url(/h/Z/4HVZP8eMHViqQfLdIRgFiNWNa8.png) no-repeat
}

.db-tooltip__materia__normal .materia12:after {
  background: url(/h/5/_FuOMyZVNefr9ElBZwOOaGjwR0.png) no-repeat
}

.db-tooltip__materia__forbidden .socket {
  background: url(/h/u/aoU8aVsyBxyMu3saZsbkwIpeUA.png) no-repeat
}

.db-tooltip__materia__forbidden .materia:after {
  background: url(/h/S/y-G6pSNJY-WCoskrmi_Q8vz8NY.png) no-repeat
}

.db-tooltip__materia__forbidden .materira:after {
  background: url(/h/K/YAzDqifGDQVTMBOZKt4gsUYI_c.png) no-repeat
}

.db-tooltip__materia__forbidden .materida:after {
  background: url(/h/W/DAxzGHH-YO-dWREqehSsD0YiB0.png) no-repeat
}

.db-tooltip__materia__forbidden .materiga:after {
  background: url(/h/8/7N2ItMr9wNyJ53HXqwoNKP6WWI.png) no-repeat
}

.db-tooltip__materia__forbidden .materija:after {
  background: url(/h/c/E9vBytfOsmO11RJA8S1rzHl5e4.png) no-repeat
}

.db-tooltip__materia__forbidden .highmaterija:after {
  background: url(/h/E/p0bX-3GoktGyrcl2-395wcF2JE.png) no-repeat
}

.db-tooltip__materia__forbidden .materia7:after {
  background: url(/h/P/AiIKxeIfeagzfhI7qvIS0HCUns.png) no-repeat
}

.db-tooltip__materia__forbidden .materia8:after {
  background: url(/h/1/kA_niRLAVWf-VRy7cXUkMzB4V0.png) no-repeat
}

.db-tooltip__materia__forbidden .materia9:after {
  background: url(/h/v/evtAk33iCCOyG8XNYnKfeiYZiU.png) no-repeat
}

.db-tooltip__materia__forbidden .materia10:after {
  background: url(/h/y/wOXps3Hgs7pY79m8xUkv0u459o.png) no-repeat
}

.db-tooltip__materia__forbidden .materia11:after {
  background: url(/h/B/G53xOzbBlV0RDCMb6ryP4hFrZo.png) no-repeat
}

.db-tooltip__materia__forbidden .materia12:after {
  background: url(/h/w/ovcrn60nZlB1Ebyv6XEbf9YuQk.png) no-repeat
}

.db-tooltip__materia__txt {
  float: right;
  width: 340px;
  padding: 3px 0 0
}

.db-tooltip__materia__txt--param {
  color: #e56674
}

.db-view__item_repair,
.db-tooltip__item_repair,
.db-view__item-info__list,
.db-tooltip__item-info__list,
.db-view__help_text {
  margin: 0 0 10px 1rem;
}

.db-view__item_repair li,
.db-view__item-info__list li {
  vertical-align: top;
}

.db-view__item-info__list li,
.db-view__item_repair span,
.db-tooltip__item_repair span {
  width: 49%;
  display: inline-block;
}

.db-view__item_repair__title,
.db-view__item-info__title,
.db-tooltip__item_repair__title {
  color: #bbac94;
}

.db-tooltip__item-info__list li {
  width: 178px;
  display: inline-block;
  color: #bbac94
}

.db-tooltip__item-info__list li span {
  color: #ccc
}

.db-tooltip__item-info_faceaccessory {
  padding: 16px
}

.db-tooltip__item_footer {
  margin-left: 4px;
  margin-bottom: 10px
}



.db-view__sells__price {
  color: #73bfe6;
}

.db-view__unsellable,
.db-view__cannot_materia_prohibition,
.db-tooltip__cannot_materia_prohibition,
.db-view__unsellable,
.db-tooltip__unsellable,
.db-view__market_notsell,
.db-tooltip__market_notsell {
  color: #d98298;
}

.db-tooltip__market_notsell {
  margin-left: 4px
}

.db-view__gil+.db-view__market_notsell,
.db-view__unsellable+.db-view__market_notsell,
.sys_nq_element+.db-view__market_notsell {
  margin-left: .4rem;
  
}

.db-tooltip__info_effects {
  margin: 0 0 10px 12px
}

.db-tooltip__info_text {
  margin: 0 0 10px 4px
}

.db-tooltip__info_text--indent {
  margin-left: 12px
}

.db-view__info_text {
  margin-top: .5rem;
  margin-bottom: .75rem;
}

.db-view__line,
.db-tooltip__line {
  height: 2px;
  background: url(../images/popup_line.gif) repeat-x 0 0;
  /* margin: 4px 0; */
  padding: 4px 0;
}

.db-view__sub_title,
.db-tooltip__sub_title {
  margin-top: 1rem;
  margin-bottom: 2px;
  font-weight: normal;
  color: #666;
  line-height: 1;
  margin-left: 2px
}

.db-tooltip__basic_bonus {
  margin: 0 0 10px 12px
}

.db-tooltip__basic_bonus li {
  display: inline-block;
  width: 178px;
  vertical-align: top
}

.db-tooltip__basic_bonus li span {
  color: #bbac94
}

.db-tooltip__signature-character {
  padding-top: 10px;
  font-size: 14px;
  vertical-align: middle
}

.db-tooltip__external_header,
.db-tooltip__external_footer {
  display: none
}

.db-tooltip__external_header img,
.db-tooltip__external_footer img {
  position: relative;
  margin-top: -9px
}

.db-tooltip-shop__name {
  font-size: 16px;
  color: #cccccc;
  font-weight: normal
}

.db-tooltip-shop__place li {
  font-size: 12px;
  color: #cccccc;
  padding: 0 0 2px 20px;
  margin-bottom: 4px;
  background: url(/h/K/PAmt576nxFrhKLd5zf3FagyuOU.png) no-repeat 0 0
}

.db-tooltip-shop__place li:nth-last-child(1) {
  margin-bottom: 0
}

.db-tooltip__level_sync {
  color: #f2e244;
  font-family: "FFXIV_Lodestone_SSF", "Hiragino Sans", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "ＭＳ Ｐゴシック", Arial, Verdana, sans-serif;
  font-style: italic
}

.db-tooltip__level_sync span {
  color: #f2e244
}

.db-shop__item__title {
  padding: 4px;
  margin: 10px 0;
  background: #2e2e2e;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  color: #ccc;
  font-weight: normal;
}

.db-view__item_view {
  display: flex;
  align-items: center;
  gap: 4px;
}
.db-view__item_view.musical_score {
  padding-left: 4px;
}


/* popup item */
.popup-content-sp {
  color: #cccccc;
  z-index: 10008;
  display: none;
  font-size: clamp(12px, 4.5vw, 14.5px);
  line-height: 1.5;
}

@media (max-width: 450px) {
  .popupBox {
    width: 96%;
    margin: 0 auto;
  }

  .popup-content-sp .db-tooltip__l_main {
    width: 100%;
    margin: 0 auto;
    background-size: 100% auto;
  }

  .popup-content-sp .db-tooltip__l_main:before {
    top: -3.3vw;
    width: 100%;
    height: 3.3vw;
    background: url(../images/popup_bg_top.png) no-repeat left bottom;
    background-size: 100% 100%;
  }

  .popup-content-sp .db-tooltip__l_main:after {
    bottom: -3.5vw;
    width: 100%;
    height: 3.5vw;
    background: url(../images/popup_bg_bottom.png) no-repeat left top;
    background-size: 100% 100%;
  }

  .popup-content-sp .popup_w412_body_gold,
  .popup-content-sp .db-tooltip__item__level,
  .popup-content-sp .db-tooltip__header {
    width: 100%;
  }

  .popup-content-sp .db-view__item_repair span,
  .popup-content-sp .popup_w412_body_gold>div:nth-of-type(5)>.db-view__item-info__list>li {
    width: 49%;
  }

  .popup-content-sp .db-tooltip__bt_item_detail {
    width: 100%;
  }

  .popup-content-sp .db-tooltip__bt_item_detail a {
    width: 70vw;
    margin: 0 auto;
    height: 7vw;
  }

  .popup-content-sp .db-tooltip__bt_item_detail a img {
    width: 100%;
  }

  .db-tooltip__bt_item_detail a:hover img {
    margin-top: -7vw
  }
}

@media (max-width: 270px) {
  .popup-content-sp .db-view__item_spec>div {
    width: fit-content;
    max-width: 100%;
    /* display: flex;
        justify-content: center; */
  }
}

@media (max-width: 250px) {
  .db-tooltip__item__element:not(.item06) {
    flex-direction: column;
    gap: 2vw;
  }

  .db-tooltip__item__element:not(.item06) .property {
    flex-direction: row;
    order: 2;
  }

  .db-view__item_repair__title {
    padding-right: 5vw;
  }
}

@media (max-width: 240px) {
  .popup-content-sp .db-view__item_repair span,
  .popup-content-sp .popup_w412_body_gold>div:nth-of-type(5)>.db-view__item-info__list>li {
    width: fit-content;
  }

  .db-view__item-info__list {
    display: flex;
    flex-direction: column;
  }

  .db-tooltip__item__category {
    margin-bottom: 2vw;
  }

  .db-view__item-info__list li {
    width: fit-content;
  }
}

@media (max-width: 210px) {
  .db-tooltip__item__element.item06 {
    flex-direction: column;
    gap: 2vw;
  }

  .db-tooltip__item__element.item06 .property {
    flex-direction: row;
    order: 2;
  }
}


.db-shop__item_list {
  margin: 15px 0 0;
  background-color: rgba(255, 255, 255, 0.02);
}


.db-shop__item_list .db-shop__item__title {
  margin: 0;
  background-color: rgba(0, 0, 0, 0.3);
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
  font-weight: 600;
}

.db-shop__item_list {
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.db-shop__item_list>*:not(:nth-last-child(1)) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.db-shop__item_list>div:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.015);
}

.db-shop__item_list .db-view__item_view {
  padding: clamp(5px, 2vw, 8px) 0;
}

.db-view__materia_socket,
.db-view__basic_bonus {
  margin: 0 0 10px 12px;
}

.db-view__basic_bonus li {
  display: inline-block;
  width: 178px;
  vertical-align: top;
}

.db-view__basic_bonus li>span:first-child {
  margin-right: .5rem;
}

.db-view__materia_socket .socket {
  width: 24px;
  height: 24px;
  background: url(../images/icon_socket.png) no-repeat;
}

.character__item_icon {
  width: 48px;
  height: 48px;
  margin-right: 2px;
  position: relative;
}

.character__item_icon__img {
  position: absolute;
  top: 2px;
  left: 50%;
  margin-left: -20px;
  display: block
}

.character__item_icon--frame {
  width: 48px;
  height: 48px;
  background: url(../images/icon_reward_frame.png) no-repeat;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}


.popitem_name, .popitem_category {
  display: block;
  line-height: initial;
}

.popitem_name {
  font-weight: 600;
}

.popitem_category {
  font-size: clamp(12px, 4.5vw, 14px);
}

.txt-rarity_common {
    color: #f3f3f3;
}

.txt-rarity_uncommon {
    color: #c0ffc0;
}

.img_tooltip_list {
  display: none
}

.img_tooltip_content {
  display: none;
  position: fixed;
  z-index: 10006;
  top: 0;
  left: 0
}

.img_tooltip_content img {
  border: 1px solid #0a0a0a
}

/* Activity overrides (from main.css); keep after base styles. */
#eorzeadb_tooltip {
  position: fixed;
  z-index: 9999;
  overflow: auto;
  box-sizing: border-box;
}

#popupOverlay {
  display: none;
}

.tooltip__text {
  display: block;
  background: #ffffff;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
  padding: 6px 8px 4px 8px;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  font-size: 12px;
  color: #404040;
  z-index: 99999;
}

.popup-content {
  display: none;
}

.db-tooltip__item__storage li {
  position: relative;
  /* 讓 tooltip 定位在 li 內 */
  display: inline-block;
  cursor: pointer;
}

.db-tooltip__l_main,
#eorzeadb_tooltip,
.popup_w412_body_gold {
  overflow: visible !important;
}

/* tooltip 文字 */
.db-tooltip__item__storage li .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 200px;
  background: #ffffff;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
  padding: 2px 7px 4px 7px;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  border-radius: 6px;
  font-size: 15px;
  color: #404040;
  z-index: 99999;
  position: absolute;
  top: 100%;
  /* 固定在圖片下方 */
  left: 0;
  /* 從 img 左邊開始 */
  margin-top: 5px;
  /* 距離圖片一點空隙 */
  transition: opacity 0.2s;
  white-space: normal;
  /* 允許換行 */
}

/* 滑鼠移上去才顯示 */
.db-tooltip__item__storage li:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.db-view__item_footer a {
  color: #73bfe6;
}

.db_popup_sp {
  cursor: pointer;
}

@media (max-width: 767px) {
  /* item popup */
  .db-tooltip__item__icon,
  .db-tooltip__item__icon__cover {
    width: 10.9vw;
    height: 10.9vw;
    background-size: cover;
    left: -0.2vw;
  }

  .db-tooltip__item__icon img {
    width: 10.2vw;
    height: 10.2vw;
    margin-left: -0.1vw;
  }

  .db-tooltip__item__icon__item_image {
    margin: 0.4vw 0 0 0.6vw;
  }

  .db-tooltip__item__icon__item_image {
    width: 9.2vw;
    height: 9.2vw;
  }

  .db-tooltip__item__icon .staining {
    width: 2vw;
    height: 2vw;
    top: 0.2vw;
    right: 0.5vw;
  }

  .db-tooltip__item__icon .stain2 {
    position: relative;
    top: 2vw;
  }

  .popup-content-sp .db-tooltip__item__icon__cover {
    width: 76px;
    height: 76px;
  }

  .db-tooltip__item__name {
    font-size: 16px;
    /* font-size: min(4vw, 15px); */
  }

  .popup-content-sp .db-tooltip__item__icon {
    width: 76px;
    height: 76px;
    margin-right: 3px;
  }

  .popup-content-sp .db-tooltip__item__icon__item_image {
    width: 64px;
    height: 64px;
    margin: 3px 0 0 6px;
  }

  .popup-content-sp .db-tooltip__item__icon .stain2 {
    top: 12px;
  }

  .popup-content-sp .db-tooltip__item__icon .staining {
    width: 12px;
    height: 12px;
    top: 2px;
    right: 4px;
  }

  .popup-content-sp .db-view__item_spec {
    /* display: flex; */
    /* flex-direction: column;
        align-items: flex-end; */
  }

  .popup-content-sp .db-popup__inner {
    padding: 0 2vw;
  }

  #popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #popupOverlay .popupBox {
    position: relative;
  }

  /* 右上角 X 按鈕 */
  #popupOverlay .popupClose {
    position: absolute;
    top: -35px;
    right: 0;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    background: url(../../../common/images/close.png) center no-repeat;
    background-size: cover;
  }

  #popupOverlay .popupClose:hover {
    background-image: url(../../../common/images/close_r.png);
  }

  #popupOverlay .popup-content-sp {
    display: block !important;
    width: auto;
    height: auto;
  }

  .db-tooltip__item__storage li .tooltip-text {
    left: auto;
    right: 0;
    /* 從 img 右邊開始 */
    margin-top: 5px;
    /* 距離圖片一點空隙 */
  }
}

@media (max-width: 430px) {
  #popupOverlay .popupClose {
    background-image: url(../../../common/images/close_r.png);
  }

  .db-tooltip__item__storage li .tooltip-text {
    font-size: 14px;
  }
}

@media (max-width: 450px) {
  #popupOverlay .popupClose {
    top: -45px;
    right: 5px;
  }
}
