.c-mypage-sidebar {
  display: flex;
  flex-direction: column;
}

.c-mypage-sidebar__woocommerce {
  --theme-color: #03a9f4;
}

.c-mypage-sidebar__dokan {
  --theme-color: #31cd68;
}

.c-mypage-sidebar__affiliate {
  --theme-color: #faa43a;
}

.c-mypage-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 40px 5px;
}

.c-mypage-sidebar__item {
  position: relative;
  padding: 0 40px;
}

.c-mypage-sidebar__item.c-mypage-sidebar__active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 34px;
  background-color: var(--theme-color);
  border-radius: 0 5px 5px 0;
}

.c-mypage-sidebar__link {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  cursor: pointer;
}

.c-mypage-sidebar__icon {
  width: 20px;
  height: 20px;
  background-color: #c4c4c4;
}

.c-mypage-sidebar__icon-account {
  -webkit-mask-image: url("account.svg");
  mask-image: url("account.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.c-mypage-sidebar__icon-tool-request {
  -webkit-mask-image: url("tool_request.svg");
  mask-image: url("tool_request.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.c-mypage-sidebar__icon-products {
  -webkit-mask-image: url("products.svg");
  mask-image: url("products.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.c-mypage-sidebar__icon-new-product {
  -webkit-mask-image: url("new_product.svg");
  mask-image: url("new_product.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.c-mypage-sidebar__icon-withdraw-history {
  -webkit-mask-image: url("withdraw_history.svg");
  mask-image: url("withdraw_history.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.c-mypage-sidebar__icon-withdraw {
  -webkit-mask-image: url("withdraw.svg");
  mask-image: url("withdraw.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.c-mypage-sidebar__label {
  font-size: 14px;
  font-weight: bold;
  color: #c4c4c4;
}

.c-mypage-sidebar__item.c-mypage-sidebar__active .c-mypage-sidebar__label,
.c-mypage-sidebar__link:hover .c-mypage-sidebar__label {
  color: var(--theme-color);
}

.c-mypage-sidebar__item.c-mypage-sidebar__active .c-mypage-sidebar__icon,
.c-mypage-sidebar__link:hover .c-mypage-sidebar__icon {
  background-color: var(--theme-color);
}

@media (max-width: 1024px) {
  .c-mypage-sidebar__list {
    gap: 14px;
    padding: 28px 5px;
  }

  .c-mypage-sidebar__item {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .c-mypage-sidebar {
    background: #ffffff;
  }

  .c-mypage-sidebar__list {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .c-mypage-sidebar__item {
    flex: 0 0 auto;
    padding: 0;
  }

  .c-mypage-sidebar__item.c-mypage-sidebar__active::before {
    display: none;
  }

  .c-mypage-sidebar__item.c-mypage-sidebar__active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -2px;
    height: 3px;
    border-radius: 999px;
    background-color: var(--theme-color);
  }

  .c-mypage-sidebar__link {
    width: auto;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
    background: #f8fafc;
  }

  .c-mypage-sidebar__label {
    font-size: 13px;
  }

  .c-mypage-sidebar__icon {
    width: 18px;
    height: 18px;
  }
}
