@charset "UTF-8";

.page-right {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#shop_page {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.layout-wrap, .page-right {
  overflow: visible !important;
}

/*********************************
	NPC 
**********************************/
#shop_npc {
  z-index: 1;
  text-align: center;
}

#shop_npc .npc-talk {
  background: url("../img/shop/npc_dialogue.png") no-repeat;
  /* position: absolute; */
  bottom: 0;
  width: 372px;
  height: 136px;
  left: 0;
  color: #fff;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  text-align: initial;
}

#shop_npc h6 {
  font-size: 20px;
  font-weight: 400;
  font-family: "Galmuri14", sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}

#shop_npc .npc-content {
  overflow-y: auto;
}

/******************************************
	아이템 정보 출력
*******************************************/
#item_info {
  display: block;
  box-sizing: border-box;
  z-index: 3;
  width: 349px;
  height: 138px;
  background: url("../img/shop/item_info.png") no-repeat;
  margin-block: 10px;
}

#item_info .type-item {
  padding: 7px 16px 10px 22px;
  color: #fff;
  height: 100%;
  box-sizing: border-box;
}
#item_info .type-item .item-name {
  font-family: "Galmuri14", sans-serif;
  line-height: 1;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
#item_info .type-item .item-name span {
  font-size: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#item_info .type-item .item-name sup {
  font-size: 14px;
  flex-shrink: 0;
}
#item_info .type-item .item-con {
  display: grid;
  grid-template-columns: auto 60px;
  gap: 10px;
}
#item_info .type-item .item-content {
  font-family: "Galmuri14", sans-serif;
  font-size: 14px;
  height: 84px;
  overflow-y: auto;
}
#item_info .type-item a.ui-btn {
  width: unset;
}

#item_simple_viewer {
  position: relative;
}

#item_simple_viewer .item-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
}

#item_simple_viewer .item-name {
  margin-left: 60px;
  min-height: 50px;
  font-size: 16px;
  padding: 5px 0;
  font-weight: 600;
  box-sizing: border-box;
}

#item_simple_viewer .item-name sup {
  display: block;
  margin: 0;
  padding-top: 4px;
  font-size: 12px;
}

#item_simple_viewer .item-content {
  padding: 15px 0;
  font-size: 11px;
}

/*********************************
	아이템 리스트
**********************************/
#item_list_box {
  box-sizing: border-box;
  z-index: 2;
}

#shop_item_list {
  display: block;
  position: relative;
  box-sizing: border-box;
  z-index: 0;
  background: url("../img/shop/shopbg.png") no-repeat center top;
  width: 348px;
  height: 227px;
}

#shop_item_list > ul {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template: repeat(3, 56px)/repeat(5, 56px);
  gap: 13px;
  padding: 7px;
}

#shop_item_list > ul li {
  display: inline-block;
  position: relative;
  text-align: center;
  font-size: 11px;
  box-sizing: border-box;
  text-align: center;
}

#shop_item_list li a {
  display: block;
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#shop_item_list li a.now-item::after {
  content: url("../img/shop/sel.gif");
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

#shop_item_list li span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#shop_paging {
  display: block;
}

#shop_paging .pg_wrap {
  padding: 0;
  padding-top: 5px;
}

#shop_paging .pg_wrap .pg_page {
  border: none;
  height: 20px;
  min-width: 20px;
  line-height: 20px;
}

#shop_cate {
  overflow: hidden;
  padding-bottom: 20px;
}

#shop_cate ul {
  display: block;
  overflow: hidden;
}

#shop_cate li {
  float: left;
}

/*********************************
	인벤토리 리스트
**********************************/
#item_inven {
  width: 348px;
}

#item_inven ul.inventory-list {
  overflow-x: auto;
  height: 78px;
  padding-bottom: 0;
  grid-auto-flow: column;
}

#item_inven ul.inventory-list::-webkit-scrollbar {
  height: 2px;
  background: transparent;
}

#item_inven ul.inventory-list::-webkit-scrollbar-track {
  background: transparent;
}

#item_inven ul.inventory-list::-webkit-scrollbar-thumb {
  background: rgba(107, 84, 73, 0.5);
}

#item_inven ul.inventory-list:hover::-webkit-scrollbar-thumb {
  background: rgb(107, 84, 73);
}

#item_inven li.inven-item {
  pointer-events: auto;
}

#item_inven li.inven-item * {
  /* display: block; */
  -webkit-user-drag: none;
  user-select: none;
}

#item_inven .active li.inven-item a {
  pointer-events: none;
}

#item_money {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
  font-style: italic;
  font-size: 20px;
}

/*********************************
	반응형 처리
**********************************/
@media all and (max-width: 640px) {
  #shop_npc {
    display: none;
  }
  #item_info {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    z-index: 9;
  }
  #body .fix-layout {
    padding: 0;
  }
  #shop_page {
    height: auto;
    padding: 10px;
  }
  #item_list_box {
    margin-left: 0;
  }
}

/* EXP 비활성 탭 스타일 */
#shop_cate .ui-btn.disabled{
  pointer-events: none;    
  opacity: .55;
  filter: grayscale(1);
  cursor: not-allowed;
}

/* EXP 비활성 탭 스타일 */
#shop_cate .ui-btn.disabled{
  pointer-events: none;    
  opacity: .55;
  filter: grayscale(1);
  cursor: not-allowed;

  /* 중앙 정렬 */
  display: inline-flex;       
  align-items: center;        
  justify-content: center;    
  text-align: center;        
}
