@charset "utf-8";

/* Required Lodestone item-icon layout, scoped to the FFXV rewards section. */
.rewards__other__items .db-tooltip__item__icon {
  position: relative;
  float: left;
  width: 76px;
  height: 76px;
  margin-right: 0;
}

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

.rewards__other__items .db-tooltip__item__icon__item_image {
  margin: 3px 0 0 6px !important;
}

.rewards__other__items .db-tooltip__item__icon__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 76px;
  background: url(../images/item_icon_cover.png) no-repeat;
}
.rewards__other__items::after {
  content: "";
  display: block;
  clear: both;
}

.rewards__other__items .reward_item_text {
  display: none;
}

@media (max-width: 767px) {
  .rewards__other__items {
    --reward-icon-size: clamp(44px, 12vw, 76px);
    --reward-image-size: clamp(37px, 10.1vw, 64px);
    --reward-image-top: clamp(2px, .47vw, 3px);
    --reward-image-left: clamp(4px, .95vw, 6px);
  }

  .content__overview .rewards__other {
    width: 100%;
  }

  .content__overview .rewards__other__items {
    margin: 0 16px;
  }

  .rewards__other__items .db-tooltip__item__icon {
    float: none;
    width: 100%;
    height: auto;
    min-height: var(--reward-icon-size);
    margin-bottom: clamp(10px, 2.5vw, 16px);
  }

  .rewards__other__items .db-tooltip__item__icon > img:first-child,
  .rewards__other__items .db-tooltip__item__icon__cover {
    width: var(--reward-icon-size);
    height: var(--reward-icon-size);
    background-size: 100% auto;
  }

  .rewards__other__items .db-tooltip__item__icon__item_image {
    width: var(--reward-image-size);
    height: var(--reward-image-size);
    margin: var(--reward-image-top) 0 0 var(--reward-image-left) !important;
  }

  .rewards__other__items .db_popup_sp {
    display: block;
    width: 100%;
    height: auto;
    min-height: var(--reward-icon-size);
    position: relative;
  }

  .rewards__other__items .reward_item_text {
    display: flex;
    height: auto;
    min-height: var(--reward-icon-size);
    padding: 3px 0 3px calc(var(--reward-icon-size) + 8px);
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    text-align: left;
  }

  .rewards__other__items .reward_item_text h5 {
    color: #fff;
    font-size: clamp(15px, 3.4vw, 16px);
    font-weight: 600;
    line-height: 1.35;
  }

  .rewards__other__items .reward_item_text p {
    color: #777b85;
    font-size: clamp(14px, 2.8vw, 15px);
    line-height: 1.35;
  }
}
