@charset "utf-8";

.clearfix:after {content: " ";
  display: block;
  visibility: hidden;
  height: 0;
  font-size: 0.1em;
  line-height: 0;
  clear: both}

.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}

.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__header {width: 100%;
  margin-left: 0px;
  padding: 0 7px}

.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/tooltip_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__name {font-size: 17px;
  font-weight: 500;
  /* padding-top: 3px; */
  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__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__category {padding: 0}

.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__frame40 {background: url(../images/popup_item_frame2.png) no-repeat;
  width: 48px;
  height: 48px;
  display: block;
  position: absolute;
  top: 0;
  left: 0}

.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__buyprice,
.db-view__sells,
.db-tooltip__sells,
.db-tooltip__materia_requirements,
.db-tooltip__desynthesizable,
.db-tooltip__aetherial_reduction {color: #bbac94}

.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-view__gil+.db-view__market_notsell,
.db-view__unsellable+.db-view__market_notsell,
.sys_nq_element+.db-view__market_notsell {margin-left: .4rem;}

.db-view__info_text {
  margin: 0 0 10px 4px;
}
.db-view__info_text.end {
  margin-top: 0;
  padding-bottom: 2px;
}

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

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

@media (max-width: 767px) {
  .popup-content-sp {
    color: #ccc;
    z-index: 10008;
    font-size: clamp(12px, 4.5vw, 14.5px);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.5;
  }
  .popup-content-sp .db-tooltip__item__icon,
  .popup-content-sp .db-tooltip__item__icon__cover { width: 10.9vw; height: 10.9vw; background-size: cover; left: -0.2vw; }
  .popup-content-sp .db-tooltip__item__icon img { width: 10.2vw; height: 10.2vw; margin-left: -0.1vw; }
  .popup-content-sp .db-tooltip__item__icon__item_image { width: 9.2vw; height: 9.2vw; margin: 0.4vw 0 0 0.6vw; }
  .popup-content-sp .db-tooltip__item__icon .staining { width: 2vw; height: 2vw; top: 0.2vw; right: 0.5vw; }
  .popup-content-sp .db-tooltip__item__icon .stain2 { position: relative; top: 2vw; }
  .popup-content-sp .db-tooltip__item__icon__cover { width: 76px; height: 76px; }
  .popup-content-sp .db-tooltip__item__name { font-size: clamp(13px, 3.5vw, 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 !important; height: 64px !important; margin: 3px 0 0 6px !important; }
  .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-popup__inner { padding: 0 2vw; }
}

@media (max-width: 450px) {
  #popupOverlay .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-position: left bottom;
    background-size: 100% 100%;
  }

  .popup-content-sp .db-tooltip__l_main:after {
    bottom: -3.5vw;
    width: 100%;
    height: 3.5vw;
    background-position: 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%; }
}

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

@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; }
  .popup-content-sp .db-tooltip__item__category { margin-bottom: 2vw; }
}

@media (max-width: 210px) {
  .popup-content-sp .db-tooltip__item__element.item06 { flex-direction: column; gap: 2vw; }
  .popup-content-sp .db-tooltip__item__element.item06 .property { flex-direction: row; order: 2; }
}.popup-content,
.popup-content-sp { display: none; }

#eorzeadb_tooltip {
  position: absolute;
  z-index: 9998;
  display: none;
  width: 412px;
  text-align: left;
}

#eorzeadb_tooltip .db-tooltip__wrapper { display: block !important; }

#popupOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
}

#popupOverlay .popupBox { position: relative; }
#popupOverlay .popupClose {
  position: absolute;
  top: -35px;
  right: 0;
  z-index: 2;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: url(../../../common/images/close.png) center/cover no-repeat;
  cursor: pointer;
}
#popupOverlay .popupClose:hover { background-image: url(../../../common/images/close_r.png); }
#popupOverlay .popupInner { position: relative; }
#popupOverlay .popup-content-sp { display: block !important; }

.db-tooltip__item__storage li {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

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

.db-tooltip__item__storage li .tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 200px;
  padding: 6px 8px 4px;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 99999;
  margin-top: 5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  color: #404040;
  font-size: 12px;
  white-space: normal;
  transition: opacity .2s;
}

.db-tooltip__item__storage li:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.db-tooltip__item__storage li.tooltip-align-right .tooltip-text {
  right: 0;
  left: auto;
}

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

/* Armor / mount / minion detail (aligned with other TW event tooltips) */
.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-view__item_spec {
  margin-bottom: 10px;
}

.db-view__item_spec__name {
  float: left;
  width: 49%;
  margin-left: 0;
  margin-right: 1%;
  color: #bbac94;
  text-align: right;
}

.db-view__item_spec__name--last {
  margin-right: 0;
}

.db-view__item_spec__value {
  float: left;
  width: 49%;
  margin-left: 0;
  margin-right: 1%;
  line-height: 1;
  background: url(../images/popup_line5.png) no-repeat right bottom;
}

.db-view__item_spec__value--last {
  margin-right: 0;
}

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

.db-view__item_equipment {
  margin: 0 0 10px 12px;
}

.db-view__sub_title {
  font-weight: normal;
  color: #666;
  line-height: 1.3;
  margin-left: 2px;
}

.db-view__item_repair {
  margin: 0 0 10px 12px;
}

.db-view__item_repair span {
  width: 178px;
  display: inline-block;
}

.db-view__item_repair__title {
  color: #bbac94;
}

.db-view__item-info__list {
  margin: 0 0 6px 12px;
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
}

.db-view__item-info__list li {
  width: calc(50% - 6px);
  display: flex;
  align-items: center;
  color: #bbac94;
}

.db-view__item-info__list li span {
  margin-left: 4px;
}

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

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

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

.db-view__item_view {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.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;
  width: 40px;
  height: 40px;
}

.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;
}
