@charset "utf-8";

.topBrand {width:100%;padding:15px 0 30px;box-sizing:border-box}
.topBrand section + section {margin-top:30px;}
.topBrand section .title {margin:0 15px 16px;font-size:16px;font-family:"Pretendard SemiBold";}
.topBrand .copyright {;margin:20px 15px 0;font-size:13px;color:#555;text-align:center;word-break:keep-all;line-height:1.4;}
.topBrand .noDataText {display:flex;justify-content:center;align-items:center;padding:60px 15px;font-size:14px;text-align:center;line-height:1.4;background-color:#fafafa;}
.topBrand .bullet {position:relative;padding-left:18px;height:auto;line-height:1;font-size:13px;}
.topBrand .bullet:before {content:"";position:absolute;top:0;left:0;width:12px;height:12px;border-radius:50%;}
.topBrand .bullet.index:before {background-color:#169dab;}
.topBrand .bullet.price:before {background-color:#d5d5d5;}
.topBrand .rankingBtn {display:flex;gap:4px;flex:1 0 0;justify-content:flex-end;flex-shrink:0;}
.topBrand .rankingBtn button {min-width:56px;height:34px;padding:0;font-size:14px;text-transform:uppercase;}

.topBrand__info {display:flex;flex-direction:column;gap:10px;margin:0;padding:20px 15px;border-bottom:1px solid #ddd;}
.topBrand__info__item {display:flex;flex-direction:column;gap:4px;font-size:14px;}
.topBrand__info__item dt {}
.topBrand__info__item dd {margin:0;word-break:keep-all;line-height:1.4;color:#555;}

.rankingList {background-color:#fafafa;}
.rankingItem {display:flex;align-items:center;gap:10px;padding:10px 0;margin:0 15px;border-top:1px solid #e6e6e6;}
.rankingItem:first-child {border-top:0;}
.rankingItem .rank {width:6%;flex-shrink:0;text-align:left;font-size:14px;}
.rankingItem .brand {width:25%;flex-shrink:0;padding:0 5px;}
.rankingItem .brand a {display:flex;align-items:center;color:#222;font-size:13px;}
.rankingItem .graphListContainer {flex:1 1 0;}
.rankingItemHeader {padding:14px 0;font-family:"Pretendard SemiBold" !important;}
.rankingItemHeader .brand {font-size:14px;}
.rankingItemHeader .legendContainer {flex:1 0 0;display:flex;justify-content:space-between;gap:10px;}
.rankingItemHeader .dataLegend {display:flex;gap:8px;font-size:13px !important;}
.rankingItemHeader .dataLegend .bullet:before {border-radius:initial}

.graphList {display:flex;flex-direction:column;gap:6px;width:100%;}
.graphList li {display:flex;align-items:center;height:12px;gap:6px;}
.graphList li .bar {height:12px;border-top-right-radius:12px;border-bottom-right-radius:12px;}
.graphList li .number {font-size:13px;color:#999;}
.graphList .indexGraph .bar {background-color:#169dab;}
.graphList .priceGraph .bar {background-color:#d5d5d5;}

.tabsWrap {padding:5px 0;border-top:1px solid #e6e6e6;border-bottom:1px solid #222;}
.categoryTabs {display:flex;gap:16px;padding:0 15px;overflow:hidden;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.categoryTabs::-webkit-scrollbar {display:none;}
.categoryTabItem {flex:0 0 auto;}
.categoryTabButton {display:flex;width:100%;padding:10px 0;align-items:center;justify-content:center;font-size:14px;font-family:"Pretendard Medium";font-weight:500;transition:background-color .1s, color .1s;white-space:nowrap;border:0;background-color: transparent;color: #222;}
.categoryTabButton.active {color:#169dab;font-family:"Pretendard SemiBold";font-weight:600;}
.subCategoryTabsWrap:has(.subCategoryTabItem) {padding-bottom:12px;}
.subCategoryTabsWrap .categoryTabs {gap:6px;}
.subCategoryTabsWrap .categoryTabButton {padding:4px 10px;border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:12px;}
.subCategoryTabsWrap .categoryTabButton.active {border-color:#169dab;background-color:#169dab;color:#fff;font-family:"Pretendard";font-weight:400;}

.subCategoryTabs {display:flex;gap:16px;padding:0 15px;overflow:hidden;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.subCategoryTabs::-webkit-scrollbar {display:none;}
.subCategoryTabsWrap .subCategoryTabs {gap:6px;}
.subCategoryTabButton {display:flex;width:100%;padding:10px 0;align-items:center;justify-content:center;font-size:14px;font-family:"Pretendard Medium";font-weight:500;transition:background-color .1s, color .1s;white-space:nowrap;border:0;background-color: transparent;color: #222;}
.subCategoryTabsWrap .subCategoryTabButton {padding:4px 10px;border:1px solid #ccc;border-radius:20px;box-sizing:border-box;font-size:12px;}
.subCategoryTabsWrap .subCategoryTabButton.active {border-color:#169dab;background-color:#169dab;color:#fff;font-family:"Pretendard";font-weight:400;}

/*브랜드랭킹차트*/
.rankingChartPopup{position:fixed;display:none;top: 0;right: 0;bottom:0;left:0;z-index:2200;width: 100%;height: 100%;overflow-y: scroll;background-color: #fff;}
.rankingChartPopup.open {display:block;}
.rankingChartPopup__btnClose{position:absolute;width:16px;height:16px;background:url("//icon.feelway.com/recent/mo/mypage/ico_close@2x.png") no-repeat center/16px 16px;}
.rankingChartPopup strong {font-family:'Pretendard SemiBold';}
.layerpop__wrap__titBar {overflow: hidden;text-overflow: ellipsis;white-space: nowrap;color: #222;height: 20px;padding: 0 15px 15px;margin: 0 -15px 15px;font-size:12px;color:#222;border-bottom: 1px solid #222;}
.rankingChartPopup .colorSky{color:#169dab !important;}
.rankingChartPopup #chart-container {position:relative;width:100%;height:300px;overflow:hidden;}
.rankingChartPopup .popupInfoList {margin-bottom:20px;}
.rankingChartPopup .popupInfoList__item {margin-top:5px;font-size:14px;padding-left:0.6em;text-indent:-0.6em;}
.rankingChartPopup .popupInfoList__item .sTxt {display:block;padding-left:1em;margin-top:2px;font-size:12px;}
.rankingChartPopup #brandNameTitle {font-size:20px;font-weight:700;color:#222;}
.moduleArea:has(.topBrandWrap) {z-index: initial;}
.rankingChartPopup__btnClose.layerpopClose:after {display:none;}

.topBrand .changeRank {display: inline-flex;align-items: center;flex-shrink:0;width:10px;height:20px;margin:0 4px 0 0;vertical-align: top;text-indent: -9999px;}
.topBrand .changeRank.default {background: url('//icon.feelway.com/recent/pc/common/icon/icon_default.png') no-repeat 50%/7px;}
.topBrand .changeRank.up {background: url('//icon.feelway.com/recent/pc/common/icon/icon_up.png') no-repeat 50%/7px;}
.topBrand .changeRank.down {background: url('//icon.feelway.com/recent/pc/common/icon/icon_down.png') no-repeat 50%/7px;}

/* 브랜드 랭킹 순위 요약 */
.brandRankingSummary {display:flex;align-items: center;justify-content: center;gap:6px;flex-wrap:wrap;margin-top:20px}
.brandRankingSummary__item {font-size:12px;}
.brandRankingSummary__item:after {content:"/";margin-left:4px;}
.brandRankingSummary__item:last-child:after {display:none;}

/* 브랜드 랭킹 차트 - rankGraph 모바일 레이아웃 */
.rankGraph {background:#fff;overflow:hidden;}
.rankGraph__header {padding:16px 16px 14px;}
.rankGraph__brandName {font-size:20px;font-weight:700;color:#222;}
.rankGraph__subTitle {font-size:13px;color:#999;margin-top:2px;}
.rankGraph__body {display:flex;flex-direction:column;padding:12px 16px 16px;gap:14px;}
.rankGraph__chartArea {background:#fff;border-radius:8px;padding:10px;border:1px solid #eef0f5;}
.rankGraph__mobileStats {display:flex;gap:8px;}
.rankGraph__mobileStats__item {flex:1;text-align:center;padding:10px 6px;background:#f7f8fa;border-radius:8px;border:1px solid #eef0f5;}
.rankGraph__mobileStats__label {font-size:12px;color:#999;display:block;margin-bottom:4px;}
.rankGraph__mobileStats__value {font-size:22px;font-weight:700;color:#333;}
.rankGraph__mobileStats__value small {font-size:11px;color:#aaa;font-weight:500;}
.rankGraph__mobileStats__date {font-size:10px;color:#bbb;margin-top:2px;}
.rankGraph__mobileStats__item--current .rankGraph__mobileStats__value {color:#169dab;}
.rankGraph__mobileStats__item--best .rankGraph__mobileStats__value {color:#20c5d8;}
.rankGraph__mobileStats__item--worst .rankGraph__mobileStats__value {color:#999;}

@media screen and (max-width: 600px) {
    /*브랜드랭킹차트*/
    .rankingChartPopup #chart-container {height: 350px;}
}

.topBrand .graphList {position:relative;padding-left:25px;}
.topBrand .graphList:before {content:"";display: flex;align-items: center;justify-content: center;position:absolute;left:0;top:50%;width:16px;height:12px;background: url('https://icon.feelway.com/recent/common/icon/icon_chart.png') no-repeat center / 16px 12px;transform:translateY(-50%)}
.rankingItemHeader.rankingItem {margin:0 5px;}
.rankingItemHeader.rankingItem .rank {width:12%;text-align: center;}